/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/relative_container/ |
H A D | relative_container_layout_algorithm.cpp | 562 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 D | layout_wrapper_node_test_ng.cpp | 117 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 D | layout_wrapper_test_ng.cpp | 1555 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 D | scroll_bar_layout_algorithm.cpp | 96 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 D | tab_bar_layout_algorithm.cpp | 222 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 D | tab_bar_layout_algorithm.h | 120 …hildMarginProperty(float rightMargin, float leftMargin, const RefPtr<LayoutWrapper>& childWrapper);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/ |
H A D | indexer_layout_algorithm.cpp | 82 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 D | scroll_layout_algorithm.cpp | 60 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 D | grid_adaptive_layout_algorithm.cpp | 107 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 D | radio_layout_algorithm.cpp | 136 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 D | button_layout_algorithm.cpp | 150 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 D | checkbox_layout_algorithm.cpp | 161 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 D | progress_layout_algorithm.cpp | 170 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 D | badge_layout_algorithm.cpp | 158 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 D | text_input_response_area.cpp | 52 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 D | flex_testthree_ng.cpp | 231 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 D | flex_test_ng.cpp | 731 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 D | flex_testtwo_ng.cpp | 1107 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 D | option_test_ng.cpp | 168 … 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 D | linear_split_test_ng.cpp | 458 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 D | menuitemgroup_test_ng.cpp | 267 … 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 D | grid_layout_algorithm.cpp | 350 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 D | security_component_layout_algorithm.cpp | 44 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 D | swiper_layout_algorithm.cpp | 678 …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 D | radio_test_ng.cpp | 1833 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 …]
|