Home
last modified time | relevance | path

Searched refs:childWrapper (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/relative_container/
H A Drelative_container_layout_algorithm.cpp562 CHECK_NULL_VOID(childWrapper); in RecordSizeInChain()
849 if (!childWrapper->IsActive()||!childWrapper->GetLayoutProperty() || in MeasureChainWeight()
949 if (!childWrapper->IsActive()) { in MeasureChild()
953 …if (!childWrapper->GetLayoutProperty() || !childWrapper->GetLayoutProperty()->GetFlexItemProperty(… in MeasureChild()
1023 childWrapper->Layout(); in Layout()
1032 childWrapper->Layout(); in Layout()
1037 childWrapper->Layout(); in Layout()
1050 if (!childWrapper) { in CollectNodesById()
1057 childWrapper->SetActive(); in CollectNodesById()
1411 childWrapper->Measure(childConstraint); in CalcSizeParam()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/layout/
H A Dlayout_wrapper_node_test_ng.cpp117 wrapper->AppendChild(childWrapper, true);
133 wrapper->AppendChild(childWrapper, false);
186 childWrapper->isActive_ = true;
191 wrapper->AppendChild(childWrapper, true);
210 childWrapper->geometryNode_->SetFrameSize(frameSizeChild);
214 wrapper->AppendChild(childWrapper, true);
314 RefPtr<LayoutWrapperNode> childWrapper = variable
316 childWrapper->layoutProperty_->geometryTransition_ = geometryTransition;
317 childWrapper->isActive_ = true;
322 wrapper->AppendChild(childWrapper, true);
[all …]
H A Dlayout_wrapper_test_ng.cpp1555 auto [child, childWrapper] = CreateNodeAndWrapper(FIRST_CHILD_FRAME_NODE, NODE_ID_1);
1622 auto [child, childWrapper] = CreateNodeAndWrapper(FIRST_CHILD_FRAME_NODE, NODE_ID_2);
1624 childWrapper->AddNodeFlexLayouts();
1634 childWrapper->AddNodeFlexLayouts();
1642 childWrapper->AddNodeFlexLayouts();
1725 auto [child, childWrapper] = CreateNodeAndWrapper(FIRST_CHILD_FRAME_NODE, NODE_ID_2);
1727 childWrapper->AddNodeFlexLayouts();
1737 childWrapper->AddNodeFlexLayouts();
1745 childWrapper->AddNodeFlexLayouts();
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_layout_algorithm.cpp96 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Measure() local
98 if (!childWrapper && Container::GreatOrEqualAPITargetVersion(PlatformVersion::VERSION_TWELVE)) { in Measure()
103 CHECK_NULL_VOID(childWrapper); in Measure()
104 childWrapper->Measure(childLayoutConstraint); in Measure()
106 auto childSize = childWrapper->GetGeometryNode()->GetMarginFrameSize(); in Measure()
124 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Layout() local
125 CHECK_NULL_VOID(childWrapper); in Layout()
126 auto childGeometryNode = childWrapper->GetGeometryNode(); in Layout()
155 childWrapper->Layout(); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_layout_algorithm.cpp222 CHECK_NULL_VOID(childWrapper); in UpdateMaxLines()
534 CHECK_NULL_VOID (childWrapper); in MeasureItem()
567 SetTabBarMargin(childWrapper, index); in MeasureItem()
590 CHECK_NULL_VOID (childWrapper); in SetTabBarMargin()
621 CHECK_NULL_VOID(childWrapper); in MeasureItemSecond()
654 CHECK_NULL_VOID(childWrapper); in MeasureMaxHeight()
736 CHECK_NULL_VOID(childWrapper); in ApplyLayoutMode()
789 CHECK_NULL_VOID(childWrapper); in ApplySymmetricExtensible()
850 CHECK_NULL_VOID(childWrapper); in CalculateItemWidthsForSymmetricExtensible()
985 if (!childWrapper) { in LayoutChildren()
[all …]
H A Dtab_bar_layout_algorithm.h120 …hildMarginProperty(float rightMargin, float leftMargin, const RefPtr<LayoutWrapper>& childWrapper);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
H A Dindexer_layout_algorithm.cpp82 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Measure() local
83 CHECK_NULL_VOID(childWrapper); in Measure()
85 childWrapper->Measure(childLayoutConstraint); in Measure()
184 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in GetMaxItemWidth() local
185 CHECK_NULL_RETURN(childWrapper, INDEXER_ZERO_WIDTH); in GetMaxItemWidth()
186 childWrapper->Measure(childLayoutConstraint); in GetMaxItemWidth()
187 auto node = childWrapper->GetGeometryNode(); in GetMaxItemWidth()
198 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(childCount - 1); in MeasurePopup() local
199 CHECK_NULL_VOID(childWrapper); in MeasurePopup()
200 …auto childLayoutProperty = AceType::DynamicCast<LinearLayoutProperty>(childWrapper->GetLayoutPrope… in MeasurePopup()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_layout_algorithm.cpp60 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Measure() local
62 if (childWrapper) { in Measure()
63 childWrapper->Measure(childLayoutConstraint); in Measure()
65 childSize = childWrapper->GetGeometryNode()->GetMarginFrameSize(); in Measure()
116 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Layout() local
117 CHECK_NULL_VOID(childWrapper); in Layout()
118 auto childGeometryNode = childWrapper->GetGeometryNode(); in Layout()
155 childWrapper->Layout(); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_adaptive/
H A Dgrid_adaptive_layout_algorithm.cpp107 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Measure() local
108 if (!childWrapper) { in Measure()
111 childWrapper->Measure(childLayoutConstraint); in Measure()
128 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Layout() local
129 if (!childWrapper) { in Layout()
135 childWrapper->GetGeometryNode()->GetMarginFrameSize().Width() + in Layout()
138 childWrapper->GetGeometryNode()->SetMarginFrameOffset(childOffset); in Layout()
139 childWrapper->Layout(); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/radio/
H A Dradio_layout_algorithm.cpp136 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Layout() local
137 CHECK_NULL_VOID(childWrapper); in Layout()
138 SizeF childSize = childWrapper->GetGeometryNode()->GetMarginFrameSize(); in Layout()
143 childWrapper->GetGeometryNode()->SetMarginFrameOffset(translate); in Layout()
144 childWrapper->Layout(); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/
H A Dbutton_layout_algorithm.cpp150 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in HandleAdaptiveText() local
151 CHECK_NULL_VOID(childWrapper); in HandleAdaptiveText()
153 childWrapper->Measure(childConstraint); in HandleAdaptiveText()
154 auto textSize = childWrapper->GetGeometryNode()->GetContentSize(); in HandleAdaptiveText()
164 … auto textLayoutProperty = DynamicCast<TextLayoutProperty>(childWrapper->GetLayoutProperty()); in HandleAdaptiveText()
170 childWrapper->Measure(layoutConstraint); in HandleAdaptiveText()
171 childSize_ = childWrapper->GetGeometryNode()->GetContentSize(); in HandleAdaptiveText()
358 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in NeedAgingMeasure() local
359 CHECK_NULL_RETURN(childWrapper, false); in NeedAgingMeasure()
360 auto childGeometryNode = childWrapper->GetGeometryNode(); in NeedAgingMeasure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkbox/
H A Dcheckbox_layout_algorithm.cpp161 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Layout() local
162 CHECK_NULL_VOID(childWrapper); in Layout()
163 SizeF childSize = childWrapper->GetGeometryNode()->GetMarginFrameSize(); in Layout()
168 childWrapper->GetGeometryNode()->SetMarginFrameOffset(translate); in Layout()
169 childWrapper->Layout(); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
H A Dprogress_layout_algorithm.cpp170 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in GetChildHeight() local
171 CHECK_NULL_RETURN(childWrapper, DEFALT_CAPSULE_WIDTH.ConvertToPx()); in GetChildHeight()
175 …auto childLayoutProperty = AceType::DynamicCast<TextLayoutProperty>(childWrapper->GetLayoutPropert… in GetChildHeight()
179 childWrapper->Measure(childConstraint); in GetChildHeight()
180 auto childSize = childWrapper->GetGeometryNode()->GetContentSize(); in GetChildHeight()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/
H A Dbadge_layout_algorithm.cpp158 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(childrenSize - 2); in Measure() local
159 CHECK_NULL_VOID(childWrapper); in Measure()
160 childWrapper->Measure(childLayoutConstraint); in Measure()
327 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(childrenSize - 2); in Layout() local
328 CHECK_NULL_VOID(childWrapper); in Layout()
329 auto childGeometryNode = childWrapper->GetGeometryNode(); in Layout()
341 childWrapper->Layout(); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_input_response_area.cpp52 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutChild() local
53 CHECK_NULL_VOID(childWrapper); in LayoutChild()
54 auto childGeometryNode = childWrapper->GetGeometryNode(); in LayoutChild()
59 childWrapper->GetGeometryNode()->SetFrameSize(childFrameSize); in LayoutChild()
62 childWrapper->Layout(); in LayoutChild()
81 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Measure() local
86 CHECK_NULL_RETURN(childWrapper, size); in Measure()
87 auto childLayoutProperty = childWrapper->GetLayoutProperty(); in Measure()
88 childWrapper->Measure(childLayoutConstraint); in Measure()
89 auto geometryNode = childWrapper->GetGeometryNode(); in Measure()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/flex/old_cases/
H A Dflex_testthree_ng.cpp231 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); variable
232 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
239 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); variable
240 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
371 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); variable
372 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
380 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); variable
381 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
598 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
686 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
[all …]
H A Dflex_test_ng.cpp731 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
732 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
1020 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
1021 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
1103 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
1104 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
1188 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
1273 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
1357 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
1442 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
[all …]
H A Dflex_testtwo_ng.cpp1107 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); variable
1108 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
1109 auto childOffset = childWrapper->GetGeometryNode()->GetFrameOffset();
1115 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); variable
1116 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
1117 auto childOffset = childWrapper->GetGeometryNode()->GetFrameOffset();
1246 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); variable
1247 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
1248 auto childOffset = childWrapper->GetGeometryNode()->GetFrameOffset();
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/option/
H A Doption_test_ng.cpp168 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(nullptr, rosenRefPtr, rosenMakeRefPtr); variable
169 rosenLayoutWrapper->AppendChild(childWrapper);
269 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(nullptr, rosenRefPtr, rosenMakeRefPtr); variable
270 rosenLayoutWrapper->AppendChild(childWrapper);
546 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(nullptr, rosenRefPtr, rosenMakeRefPtr); variable
547 rosenLayoutWrapper->AppendChild(childWrapper);
642 …auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(optionNode, rosenRefPtr, rosenMakeRefPt… variable
643 rosenLayoutWrapper->AppendChild(childWrapper);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/linear_split/
H A Dlinear_split_test_ng.cpp458 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
459 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
460 auto childOffset = childWrapper->GetGeometryNode()->GetFrameOffset();
652 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
653 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
654 auto childOffset = childWrapper->GetGeometryNode()->GetFrameOffset();
876 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
877 auto childSize = childWrapper->GetGeometryNode()->GetFrameSize();
878 auto childOffset = childWrapper->GetGeometryNode()->GetFrameOffset();
1056 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); variable
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenuitemgroup_test_ng.cpp267 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(menuItem, itemGeoNode, layoutProp); variable
268 layoutWrapper->AppendChild(childWrapper);
329 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(menuItem, itemGeoNode, layoutProp); variable
330 layoutWrapper->AppendChild(childWrapper);
345 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(menuItem, itemGeoNode, layoutProp); variable
346 layoutWrapper->AppendChild(childWrapper);
395 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(menuItem, itemGeoNode, layoutProp2); variable
396 layoutWrapper->AppendChild(childWrapper);
461 … auto childWrapper = AceType::MakeRefPtr<LayoutWrapperNode>(menuItem, itemGeoNode, layoutProp); variable
462 layoutWrapper->AppendChild(childWrapper);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_layout/
H A Dgrid_layout_algorithm.cpp350 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Layout() local
351 if (!childWrapper) { in Layout()
355 childWrapper->GetGeometryNode()->SetMarginFrameOffset(padding.Offset() + childOffset); in Layout()
356 childWrapper->Layout(); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_layout_algorithm.cpp44 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(i); in GetChildWrapper() local
45 if (childWrapper == nullptr) { in GetChildWrapper()
48 if (childWrapper->GetHostTag() == tag) { in GetChildWrapper()
49 return childWrapper; in GetChildWrapper()
58 auto childWrapper = GetChildWrapper(layoutWrapper, tag); in UpdateChildPosition() local
59 CHECK_NULL_VOID(childWrapper); in UpdateChildPosition()
60 auto childNode = childWrapper->GetHostNode(); in UpdateChildPosition()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.cpp678 …const RefPtr<LayoutWrapper>& childWrapper, const RefPtr<SwiperLayoutProperty>& swiperProperty, Axi… in GetChildMainAxisSize() argument
680 CHECK_NULL_RETURN(childWrapper, 0.0f); in GetChildMainAxisSize()
682 … float mainAxisSize = GetMainAxisSize(childWrapper->GetGeometryNode()->GetMarginFrameSize(), axis); in GetChildMainAxisSize()
692 auto childProperty = childWrapper->GetLayoutProperty(); in GetChildMainAxisSize()
1399 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in ResetOffscreenItemPosition() local
1400 CHECK_NULL_VOID(childWrapper); in ResetOffscreenItemPosition()
1402 if (childWrapper->GetHostTag() == V2::SWIPER_INDICATOR_ETS_TAG || in ResetOffscreenItemPosition()
1403 childWrapper->GetHostTag() == V2::SWIPER_LEFT_ARROW_ETS_TAG || in ResetOffscreenItemPosition()
1404 childWrapper->GetHostTag() == V2::SWIPER_RIGHT_ARROW_ETS_TAG) { in ResetOffscreenItemPosition()
1408 auto childGeometryNode = childWrapper->GetGeometryNode(); in ResetOffscreenItemPosition()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/radio/
H A Dradio_test_ng.cpp1833 RefPtr<LayoutWrapperNode> childWrapper = variable
1841 layoutWrapper.AppendChild(childWrapper);
1847 childWrapper->GetGeometryNode()->SetFrameSize(CHILD_FRAME_SIZE);
1857 EXPECT_TRUE(IsEqual(childWrapper->GetGeometryNode()->GetMarginFrameOffset(), child_offset));
1892 RefPtr<LayoutWrapperNode> childWrapper = variable
1902 layoutWrapper.AppendChild(childWrapper);
1908 childWrapper->GetGeometryNode()->SetFrameSize(CHILD_FRAME_SIZE);
1918 EXPECT_TRUE(IsEqual(childWrapper->GetGeometryNode()->GetMarginFrameOffset(), child_offset));
1959 RefPtr<LayoutWrapperNode> childWrapper = variable
1969 layoutWrapper.AppendChild(childWrapper);
[all …]

12