/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | component_group.h | 38 virtual void OnChildInserted(const RefPtr<Component>& child, int32_t position) {} in OnChildInserted() argument 39 virtual void OnChildAppended(const RefPtr<Component>& child) {} in OnChildAppended() argument 48 for (const auto& child : children_) { in InitChildren() 49 child->SetParent(WeakClaim(this)); in InitChildren() 65 for (const auto& child : children_) { in ClearChildren() 66 child->SetParent(nullptr); in ClearChildren() 71 virtual void InsertChild(int32_t position, const RefPtr<Component>& child) in InsertChild() argument 73 if (!child) { in InsertChild() 76 child->SetParent(WeakClaim(this)); in InsertChild() 79 children_.insert(insertIter, child); in InsertChild() 83 AppendChild(const RefPtr<Component>& child) AppendChild() argument 93 AppendChildDirectly(const RefPtr<Component>& child) AppendChildDirectly() argument 102 RemoveChildDirectly(const RefPtr<Component>& child) RemoveChildDirectly() argument 118 auto child = compose->GetChild(); RemoveChildByComposedId() local 128 RemoveChild(const RefPtr<Component>& child) RemoveChild() argument [all...] |
H A D | element.cpp | 27 for (const auto& child : children_) { in ~Element() 28 DetachChild(child); in ~Element() 32 void Element::AddChild(const RefPtr<Element>& child, int32_t slot) in AddChild() argument 34 if (!child) { in AddChild() 38 auto it = std::find(children_.begin(), children_.end(), child); in AddChild() 46 children_.insert(it, child); in AddChild() 48 child->SetSlot(slot); in AddChild() 49 Apply(child); in AddChild() 52 void Element::RemoveChild(const RefPtr<Element>& child) in RemoveChild() argument 54 if (child) { in RemoveChild() 70 ChangeChildSlot(const RefPtr<Element>& child, int32_t slot) ChangeChildSlot() argument 101 ChangeChildRenderSlot(const RefPtr<Element>& child, int32_t renderSlot, bool effectDescendant) ChangeChildRenderSlot() argument 121 DeactivateChild(RefPtr<Element> child) DeactivateChild() argument 139 DetachChild(const RefPtr<Element>& child) DetachChild() argument 188 DoUpdateChildWithNewComponent( const RefPtr<Element>& child, const RefPtr<Component>& newComponent, int32_t slot, int32_t renderSlot) DoUpdateChildWithNewComponent() argument 199 UpdateChildWithSlot( const RefPtr<Element>& child, const RefPtr<Component>& newComponent, int32_t slot, int32_t renderSlot) UpdateChildWithSlot() argument [all...] |
H A D | single_child.h | 29 explicit SingleChild(const RefPtr<Component>& child) : child_(child) {} in SingleChild() argument 37 void SetChild(const RefPtr<Component>& child) in SetChild() argument 39 SetChildDirectly(child); in SetChild() 40 if (child) { in SetChild() 41 OnChildAdded(child); in SetChild() 45 void SetChildDirectly(const RefPtr<Component>& child) in SetChildDirectly() argument 47 // Clear preview child's parent. in SetChildDirectly() 52 child_ = child; in SetChildDirectly() 54 // Set current child' in SetChildDirectly() 61 OnChildAdded(const RefPtr<Component>& child) OnChildAdded() argument [all...] |
H A D | sole_child_component.h | 30 explicit SoleChildComponent(const RefPtr<Component>& child) : SingleChild(child) {} in SoleChildComponent() argument 41 auto child = GetChild(); variable 42 if (child) { 43 child->SetUpdateType(updateType); 50 auto child = GetChild(); variable 51 if (child) { 52 child->SetDisabledStatus(disabledStatus); 59 auto child = GetChild(); variable 60 if (child) { [all...] |
H A D | flutter_render_context.cpp | 51 void FlutterRenderContext::PaintChild(const RefPtr<RenderNode>& child, const Offset& offset) in PaintChild() argument 53 if (!ShouldPaint(child)) { in PaintChild() 58 auto pipeline = child->GetContext().Upgrade(); in PaintChild() 63 Rect rect = child->GetTransitionPaintRect() + offset; in PaintChild() 64 if (!(child->IsPaintOutOfParent() || canChildOverflow) && !estimatedRect_.IsIntersectWith(rect)) { in PaintChild() 66 child->ClearAccessibilityRect(); in PaintChild() 71 if (child->GetRenderLayer()) { in PaintChild() 73 std::string name = AceType::TypeName(child); in PaintChild() 75 if (child->NeedRender()) { in PaintChild() 77 auto pipelineContext = child in PaintChild() 108 SetOffSet( const RefPtr<RenderNode>& child, OffsetLayer* layer, const Offset& pos, const std::string& name) SetOffSet() argument 180 IsIntersectWith(const RefPtr<RenderNode>& child, Offset& offset) IsIntersectWith() argument [all...] |
H A D | multi_child.h | 39 void AddChild(const RefPtr<Component>& child) in AddChild() argument 41 if (!child) { in AddChild() 46 auto it = std::find(children.begin(), children.end(), child); in AddChild() 51 child->SetParent(AceType::WeakClaim(AceType::DynamicCast<Component>(this))); in AddChild() 52 children.emplace_back(child); in AddChild() 55 void RemoveChild(const RefPtr<Component>& child) in RemoveChild() argument 57 if (!child) { in RemoveChild() 62 auto it = std::find(children.begin(), children.end(), child); in RemoveChild() 67 child->SetParent(nullptr); in RemoveChild() 74 for (auto& child in RemoveChildren() [all...] |
H A D | composed_component.h | 34 ComposedComponent(const ComposeId& id, const std::string& name, const RefPtr<Component>& child); 43 auto child = GetChild(); variable 44 if (child) { 45 child->SetUpdateType(updateType); 52 auto child = GetChild(); variable 53 if (child) { 54 child->SetDisabledStatus(disabledStatus); 61 auto child = GetChild(); variable 62 if (child) { 63 child [all...] |
H A D | rosen_render_context.cpp | 64 void RosenRenderContext::PaintChild(const RefPtr<RenderNode>& child, const Offset& offset) in PaintChild() argument 66 if (!ShouldPaint(child)) { in PaintChild() 69 auto pipelineContext = child->GetContext().Upgrade(); in PaintChild() 75 Rect rect = child->GetTransitionPaintRect() + offset; in PaintChild() 76 if (!(child->IsPaintOutOfParent() || canChildOverflow) && !estimatedRect_.IsIntersectWith(rect)) { in PaintChild() 78 child->ClearAccessibilityRect(); in PaintChild() 83 auto childRSNode = child->GetRSNode(); in PaintChild() 86 std::string name = AceType::TypeName(child); in PaintChild() 88 if (child->NeedRender()) { in PaintChild() 91 if (transparentHole.IsValid() && child in PaintChild() 175 IsIntersectWith(const RefPtr<RenderNode>& child, Offset& offset) IsIntersectWith() argument [all...] |
/foundation/arkui/ui_lite/frameworks/layout/ |
H A D | grid_layout.cpp | 24 UIView* child = childrenHead_; in LayoutChildren() local 30 while (child != nullptr) { in LayoutChildren() 32 child = child->GetNextSibling(); in LayoutChildren() 51 UIView* child = childrenHead_; in LayoutHorizontal() local 62 if (child == nullptr) { in LayoutHorizontal() 66 child->ReMeasure(); in LayoutHorizontal() 67 left = child->GetStyle(STYLE_MARGIN_LEFT); in LayoutHorizontal() 68 right = child->GetStyle(STYLE_MARGIN_RIGHT); in LayoutHorizontal() 69 top = child in LayoutHorizontal() 85 UIView* child = childrenHead_; LayoutVertical() local [all...] |
H A D | flex_layout.cpp | 52 /* if total length of children is too long or only one child, layout them centerly no matter what key word set. in GetStartPos() 100 UIView* child = childrenHead_; in CalValidLength() local 107 while (child != nullptr) { in CalValidLength() 108 if (child->IsVisible()) { in CalValidLength() 109 child->ReMeasure(); in CalValidLength() 111 left = child->GetStyle(STYLE_MARGIN_LEFT); in CalValidLength() 112 right = child->GetStyle(STYLE_MARGIN_RIGHT); in CalValidLength() 113 totalValidLength += (child->GetRelativeRect().GetWidth() + left + right); in CalValidLength() 115 top = child->GetStyle(STYLE_MARGIN_TOP); in CalValidLength() 116 bottom = child in CalValidLength() 127 UIView* child = childrenHead_; CalRowCount() local 151 UIView* child = childrenHead_; GetRowMaxHeight() local 187 UIView* child = childrenHead_; GetRowsWidth() local 222 GetCrossAxisPosY(int16_t& posY, uint16_t& count, uint16_t* rowsMaxHeight, UIView* child) GetCrossAxisPosY() argument 257 UIView* child = childrenHead_; LayoutHorizontal() local 317 UIView* child = childrenHead_; CalColumnCount() local 341 UIView* child = childrenHead_; GetColumnMaxWidth() local 375 UIView* child = childrenHead_; GetColumnsHeight() local 410 GetCrossAxisPosX(int16_t& posX, uint16_t& count, uint16_t* columnsMaxWidth, UIView* child) GetCrossAxisPosX() argument 445 UIView* child = childrenHead_; LayoutVertical() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | ui_node.cpp | 89 for (auto& child : children_) { in AttachContext() 90 child->AttachContext(context, recursive); in AttachContext() 109 for (auto& child : children_) { in DetachContext() 110 child->DetachContext(recursive); in DetachContext() 115 void UINode::AddChild(const RefPtr<UINode>& child, int32_t slot, in AddChild() argument 118 CHECK_NULL_VOID(child); in AddChild() 119 auto it = std::find(children_.begin(), children_.end(), child); in AddChild() 125 RemoveDisappearingChild(child); in AddChild() 131 LOGW("Current Node(id: %{public}d) is prohibited add child(tag %{public}s, id: %{public}d), " in AddChild() 133 GetId(), child in AddChild() 173 AddChildAfter(const RefPtr<UINode>& child, const RefPtr<UINode>& siblingNode) AddChildAfter() argument 196 AddChildBefore(const RefPtr<UINode>& child, const RefPtr<UINode>& siblingNode) AddChildBefore() argument 237 RemoveChild(const RefPtr<UINode>& child, bool allowTransition) RemoveChild() argument 267 RemoveChildAndReturnIndex(const RefPtr<UINode>& child) RemoveChildAndReturnIndex() argument 418 LoopDetected(const RefPtr<UINode>& child, const RefPtr<UINode>& current) LoopDetected() argument 454 DetectLoop(const RefPtr<UINode>& child, const RefPtr<UINode>& current) DetectLoop() argument 468 DoAddChild( std::list<RefPtr<UINode>>::iterator& it, const RefPtr<UINode>& child, bool silently, bool addDefaultTransition) DoAddChild() argument 521 RemoveFromParentCleanly(const RefPtr<UINode>& child, const RefPtr<UINode>& parent) RemoveFromParentCleanly() argument 972 auto child = JsonUtil::Create(); DumpSimplifyTree() local 979 auto child = JsonUtil::Create(); DumpSimplifyTree() local 1145 auto& child = *iter; TouchTest() local 1164 auto& child = *iter; MouseTest() local 1182 auto& child = *iter; AxisTest() local 1239 auto child = GetChildren().front(); CreateLayoutWrapper() local 1406 AddDisappearingChild(const RefPtr<UINode>& child, uint32_t index, int32_t branchId) AddDisappearingChild() argument 1422 RemoveDisappearingChild(const RefPtr<UINode>& child) RemoveDisappearingChild() argument [all...] |
/foundation/arkui/ace_engine/adapter/ohos/entrance/ui_session/ |
H A D | ui_session_json_util.cpp | 50 cJSON* child = cJSON_CreateString(value); in Put() local 51 if (child == nullptr) { in Put() 54 cJSON_AddItemToObject(object_, key, child); in Put() 93 cJSON* child = cJSON_CreateNumber(static_cast<double>(value)); in Put() local 94 if (child == nullptr) { in Put() 97 cJSON_AddItemToObject(object_, key, child); in Put() 107 cJSON* child = cJSON_CreateNumber(static_cast<double>(value)); in Put() local 108 if (child == nullptr) { in Put() 111 cJSON_AddItemToObject(object_, key, child); in Put() 126 cJSON* child in Put() local 140 cJSON* child = cJSON_CreateBool(value); Put() local 154 cJSON* child = cJSON_CreateString(value); Replace() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/ |
H A D | flex_layout_algorithm.cpp | 108 FlexDirection direction, const RefPtr<LayoutWrapper>& child, LayoutConstraintF& layoutConstraint) in UpdateChildLayoutConstrainByFlexBasis() 110 const auto& flexItemProperty = child->GetLayoutProperty()->GetFlexItemProperty(); in UpdateChildLayoutConstrainByFlexBasis() 117 if (child->GetLayoutProperty()->GetCalcLayoutConstraint()) { in UpdateChildLayoutConstrainByFlexBasis() 118 auto selfIdealSize = child->GetLayoutProperty()->GetCalcLayoutConstraint()->selfIdealSize; in UpdateChildLayoutConstrainByFlexBasis() 119 if (child->GetHostTag() == V2::BLANK_ETS_TAG && selfIdealSize.has_value()) { in UpdateChildLayoutConstrainByFlexBasis() 136 float GetMainAxisMargin(const RefPtr<LayoutWrapper>& child, FlexDirection direction) in GetMainAxisMargin() argument 139 if (child && child->GetGeometryNode() && child->GetGeometryNode()->GetMargin()) { in GetMainAxisMargin() 140 childMainAxisMargin = GetMainAxisSizeHelper(child in GetMainAxisMargin() 107 UpdateChildLayoutConstrainByFlexBasis( FlexDirection direction, const RefPtr<LayoutWrapper>& child, LayoutConstraintF& layoutConstraint) UpdateChildLayoutConstrainByFlexBasis() argument 525 HandleBlankFirstTimeMeasure( const MagicLayoutNode& child, FlexItemProperties& flexItemProperties) HandleBlankFirstTimeMeasure() argument 632 auto& child = *iter; SecondaryMeasureByProperty() local 690 auto child = *iter; SecondaryMeasureByProperty() local 707 auto child = *iter; SecondaryMeasureByProperty() local 760 auto child = childLayoutWrapper->GetHostNode(); CheckBlankAndKeepMin() local 777 auto child = childLayoutWrapper->GetHostNode(); IsKeepMinSize() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/shape/ |
H A D | shape_container_element.cpp | 39 for (const auto& child : children) { in UpdateChildStyle() 40 UpdateChildStyle(shapeContainerComponent, child); in UpdateChildStyle() 47 auto child = component; in UpdateChildStyle() local 48 auto inspectorComposedComponent = AceType::DynamicCast<V2::InspectorComposedComponent>(child); in UpdateChildStyle() 50 child = inspectorComposedComponent->GetChild(); in UpdateChildStyle() 52 while (child) { in UpdateChildStyle() 53 auto shapeComponent = AceType::DynamicCast<ShapeComponent>(child); in UpdateChildStyle() 59 auto shapeContainerComponent = AceType::DynamicCast<ShapeContainerComponent>(child); in UpdateChildStyle() 65 auto soleChildComponent = AceType::DynamicCast<SoleChildComponent>(child); in UpdateChildStyle() 67 child in UpdateChildStyle() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/custom/ |
H A D | custom_node_layout_algorithm.cpp | 33 RefPtr<UINode> child; in Measure() local 36 // first create child node and wrapper. in Measure() 43 child = renderFunction_(); in Measure() 47 CHECK_NULL_VOID(child); in Measure() 49 for (const auto& child : frameNode->GetChildren()) { in Measure() 50 if (!child) { in Measure() 54 buildItem_ = child; in Measure() 56 child->MountToParent(host); in Measure() 58 child->AdjustLayoutWrapperTree(layoutWrapperNode, true, true); in Measure() 77 for (auto&& child in Measure() [all...] |
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | form_utils_impl.cpp | 44 auto child = params->GetChild(); in RouterEvent() local 45 while (child->IsValid()) { in RouterEvent() 46 auto key = child->GetKey(); in RouterEvent() 47 if (child->IsNull()) { in RouterEvent() 49 } else if (child->IsString()) { in RouterEvent() 50 want.SetParam(key, child->GetString()); in RouterEvent() 51 } else if (child->IsNumber()) { in RouterEvent() 52 want.SetParam(key, child->GetInt()); in RouterEvent() 56 child = child in RouterEvent() 124 auto child = params->GetChild(); BackgroundEvent() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/scroll_bar/ |
H A D | render_scroll_bar.cpp | 103 auto child = GetChildren().front(); in HandleDragStart() local 104 if (!child) { in HandleDragStart() 113 auto child = GetChildren().front(); in HandleDragUpdate() local 114 if (!child) { in HandleDragUpdate() 121 double positionX = std::clamp(child->GetPosition().GetX() + info.GetDelta().GetX(), 0.0, in HandleDragUpdate() 122 (GetLayoutSize() - child->GetLayoutSize()).Width()); in HandleDragUpdate() 123 child->SetPosition(Offset(positionX, child->GetPosition().GetY())); in HandleDragUpdate() 132 double positionY = std::clamp(child->GetPosition().GetY() + info.GetDelta().GetY(), 0.0, in HandleDragUpdate() 133 (GetLayoutSize() - child in HandleDragUpdate() 174 auto child = GetLastChild(); InitChildPosition() local 265 const auto& child = GetChildren().front(); PerformLayout() local 275 auto child = GetLastChild(); OnPaintFinish() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/command/ |
H A D | rs_base_node_command.cpp | 44 auto child = nodeMap.GetRenderNode(childNodeId); in AddChild() local 45 if (node && child) { in AddChild() 46 node->AddChild(child, index); in AddChild() 47 } else if (child == nullptr) { in AddChild() 48 RS_LOGE("BaseNodeCommandHelper::AddChild child:%{public}" PRIu64 " not found in map", childNodeId); in AddChild() 56 auto child = nodeMap.GetRenderNode(childNodeId); in MoveChild() local 57 if (node && child) { in MoveChild() 58 node->MoveChild(child, index); in MoveChild() 66 auto child = nodeMap.GetRenderNode(childNodeId); in RemoveChild() local 67 if (node && child) { in RemoveChild() 76 auto child = nodeMap.GetRenderNode(childId); AddCrossParentChild() local 87 auto child = nodeMap.GetRenderNode(childNodeId); RemoveCrossParentChild() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/ |
H A D | recognizer_group.cpp | 29 for (const auto& child : recognizers_) { in OnBeginGestureReferee() 30 if (child) { in OnBeginGestureReferee() 31 child->BeginReferee(touchId, needUpdateChild); in OnBeginGestureReferee() 40 for (const auto& child : recognizers_) { in CreateGestureFromRecognizer() 41 if (!child) { in CreateGestureFromRecognizer() 44 RefPtr<Gesture> gesture = child->CreateGestureFromRecognizer(); in CreateGestureFromRecognizer() 54 for (const auto& child : recognizers_) { in OnFinishGestureReferee() 55 if (child) { in OnFinishGestureReferee() 56 child->FinishReferee(touchId, isBlocked); in OnFinishGestureReferee() 69 for (const auto& child in AddChildren() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_defs.h | 52 for (auto& child : children_) { 53 if (AceType::InstanceOf<SvgMask>(child) || 54 AceType::InstanceOf<SvgPattern>(child) || 55 AceType::InstanceOf<SvgFilter>(child)) { 56 auto childRender = child->CreateRender(layoutParam, nullptr, useBox); 59 child->Update(childRender); 66 void AppendChild(const RefPtr<SvgNode>& child) override 68 children_.emplace_back(child); 75 for (auto child : children_) { 76 const SkPath childPath = child [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/ |
H A D | option_layout_algorithm.cpp | 41 // measure child in Measure() 46 auto child = layoutWrapper->GetOrCreateChildByIndex(0); in Measure() local 47 CHECK_NULL_VOID(child); in Measure() 48 auto rowChild = child->GetOrCreateChildByIndex(0); in Measure() 55 MeasureRow(child, childConstraint); in Measure() 57 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Measure() 92 auto child = layoutWrapper->GetOrCreateChildByIndex(0); in Layout() local 93 child->GetLayoutProperty()->UpdatePropertyChangeFlag(PROPERTY_UPDATE_LAYOUT); in Layout() 94 auto rowChild = child->GetOrCreateChildByIndex(0); in Layout() 98 SizeF childSize = child in Layout() 180 auto child = layoutWrapper->GetOrCreateChildByIndex(0); UpdateIconMargin() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_divider_arithmetic.h | 73 for (const auto& child : refDivider_->GetMap()) {
74 auto it = dividermap_.find(child.first);
76 result.emplace(child.first, child.second);
84 result.emplace(child.first, divider);
99 for (const auto& child : dividermap_) {
100 auto it = another.find(child.first);
101 if (it == another.end() || it->second.offset != child.second.offset ||
102 it->second.length != child.second.length) {
126 for (const auto& child in Calculate() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | inspector_composed_element.h | 43 auto child = children_.empty() ? nullptr : children_.front(); in GetInspectorElement() local 44 while (child) { in GetInspectorElement() 45 auto inspectorComposedElement = AceType::DynamicCast<InspectorComposedElement>(child); in GetInspectorElement() 49 if (AceType::TypeId(child) == typeId) { in GetInspectorElement() 50 return AceType::DynamicCast<T>(child->GetRenderNode()); in GetInspectorElement() 53 child = child->GetChildren().empty() ? nullptr : child->GetChildren().front(); in GetInspectorElement() 67 auto child = children_.empty() ? nullptr : children_.front(); in GetContentElement() local 68 while (child) { in GetContentElement() 84 auto child = children_.empty() ? nullptr : children_.front(); GetContentRender() local 96 auto child = children_.empty() ? nullptr : children_.front(); GetInspectorComposedElement() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/stack/ |
H A D | stack_element.cpp | 80 for (const auto& child: children_) { in HasOverlayChild() 82 [child](const ToastInfo& toast) { return toast.child == child; })) { in HasOverlayChild() 156 auto child = children_.end(); in PopInstant() local 157 if (child != children_.begin()) { in PopInstant() 158 child--; in PopInstant() 159 UpdateChild(*child, nullptr); in PopInstant() 236 for (auto child = (++children_.rbegin()); child ! in PerformPushChild() 347 auto child = DynamicCast<TweenElement>(*iter); PerformPopPopup() local 418 auto child = children_.end(); PerformDirectPop() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/stepper/ |
H A D | stepper_component.cpp | 58 void StepperComponent::InsertChild(int32_t position, const RefPtr<Component>& child) in InsertChild() argument 64 auto item = StepperItemComponent::GetStepperItem(child); in InsertChild() 66 LOGE("InsertChild: no stepper item in child"); in InsertChild() 71 if (!child || pos > children.size()) { in InsertChild() 75 AppendChild(child); in InsertChild() 79 ComponentGroup::InsertChild(position, child); in InsertChild() 88 void StepperComponent::AppendChild(const RefPtr<Component>& child) in AppendChild() argument 90 auto stepperItemList = CollectItems(child); in AppendChild() 102 auto item = StepperItemComponent::GetStepperItem(child); in AppendChild() 104 LOGE("AppendChild: no stepper item in child"); in AppendChild() 113 RemoveChild(const RefPtr<Component>& child) RemoveChild() argument 127 CollectItems(const RefPtr<Component>& child) CollectItems() argument [all...] |