Home
last modified time | relevance | path

Searched refs:GetOrCreateChildByIndex (Results 1 – 25 of 101) sorted by relevance

12345

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/grid_row/old_cases/
H A Dgrid_row_test_ng.cpp181 return layoutWrapper->GetOrCreateChildByIndex(index)->GetGeometryNode()->GetFrameOffset(); in GetColOffset()
281 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
291 frameRect = layoutWrapper->GetOrCreateChildByIndex(0)->GetGeometryNode()->GetFrameRect();
296 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
346 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
379 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
415 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
451 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
487 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
523 frameRect = layoutWrapper->GetOrCreateChildByIndex(1)->GetGeometryNode()->GetFrameRect();
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/counter/
H A Dcounter_layout_algorithm.cpp61 auto subButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(SUB_BUTTON); in Measure()
83 auto subButtonTextWrapper = subButtonWrapper->GetOrCreateChildByIndex(SUB_TEXT); in Measure()
92 auto contentWrapper = layoutWrapper->GetOrCreateChildByIndex(CONTENT); in Measure()
105 auto addButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(ADD_BUTTON); in Measure()
121 auto addButtonTextWrapper = addButtonWrapper->GetOrCreateChildByIndex(ADD_TEXT); in Measure()
133 auto leftButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(leftButton); in LayoutItem()
147 auto contentWrapper = layoutWrapper->GetOrCreateChildByIndex(CONTENT); in LayoutItem()
160 auto rightButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(rightButton); in LayoutItem()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_layout_algorithm.cpp75 auto headerWrapper = layoutWrapper->GetOrCreateChildByIndex(headerIndex_); in Measure()
83 auto item = layoutWrapper->GetOrCreateChildByIndex(currentIndex); in Measure()
112 auto footerWrapper = layoutWrapper->GetOrCreateChildByIndex(footerIndex_); in Measure()
145 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(pos.first); in LayoutMenuItem()
156 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(headerIndex_); in LayoutHeader()
172 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(footerIndex_); in LayoutFooter()
301 auto headerWrapper = layoutWrapper->GetOrCreateChildByIndex(headerIndex_); in UpdateHeaderAndFooterMargin()
306 auto footerWrapper = layoutWrapper->GetOrCreateChildByIndex(footerIndex_); in UpdateHeaderAndFooterMargin()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_layout_algorithm.cpp51 auto child = layoutWrapper->GetOrCreateChildByIndex(childNodeIndex_); in Measure()
70 auto startNode = layoutWrapper->GetOrCreateChildByIndex(startNodeIndex_); in Measure()
85 auto endNode = layoutWrapper->GetOrCreateChildByIndex(endNodeIndex_); in Measure()
108 auto child = layoutWrapper->GetOrCreateChildByIndex(startNodeIndex_); in Layout()
118 auto child = layoutWrapper->GetOrCreateChildByIndex(endNodeIndex_); in Layout()
128 auto child = layoutWrapper->GetOrCreateChildByIndex(childNodeIndex_); in Layout()
H A Dlist_lanes_layout_algorithm.cpp66 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(childIndex); in MeasureAndGetChildHeight()
80 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(i); in MeasureAndGetChildHeight()
136 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(currentIndex + 1); in LayoutALineForward()
159 auto wrap = layoutWrapper->GetOrCreateChildByIndex(currentIndex - i); in LayoutALineForward()
190 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(currentIndex - 1); in LayoutALineBackward()
216 auto wrap = layoutWrapper->GetOrCreateChildByIndex(currentIndex + i); in LayoutALineBackward()
370 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(index); in FindLanesStartIndex()
380 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(idx - 1); in FindLanesStartIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_layout_algorithm.cpp63 auto cancelImageWrapper = layoutWrapper->GetOrCreateChildByIndex(CANCEL_IMAGE_INDEX); in CancelImageMeasure()
143 auto textFieldWrapper = layoutWrapper->GetOrCreateChildByIndex(TEXTFIELD_INDEX); in TextFieldMeasure()
158 auto searchWrapper = layoutWrapper->GetOrCreateChildByIndex(BUTTON_INDEX); in TextFieldMeasure()
193 auto textFieldWrapper = layoutWrapper->GetOrCreateChildByIndex(TEXTFIELD_INDEX); in UpdateFontFeature()
206 auto textFieldWrapper = layoutWrapper->GetOrCreateChildByIndex(TEXTFIELD_INDEX); in SetTextFieldLayoutConstraintHeight()
221 auto imageWrapper = layoutWrapper->GetOrCreateChildByIndex(IMAGE_INDEX); in ImageMeasure()
254 auto buttonWrapper = layoutWrapper->GetOrCreateChildByIndex(BUTTON_INDEX); in SearchButtonMeasure()
318 auto dividerWrapper = layoutWrapper->GetOrCreateChildByIndex(DIVIDER_INDEX); in DividerMeasure()
358 auto searchBtnWrapper = layoutWrapper->GetOrCreateChildByIndex(BUTTON_INDEX); in CalcSearchAdaptHeight()
546 auto searchButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(BUTTON_INDEX); in CalcChildrenHotZone()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dbar_item_layout_algorithm.cpp39 auto iconWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureIcon()
56 auto textWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureToolbarItemText()
94 auto textWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureText()
106 auto iconWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutIcon()
130 auto textWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutText()
183 auto textWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Layout()
H A Dtool_bar_layout_algorithm.cpp104 auto containerWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in UpdateToolBarItemsContainer()
123 auto containerWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in CheckWhetherBarItemSizeCrossBorder()
130 auto barItemWrapper = toolbarItemWrapper->GetOrCreateChildByIndex(0); in CheckWhetherBarItemSizeCrossBorder()
152 auto containerWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in UpdateToolbarItemSize()
H A Dnavigation_layout_util.cpp126 auto toolBarWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureToolBar()
168 auto dividerWrapper = layoutWrapper->GetOrCreateChildByIndex(dividerIndex); in MeasureToolBarDivider()
207 auto toolBarWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutToolBar()
248 auto dividerWrapper = layoutWrapper->GetOrCreateChildByIndex(dividerIndex); in LayoutToolBarDivider()
H A Dtitle_bar_layout_algorithm.cpp85 auto backButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureBackButton()
289 auto subtitleWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureSubtitle()
308 auto titleWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureTitle()
360 auto subtitleWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureTitle()
418 auto menuWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureMenu()
490 auto backButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutBackButton()
566 auto titleWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutTitle()
766 auto subtitleWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutSubtitle()
879 auto menuWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutMenu()
1041 auto subtitleWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Layout()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/
H A Dselect_layout_algorithm.cpp42 auto rowWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Measure()
57 auto spinnerSize = MeasureAndGetSize(rowWrapper->GetOrCreateChildByIndex(1), childConstraint); in Measure()
59 auto textWrapper = rowWrapper->GetOrCreateChildByIndex(0); in Measure()
170 auto rowWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in UpdateMargin()
172 auto spinner = rowWrapper->GetOrCreateChildByIndex(1); in UpdateMargin()
194 auto textWrapper = rowWrapper->GetOrCreateChildByIndex(0); in UpdateMargin()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_layout_algorithm.cpp82 auto clickableArea = layoutWrapper->GetOrCreateChildByIndex(CLICKABLE_AREA_VIEW_INDEX); in Measure()
100 auto leftRow = layoutWrapper->GetOrCreateChildByIndex(0); in Layout()
102 auto rightRow = layoutWrapper->GetOrCreateChildByIndex(1); in Layout()
129 auto clickableArea = layoutWrapper->GetOrCreateChildByIndex(CLICKABLE_AREA_VIEW_INDEX); in Layout()
133 auto expandableArea = layoutWrapper->GetOrCreateChildByIndex(EXPANDABLE_AREA_VIEW_INDEX); in Layout()
160 auto leftRow = layoutWrapper->GetOrCreateChildByIndex(0); in MeasureItemViews()
169 auto rightRow = layoutWrapper->GetOrCreateChildByIndex(1); in MeasureItemViews()
210 auto expandableArea = layoutWrapper->GetOrCreateChildByIndex(EXPANDABLE_AREA_VIEW_INDEX); in MeasureItemViews()
281 auto clickableArea = layoutWrapper->GetOrCreateChildByIndex(CLICKABLE_AREA_VIEW_INDEX); in UpdateSelfSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/custom/
H A Dcustom_measure_layout_param.cpp25 return parent_->GetOrCreateChildByIndex(index_); in GetOrCreateChild()
54 RefPtr<LayoutWrapper> MeasureLayoutParam::GetOrCreateChildByIndex(int32_t index) in GetOrCreateChildByIndex() function in OHOS::Ace::NG::MeasureLayoutParam
56 return layoutWrapper_->GetOrCreateChildByIndex(index); in GetOrCreateChildByIndex()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_layout_algorithm.cpp221 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in UpdateMaxLines()
223 auto textWrapper = childWrapper->GetOrCreateChildByIndex(1); in UpdateMaxLines()
533 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureItem()
538 auto iconWrapper = childWrapper->GetOrCreateChildByIndex(0); in MeasureItem()
549 auto textWrapper = childWrapper->GetOrCreateChildByIndex(1); in MeasureItem()
557 auto textWrapper = childWrapper->GetOrCreateChildByIndex(1); in MeasureItem()
592 auto textWrapper = childWrapper->GetOrCreateChildByIndex(1); in SetTabBarMargin()
622 auto iconWrapper = childWrapper->GetOrCreateChildByIndex(0); in MeasureItemSecond()
739 auto textWrapper = childWrapper->GetOrCreateChildByIndex(1); in ApplyLayoutMode()
873 auto textWrapper = childWrapper->GetOrCreateChildByIndex(1); in UpdateChildMarginProperty()
[all …]
H A Dtabs_layout_algorithm.cpp57 auto tabBarWrapper = layoutWrapper->GetOrCreateChildByIndex(TAB_BAR_INDEX); in Measure()
65 auto dividerWrapper = layoutWrapper->GetOrCreateChildByIndex(DIVIDER_INDEX); in Measure()
73 auto swiperWrapper = layoutWrapper->GetOrCreateChildByIndex(SWIPER_INDEX); in Measure()
112 auto dividerWrapper = layoutWrapper->GetOrCreateChildByIndex(DIVIDER_INDEX); in Layout()
113 auto swiperWrapper = layoutWrapper->GetOrCreateChildByIndex(SWIPER_INDEX); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/
H A Doption_layout_algorithm.cpp55 auto child = layoutWrapper->GetOrCreateChildByIndex(0); in Measure()
81 auto rowChild = child->GetOrCreateChildByIndex(0); in Measure()
103 auto child = layoutWrapper->GetOrCreateChildByIndex(0); in Layout()
105 auto rowChild = child->GetOrCreateChildByIndex(0); in Layout()
191 auto child = layoutWrapper->GetOrCreateChildByIndex(0); in UpdateIconMargin()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_layout_algorithm.cpp90 auto swiperWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureSwiper()
126 auto leftButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureLeftButton()
167 auto rightButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureRightButton()
206 auto rowWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in MeasureText()
208 auto textWrapper = rowWrapper->GetOrCreateChildByIndex(isLeft ? 1 : 0); in MeasureText()
279 auto ButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(buttonIndex); in SuitAgeLayoutButton()
327 auto ButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(ButtonIndex); in CaluateButtonHeight()
338 auto swiperWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutSwiper()
355 auto leftButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutLeftButton()
391 auto rightButtonWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutRightButton()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/flex/old_cases/
H A Dflex_testtwo_ng.cpp291 auto firstChildWrapper = layoutWrapper->GetOrCreateChildByIndex(0);
297 auto secondChildWrapper = layoutWrapper->GetOrCreateChildByIndex(1);
303 auto thirdChildWrapper = layoutWrapper->GetOrCreateChildByIndex(2);
388 auto firstChildWrapper = layoutWrapper->GetOrCreateChildByIndex(0);
394 auto secondChildWrapper = layoutWrapper->GetOrCreateChildByIndex(1);
400 auto thirdChildWrapper = layoutWrapper->GetOrCreateChildByIndex(2);
484 auto firstChildWrapper = layoutWrapper->GetOrCreateChildByIndex(0);
496 auto thirdChildWrapper = layoutWrapper->GetOrCreateChildByIndex(2);
581 auto firstChildWrapper = layoutWrapper->GetOrCreateChildByIndex(0);
594 auto thirdChildWrapper = layoutWrapper->GetOrCreateChildByIndex(2);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/folder_stack/
H A Dfolder_stack_layout_algorithm.cpp88 auto hoverStackWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutHoverStack()
120 auto controlPartsStackWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in LayoutControlPartsStack()
160 auto hoverWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureHoverStack()
174 auto controlPartsWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureControlPartsStack()
343 auto controlPartsWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureByStack()
350 auto hoverStackWrapper = layoutWrapper->GetOrCreateChildByIndex(hoverIndex); in MeasureByStack()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_adaptive/
H A Dgrid_adaptive_layout_algorithm.cpp47 auto firstChildWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in Measure()
107 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Measure()
128 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in Layout()
153 auto wrapper = layoutWrapper->GetOrCreateChildByIndex(itemIdex); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/
H A Dbadge_layout_algorithm.cpp54 auto textWrapper = layoutWrapper->GetOrCreateChildByIndex(childrenSize - 1); in Measure()
158 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(childrenSize - 2); in Measure()
263 auto textWrapper = layoutWrapper->GetOrCreateChildByIndex(childrenSize - 1); in Layout()
327 auto childWrapper = layoutWrapper->GetOrCreateChildByIndex(childrenSize - 2); in Layout()
363 … layoutWrapper->GetOrCreateChildByIndex(childrenSize - 2)->GetGeometryNode()->GetMarginFrameSize(); in PerformMeasureSelf()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_picker_layout_algorithm.cpp33 auto contentWrapper = layoutWrapper->GetOrCreateChildByIndex(0); in CalendarPickerContentMeasure()
62 auto textWrapper = contentWrapper->GetOrCreateChildByIndex(i); in CalendarPickerContentMeasure()
124 auto flexWrapper = layoutWrapper->GetOrCreateChildByIndex(1); in SelfMeasure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_layout_algorithm.cpp164 auto itemWrapper = layoutWrapper->GetOrCreateChildByIndex( in MeasureToTarget()
295 auto footer = layoutWrapper->GetOrCreateChildByIndex(layoutInfo_->footerIndex_); in LayoutFooter()
345 … auto itemWrapper = layoutWrapper->GetOrCreateChildByIndex(GetChildIndexWithFooter(currentIndex)); in FillViewport()
426 auto itemWrapper = layoutWrapper->GetOrCreateChildByIndex(GetChildIndexWithFooter(i)); in ModifyCurrentOffsetWhenReachEnd()
442 return host->GetOrCreateChildByIndex(itemIdx, false, true); in PreloadItem()
456 auto item = host->GetOrCreateChildByIndex(GetChildIndexWithFooter(itemIdx)); in SyncPreloadItem()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_layout_algorithm.cpp193 auto limitValueTextWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureLimitValueText()
217 auto descriptionLayoutWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureDescription()
251 auto titleChildLayoutWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in MeasureTitleChild()
348 auto limitValueTextWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in GetLimitFontSize()
373 auto limitValueTextWrapper = layoutWrapper->GetOrCreateChildByIndex(index); in SetLimitFontSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/
H A Dtoast_layout_algorithm.cpp83 auto text = layoutWrapper->GetOrCreateChildByIndex(0); in Layout()
111 auto text = layoutWrapper->GetOrCreateChildByIndex(0); in Measure()

12345