Home
last modified time | relevance | path

Searched refs:childLayoutConstraint (Results 1 – 25 of 46) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/linear_layout/old_cases/
H A Dlinear_layout_test_ng.cpp160 const LayoutConstraintF& childLayoutConstraint) in CreateSmallChild() argument
184 const LayoutConstraintF& childLayoutConstraint) in CreateLargeChild() argument
228 childLayoutConstraint.maxSize = CONTAINER_SIZE;
277 childLayoutConstraint.maxSize = CONTAINER_SIZE;
336 childLayoutConstraint.maxSize = CONTAINER_SIZE;
389 childLayoutConstraint.maxSize = CONTAINER_SIZE;
442 childLayoutConstraint.maxSize = CONTAINER_SIZE;
497 childLayoutConstraint.maxSize = CONTAINER_SIZE;
553 childLayoutConstraint.maxSize = CONTAINER_SIZE;
606 childLayoutConstraint.maxSize = CONTAINER_SIZE;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_layout_algorithm.cpp238 MeasureVisibleItems(layoutWrapper, childLayoutConstraint); in MeasureScrollableMode()
260 MeasureVisibleItems(layoutWrapper, childLayoutConstraint); in MeasureScrollableMode()
319 childLayoutConstraint.maxSize.SetWidth(Infinity<float>()); in GetChildConstraint()
343 return childLayoutConstraint; in GetChildConstraint()
355 MeasureTargetIndex(layoutWrapper, childLayoutConstraint); in MeasureVisibleItems()
360 MeasureJumpIndex(layoutWrapper, childLayoutConstraint); in MeasureVisibleItems()
365 MeasureWithOffset(layoutWrapper, childLayoutConstraint); in MeasureVisibleItems()
371 MeasureWithOffset(layoutWrapper, childLayoutConstraint); in MeasureTargetIndex()
568 childWrapper->Measure(childLayoutConstraint); in MeasureItem()
626 childWrapper->Measure(childLayoutConstraint); in MeasureItemSecond()
[all …]
H A Dtab_bar_layout_algorithm.h96 … void MeasureVisibleItems(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint);
97 void MeasureTargetIndex(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint);
98 void MeasureJumpIndex(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint);
99 void MeasureWithOffset(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint);
100 void AdjustPosition(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint,
102 …void MeasureItem(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint, int32_t i…
103 …void MeasureItemSecond(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint, Siz…
104 void LayoutForward(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint,
106 void LayoutBackward(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint,
108 void MeasureMaxHeight(LayoutWrapper* layoutWrapper, LayoutConstraintF& childLayoutConstraint);
H A Dtabs_layout_algorithm.cpp52 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in Measure() local
53 childLayoutConstraint.parentIdealSize = OptionalSizeF(idealSize); in Measure()
60 tabBarWrapper->Measure(childLayoutConstraint); in Measure()
273 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in MeasureSwiper() local
274 childLayoutConstraint.parentIdealSize = OptionalSizeF(idealSize); in MeasureSwiper()
279 childLayoutConstraint.selfIdealSize.SetHeight( in MeasureSwiper()
282 childLayoutConstraint.selfIdealSize.SetWidth(idealSize.Width()); in MeasureSwiper()
288 childLayoutConstraint.selfIdealSize.SetWidth(idealSize.Width()); in MeasureSwiper()
294 childLayoutConstraint.selfIdealSize.SetWidth( in MeasureSwiper()
307 childLayoutConstraint.parentIdealSize = OptionalSizeF(parentIdealSize); in MeasureSwiper()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/tabs/
H A Dtabs_layout_algorithm_test_ng.cpp62 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
143 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
225 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
307 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
389 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
470 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
551 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
632 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
713 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
794 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
[all …]
H A Dtab_bar_layout_test_ng.cpp320 auto childLayoutConstraint = layoutWrapper.GetLayoutProperty()->CreateChildConstraint(); variable
321 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
348 tabbarLayoutAlgorithm->MeasureMaxHeight(&layoutWrapper, childLayoutConstraint);
367 auto childLayoutConstraint = layoutWrapper.GetLayoutProperty()->CreateChildConstraint(); variable
368 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
380 columnLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint);
566 auto childLayoutConstraint = layoutWrapper.GetLayoutProperty()->CreateChildConstraint(); variable
567 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
674 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
796 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/relative_container/old_cases/
H A Drelative_container_test_ng.cpp204 childLayoutConstraint.maxSize = CONTAINER_SIZE;
205 childLayoutConstraint.minSize = SizeF(0.0f, 0.0f);
284 childLayoutConstraint.maxSize = CONTAINER_SIZE;
407 childLayoutConstraint.maxSize = CONTAINER_SIZE;
679 childLayoutConstraint.maxSize = CONTAINER_SIZE;
768 childLayoutConstraint.maxSize = CONTAINER_SIZE;
846 childLayoutConstraint.maxSize = CONTAINER_SIZE;
941 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1048 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1244 childLayoutConstraint.maxSize = CONTAINER_SIZE;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/
H A Dsliding_panel_layout_algorithm.cpp55 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); in Measure() local
56 childLayoutConstraint.UpdateMaxSizeWithCheck(layoutConstraint->maxSize); in Measure()
57 auto maxSize = childLayoutConstraint.maxSize; in Measure()
74childLayoutConstraint.minSize = SizeF(width, static_cast<float>(idealSize.Height() - currentOffset… in Measure()
76childLayoutConstraint.maxSize = SizeF(width, static_cast<float>(idealSize.Height() - currentOffset… in Measure()
77 childLayoutConstraint.parentIdealSize = in Measure()
82 childLayoutConstraint.maxSize = SizeF(width, static_cast<float>(idealSize.Height())); in Measure()
83childLayoutConstraint.parentIdealSize = OptionalSizeF(width, static_cast<float>(idealSize.Height()… in Measure()
86 childLayoutConstraint.percentReference = childLayoutConstraint.maxSize; in Measure()
87 layoutConstraint->percentReference = childLayoutConstraint.maxSize; in Measure()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/flex/old_cases/
H A Dflex_test_ng.cpp492 childLayoutConstraint.maxSize = CONTAINER_SIZE;
493 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
591 childLayoutConstraint.maxSize = CONTAINER_SIZE;
779 childLayoutConstraint.maxSize = CONTAINER_SIZE;
879 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1068 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1151 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1236 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1321 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1405 childLayoutConstraint.maxSize = CONTAINER_SIZE;
[all …]
H A Dflex_testthree_ng.cpp152 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
292 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
435 childLayoutConstraint.maxSize = CONTAINER_SIZE;
436 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
550 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
645 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
729 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
1029 childLayoutConstraint.maxSize = CONTAINER_SIZE;
1030 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
1220 childLayoutConstraint.maxSize = CONTAINER_SIZE;
[all …]
H A Dflex_testtwo_ng.cpp137 childLayoutConstraint.maxSize = CONTAINER_SIZE; in CreateRTLWrapper()
138 childLayoutConstraint.minSize = SizeF(ZERO, ZERO); in CreateRTLWrapper()
192 childLayoutConstraint.maxSize = CONTAINER_SIZE; in CreateRTLReverseWrapper()
258 childLayoutConstraint.maxSize = CONTAINER_SIZE;
352 childLayoutConstraint.maxSize = CONTAINER_SIZE;
449 childLayoutConstraint.maxSize = CONTAINER_SIZE;
545 childLayoutConstraint.maxSize = CONTAINER_SIZE;
643 childLayoutConstraint.maxSize = CONTAINER_SIZE;
740 childLayoutConstraint.maxSize = CONTAINER_SIZE;
836 childLayoutConstraint.maxSize = CONTAINER_SIZE;
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/stack/old_cases/
H A Dstack_test_ng.cpp64 const LayoutConstraintF& childLayoutConstraint);
80 const LayoutConstraintF& childLayoutConstraint) in CreateSmallChild() argument
88 layoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint); in CreateSmallChild()
152 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); variable
153 childLayoutConstraint.maxSize = CONTAINER_SIZE;
154 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
155 auto firstChild = CreateSmallChild(childLayoutConstraint);
272 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); variable
273 childLayoutConstraint.maxSize = SizeF(HALF_PERCENT_WIDTH, STACK_HEIGHT);
274 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gauge/
H A Dgauge_layout_algorithm.cpp178 childLayoutConstraint.parentIdealSize = OptionalSizeF(parentSize); in MeasureLimitValueText()
189 childLayoutConstraint.selfIdealSize = { width, height }; in MeasureLimitValueText()
195 limitValueTextWrapper->Measure(childLayoutConstraint); in MeasureLimitValueText()
210 childLayoutConstraint.parentIdealSize = OptionalSizeF(parentSize); in MeasureDescription()
228 childLayoutConstraint.selfIdealSize = { width, height }; in MeasureDescription()
229 descriptionLayoutWrapper->Measure(childLayoutConstraint); in MeasureDescription()
244 childLayoutConstraint.parentIdealSize = OptionalSizeF(parentSize); in MeasureTitleChild()
247 childLayoutConstraint.minSize = { 0.0f, 0.0f }; in MeasureTitleChild()
248 childLayoutConstraint.maxSize = { diameter, diameter }; in MeasureTitleChild()
249 childLayoutConstraint.selfIdealSize = { diameter, diameter }; in MeasureTitleChild()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/blank/
H A Dblank_test_ng.cpp308 childLayoutConstraint.maxSize = CONTAINER_SIZE;
372 childLayoutConstraint.maxSize = CONTAINER_SIZE;
373 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
431 childLayoutConstraint.maxSize = CONTAINER_SIZE;
432 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
490 childLayoutConstraint.maxSize = CONTAINER_SIZE;
491 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
575 childLayoutConstraint.maxSize = CONTAINER_SIZE;
576 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
643 childLayoutConstraint.maxSize = CONTAINER_SIZE;
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/badge/
H A Dbadge_test_ng.cpp129 const LayoutConstraintF& childLayoutConstraint) in CreateChild() argument
140 textLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint); in CreateChild()
303 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
304 auto firstChild = CreateChild(childLayoutConstraint);
367 auto secondChild = CreateChild(childLayoutConstraint);
516 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
517 auto firstChild = CreateChild(childLayoutConstraint);
583 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
584 auto firstChild = CreateChild(childLayoutConstraint);
646 childLayoutConstraint.selfIdealSize = OptionalSizeF(FIRST_ITEM_SIZE);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_layout_algorithm.cpp57 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in Measure() local
58 childLayoutConstraint.parentIdealSize = OptionalSizeF(idealSize); in Measure()
68 MeasureLeftButton(layoutWrapper, childLayoutConstraint); in Measure()
69 MeasureRightButton(layoutWrapper, childLayoutConstraint); in Measure()
72 MeasureSwiper(layoutWrapper, childLayoutConstraint, rightButtonHeight, leftButtonHeight); in Measure()
74 MeasureSwiper(layoutWrapper, childLayoutConstraint, 0, 0); in Measure()
75 MeasureLeftButton(layoutWrapper, childLayoutConstraint); in Measure()
76 MeasureRightButton(layoutWrapper, childLayoutConstraint); in Measure()
257 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in Layout() local
258 childLayoutConstraint.parentIdealSize = OptionalSizeF(idealSize); in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_measure_layout.cpp465 auto childLayoutConstraint = ptr->CreateChildConstraint(); in JSMeasure() local
476 … auto length = ConvertToPx(NG::CalcLength(minWidth), childLayoutConstraint.scaleProperty, in JSMeasure()
477 childLayoutConstraint.percentReference.Width()); in JSMeasure()
479 childLayoutConstraint.minSize.SetWidth(length.value()); in JSMeasure()
490 childLayoutConstraint.percentReference.Width()); in JSMeasure()
492 childLayoutConstraint.maxSize.SetWidth(length.value()); in JSMeasure()
503 childLayoutConstraint.percentReference.Height()); in JSMeasure()
505 childLayoutConstraint.minSize.SetHeight(length.value()); in JSMeasure()
516 childLayoutConstraint.percentReference.Height()); in JSMeasure()
518 childLayoutConstraint.maxSize.SetHeight(length.value()); in JSMeasure()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
H A Dindexer_layout_algorithm.cpp80 auto childLayoutConstraint = indexerLayoutProperty->CreateChildConstraint(); in Measure() local
84 childLayoutConstraint.UpdateSelfMarginSizeWithCheck(OptionalSizeF(itemWidth_, itemHeight_)); in Measure()
85 childWrapper->Measure(childLayoutConstraint); in Measure()
177 auto childLayoutConstraint = indexerLayoutProperty->CreateChildConstraint(); in GetMaxItemWidth() local
186 childWrapper->Measure(childLayoutConstraint); in GetMaxItemWidth()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/linear_split/
H A Dlinear_split_test_ng.cpp410 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); variable
411 childLayoutConstraint.maxSize = CONTAINER_SIZE;
412 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
435 itemLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint);
604 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); variable
605 childLayoutConstraint.maxSize = CONTAINER_SIZE;
606 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
830 childLayoutConstraint.maxSize = CONTAINER_SIZE;
831 childLayoutConstraint.minSize = SizeF(ZERO, ZERO);
1010 childLayoutConstraint.maxSize = CONTAINER_SIZE;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_layout_algorithm.cpp57 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in Measure() local
58 UpdateChildConstraint(axis, idealSize, childLayoutConstraint); in Measure()
63 childWrapper->Measure(childLayoutConstraint); in Measure()
87 scrollPattern->AddScrollMeasureInfo(constraint, childLayoutConstraint, selfSize, childSize); in Measure()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/marquee/
H A Dmarquee_test_ng.cpp410 childLayoutConstraint.maxSize = CONTAINER_SIZE;
411 textLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint);
511 childLayoutConstraint.maxSize = CONTAINER_SIZE;
512 textLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint);
596 childLayoutConstraint.maxSize = CONTAINER_SIZE;
597 textLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint);
718 childLayoutConstraint.maxSize = CONTAINER_SIZE;
719 textLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint);
809 childLayoutConstraint.maxSize = CONTAINER_SIZE;
810 textLayoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(childLayoutConstraint);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_layout_algorithm.cpp92 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in Measure() local
93 UpdateChildConstraint(axis, idealSize, childLayoutConstraint); in Measure()
104 childWrapper->Measure(childLayoutConstraint); in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_layout_algorithm.cpp88 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in CancelImageMeasure() local
89 cancelImageWrapper->Measure(childLayoutConstraint); in CancelImageMeasure()
129 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in CancelButtonMeasure() local
130 cancelButtonWrapper->Measure(childLayoutConstraint); in CancelButtonMeasure()
180 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in TextFieldMeasure() local
181 childLayoutConstraint.selfIdealSize.SetWidth(textFieldWidth); in TextFieldMeasure()
185 textFieldWrapper->Measure(childLayoutConstraint); in TextFieldMeasure()
247 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in ImageMeasure() local
248 imageWrapper->Measure(childLayoutConstraint); in ImageMeasure()
342 auto childLayoutConstraint = layoutProperty->CreateChildConstraint(); in DividerMeasure() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/
H A Dwrap_layout_algorithm.cpp111 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); in Measure() local
116 childLayoutConstraint.UpdateMaxSizeWithCheck(realMaxSize); in Measure()
117 childLayoutConstraint.UpdateMinSizeWithCheck(SizeF(0.0f, 0.0f)); in Measure()
136 item->Measure(childLayoutConstraint); in Measure()
225 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); in StretchItemsInContent() local
232 childLayoutConstraint.selfIdealSize.SetHeight(content.crossLength); in StretchItemsInContent()
234 childLayoutConstraint.selfIdealSize.SetWidth(content.crossLength); in StretchItemsInContent()
236 item->Measure(childLayoutConstraint); in StretchItemsInContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_layout_algorithm.cpp78 auto childLayoutConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); in GetChildrenSize() local
80 child->Measure(childLayoutConstraint); in GetChildrenSize()

12