Home
last modified time | relevance | path

Searched refs:childSize (Results 1 - 25 of 103) sorted by relevance

12345

/foundation/arkui/ace_engine/frameworks/core/components/common/properties/test/unittest/alignment/
H A Dalignment_test.cpp57 * @tc.steps: step1. set parentSize, childSize and alignment in HWTEST_F()
60 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); in HWTEST_F() local
66 Offset resultOffset = Alignment::GetAlignPosition(parentSize, childSize, alignment); in HWTEST_F()
85 * @tc.steps: step1. set parentSize, childSize and alignment in HWTEST_F()
88 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); in HWTEST_F() local
94 Offset resultOffset = Alignment::GetAlignPosition(parentSize, childSize, alignment); in HWTEST_F()
113 * @tc.steps: step1. set parentSize, childSize and alignment in HWTEST_F()
116 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); in HWTEST_F() local
122 Offset resultOffset = Alignment::GetAlignPosition(parentSize, childSize, alignment); in HWTEST_F()
141 * @tc.steps: step1. set parentSize, childSize an in HWTEST_F()
144 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); HWTEST_F() local
172 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); HWTEST_F() local
200 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); HWTEST_F() local
228 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); HWTEST_F() local
256 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); HWTEST_F() local
284 Size childSize = Size(SMALL_LENGTH, MIDDLE_LENGTH); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dalignment.cpp43 * Note that parentSize should not be less than childSize,
47 * @param childSize Size of child you want to put in parent.
51 Offset Alignment::GetAlignPosition(const Size& parentSize, const Size& childSize, const Alignment& alignment) in GetAlignPosition() argument
54 if (GreatOrEqual(parentSize.Width(), childSize.Width())) { in GetAlignPosition()
55 offset.SetX((1.0 + alignment.GetHorizontal()) * (parentSize.Width() - childSize.Width()) / 2.0); in GetAlignPosition()
57 if (GreatOrEqual(parentSize.Height(), childSize.Height())) { in GetAlignPosition()
58 offset.SetY((1.0 + alignment.GetVertical()) * (parentSize.Height() - childSize.Height()) / 2.0); in GetAlignPosition()
64 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment) in GetAlignPosition()
67 if (GreatOrEqual(parentSize.Width(), childSize.Width())) { in GetAlignPosition()
68 offset.SetX((1.0 + alignment.GetHorizontal()) * (parentSize.Width() - childSize in GetAlignPosition()
63 GetAlignPosition( const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment) GetAlignPosition() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/
H A Doption_layout_algorithm.cpp57 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Measure() local
58 childSize.AddWidth(horInterval_ * 2.0f); in Measure()
59 idealSize.UpdateSizeWithCheck(childSize); in Measure()
98 SizeF childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Layout() local
99 horInterval = optionSize.Width() - childSize.Width(); in Layout()
109 SizeF childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Layout() local
110 horInterval = optionSize.Width() - childSize.Width() - horInterval_; in Layout()
150 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in MeasureRow() local
151 spaceWidth -= childSize.Width(); in MeasureRow()
152 rowWidth += childSize in MeasureRow()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_layout_algorithm.cpp33 void UpdateIdealSize(Axis axis, const SizeF& childSize, const OptionalSizeF& parentSize, OptionalSizeF& idealSize) in UpdateIdealSize() argument
41 if (childSize.Height()) { in UpdateIdealSize()
42 idealSize.SetHeight(childSize.Height()); in UpdateIdealSize()
53 if (childSize.Width()) { in UpdateIdealSize()
54 idealSize.SetWidth(childSize.Width()); in UpdateIdealSize()
94 auto childSize = childWrapper->GetGeometryNode()->GetMarginFrameSize(); in Measure() local
95 UpdateIdealSize(axis, childSize, parentSize, idealSize); in Measure()
120 auto childSize = childGeometryNode->GetMarginFrameSize(); in Layout() local
121 scrollableDistance_ = GetMainAxisSize(size, axis) - GetMainAxisSize(childSize, axis); in Layout()
125 scrollBarPattern->SetChildOffset(GetMainAxisSize(childSize, axi in Layout()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_algorithm.cpp542 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Layout() local
543 dialogChildSize_ = childSize; in Layout()
553 MultipleDialog(dialogProp, childSize, selfSize, subOverlayManager); in Layout()
557 topLeftPoint_ = ComputeChildPosition(childSize, dialogProp, selfSize); in Layout()
561 DimensionRect(Dimension(childSize.Width()), Dimension(childSize.Height()), DimensionOffset(topLeftPoint_)), in Layout()
567 SetSubWindowHotarea(dialogProp, childSize, selfSize, frameNode->GetId()); in Layout()
613 const RefPtr<DialogLayoutProperty>& dialogProp, SizeF childSize, SizeF selfSize, int32_t frameNodeId) in SetSubWindowHotarea()
622 rect = Rect(topLeftPoint_.GetX(), topLeftPoint_.GetY(), childSize.Width(), childSize in SetSubWindowHotarea()
612 SetSubWindowHotarea( const RefPtr<DialogLayoutProperty>& dialogProp, SizeF childSize, SizeF selfSize, int32_t frameNodeId) SetSubWindowHotarea() argument
640 IsDialogTouchingBoundary(OffsetF topLeftPoint, SizeF childSize, SizeF selfSize) IsDialogTouchingBoundary() argument
659 MultipleDialog(const RefPtr<DialogLayoutProperty>& dialogProp, const SizeF& childSize, const SizeF& selfSize, const RefPtr<OverlayManager> subOverlayManager) MultipleDialog() argument
689 ComputeChildPosition( const SizeF& childSize, const RefPtr<DialogLayoutProperty>& prop, const SizeF& selfSize) ComputeChildPosition() argument
757 SetAlignmentSwitch(SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint) SetAlignmentSwitch() argument
807 SetAlignmentSwitchLessThanAPITwelve(const SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint) SetAlignmentSwitchLessThanAPITwelve() argument
851 AdjustChildPosition( OffsetF& topLeftPoint, const OffsetF& dialogOffset, const SizeF& childSize, bool needAvoidKeyboard) AdjustChildPosition() argument
938 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); UpdateIsScrollHeightNegative() local
[all...]
H A Ddialog_layout_algorithm.h69 const SizeF& childSize, const RefPtr<DialogLayoutProperty>& prop, const SizeF& slefSize);
70 bool SetAlignmentSwitch(SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint);
71 bool SetAlignmentSwitchLessThanAPITwelve(const SizeF& maxSize, const SizeF& childSize, OffsetF& topLeftPoint);
74 bool IsDialogTouchingBoundary(OffsetF topLeftPoint, SizeF childSize, SizeF selfSize);
75 void MultipleDialog(const RefPtr<DialogLayoutProperty>& dialogProp, const SizeF& childSize, const SizeF& selfSize,
79 const RefPtr<DialogLayoutProperty>& dialogProp, SizeF childSize, SizeF selfSize, int32_t frameNodeId);
87 OffsetF& topLeftPoint, const OffsetF& dialogOffset, const SizeF& childSize, bool needAvoidKeyboard);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/
H A Dnavigation_content_layout_algorithm.cpp25 auto childSize = layoutWrapper->GetTotalChildCount(); in Measure() local
27 if (childSize == 0) { in Measure()
30 for (auto index = 0; index < childSize; index++) { in Measure()
58 SizeF childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Layout() local
59 auto translate = Alignment::GetAlignPosition(size, childSize, align) + paddingOffset; in Layout()
/foundation/arkui/ace_engine/frameworks/core/components/dialog_tween/
H A Drender_dialog_tween.cpp330 auto childSize = child->GetLayoutSize(); in PerformLayout() local
331 topLeftPoint_ = ComputeChildPosition(childSize); in PerformLayout()
333 UpdateTouchRegion(topLeftPoint_, maxSize, childSize); in PerformLayout()
375 Offset RenderDialogTween::ComputeChildPosition(const Size& childSize) const in ComputeChildPosition()
401 dialogOffset.SetX(offset_.GetX().Value() * childSize.Width()); in ComputeChildPosition()
406 dialogOffset.SetY(offset_.GetY().Value() * childSize.Height()); in ComputeChildPosition()
411 if (SetAlignmentSwitch(maxSize, childSize, topLeftPoint)) { in ComputeChildPosition()
416 topLeftPoint = Offset(maxSize.Width() - childSize.Width(), maxSize.Height() - childSize.Height()) / 2.0; in ComputeChildPosition()
423 topLeftPoint = Offset((maxSize.Width() - childSize in ComputeChildPosition()
433 SetAlignmentSwitch(const Size& maxSize, const Size& childSize, Offset& topLeftPoint) const SetAlignmentSwitch() argument
476 UpdateTouchRegion(const Offset& topLeftPoint, const Size& maxSize, const Size& childSize) UpdateTouchRegion() argument
[all...]
H A Drender_dialog_tween.h49 void UpdateTouchRegion(const Offset& topLeftPoint, const Size& maxSize, const Size& childSize);
65 Offset ComputeChildPosition(const Size& childSize) const;
67 bool SetAlignmentSwitch(const Size& maxSize, const Size& childSize, Offset& topLeftPoint) const;
/foundation/arkui/ace_engine/frameworks/core/components/bubble/
H A Drender_bubble.h74 Offset GetChildPosition(const Size& childSize);
75 Offset GetPositionWithPlacement(const Size& childSize, const Offset& topPosition, const Offset& bottomPosition,
77 Offset FitToScreen(const Offset& fitPosition, const Size& childSize);
78 ErrorPositionType GetErrorPositionType(const Offset& childOffset, const Size& childSize);
132 void GenerateChildPosition(const Size& childSize);
136 Offset& bottomPosition, const Size& childSize);
/foundation/arkui/ace_engine/frameworks/core/components/tip/
H A Drender_tip.cpp70 void RenderTip::AdaptChildPadding(const Size& childSize, const Size& selfSize) in AdaptChildPadding() argument
73 double widthChange = std::max(0.0, NormalizeToPx(TEXT_MIN_WIDTH) - childSize.Height()); in AdaptChildPadding()
83 double paddingTopBottom = (selfSize.Width() - NormalizeToPx(TIP_SPACING) - childSize.Width()) * HALF; in AdaptChildPadding()
87 double widthChange = std::max(0.0, NormalizeToPx(TEXT_MIN_WIDTH) - childSize.Width()); in AdaptChildPadding()
97 double paddingTopBottom = (selfSize.Height() - NormalizeToPx(TIP_SPACING) - childSize.Height()) * HALF; in AdaptChildPadding()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_layout_algorithm.cpp81 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in GetChildrenSize() local
102 if (maxWidth < childSize.Width() + offsetX) { in GetChildrenSize()
103 maxWidth = childSize.Width() + offsetX; in GetChildrenSize()
105 if (maxHeight < childSize.Height() + offsetY) { in GetChildrenSize()
106 maxHeight = childSize.Height() + offsetY; in GetChildrenSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_layout_algorithm.cpp49 auto childSize = SizeF(0.f, 0.f); in Measure() local
53 childSize = childWrapper->GetGeometryNode()->GetMarginFrameSize(); in Measure()
55 idealSize.SetWidth(childSize.Width()); in Measure()
58 idealSize.SetHeight(childSize.Height()); in Measure()
74 if (layoutWrapper->ConstraintChanged() || lastViewSize != selfSize || lastViewPortExtent != childSize) { in Measure()
75 scrollPattern->AddScrollMeasureInfo(constraint, childLayoutConstraint, selfSize, childSize); in Measure()
120 auto childSize = childGeometryNode->GetMarginFrameSize(); in Layout() local
122 scrollableDistance_ = GetMainAxisSize(childSize, axis) - GetMainAxisSize(viewPort_, axis) + contentEndOffset; in Layout()
130 viewPortExtent_ = childSize; in Layout()
134 currentOffset = OffsetF(std::min(size.Width() - childSize in Layout()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_layout_algorithm.cpp541 bool BubbleLayoutAlgorithm::GetIfNeedArrow(const RefPtr<BubbleLayoutProperty>& bubbleProp, const SizeF& childSize) in GetIfNeedArrow() argument
550 if (childSize.Height() >= twoRadiusPx + arrowWidth) { in GetIfNeedArrow()
555 if (childSize.Width() >= twoRadiusPx + arrowWidth) { in GetIfNeedArrow()
712 const SizeF& childSize, const RefPtr<BubbleLayoutProperty>& bubbleProp) in GetChildPositionNew()
812 OffsetF bottomPosition = OffsetF(targetOffset_.GetX() + (targetSize_.Width() - childSize.Width()) / 2.0, in GetChildPositionNew()
814 OffsetF topPosition = OffsetF(targetOffset_.GetX() + (targetSize_.Width() - childSize.Width()) / 2.0, in GetChildPositionNew()
815 targetOffset_.GetY() - childSize.Height() - targetSpace_.ConvertToPx() - arrowHeight_); in GetChildPositionNew()
816 OffsetF defaultPosition = OffsetF(targetOffset_.GetX() + (targetSize_.Width() - childSize.Width()) / 2.0, in GetChildPositionNew()
817 targetOffset_.GetY() + (targetSize_.Height() - childSize.Height()) / 2.0); in GetChildPositionNew()
856 childPosition = GetPositionWithPlacementNew(childSize, topPositio in GetChildPositionNew()
711 GetChildPositionNew( const SizeF& childSize, const RefPtr<BubbleLayoutProperty>& bubbleProp) GetChildPositionNew() argument
886 GetAdjustPosition(std::vector<Placement>& currentPlacementStates, size_t step, const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetAdjustPosition() argument
1033 GetPositionWithPlacementNew( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementNew() argument
1047 FitToScreenNew( const OffsetF& position, size_t step, size_t& i, const SizeF& childSize, bool didNeedArrow) FitToScreenNew() argument
1249 CheckPositionInPlacementRect( const Rect& rect, const OffsetF& position, const SizeF& childSize) CheckPositionInPlacementRect() argument
1261 CheckPosition(const OffsetF& position, const SizeF& childSize, size_t step, size_t& i) CheckPosition() argument
1352 GetPositionWithPlacementTop( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementTop() argument
1365 GetPositionWithPlacementTopLeft( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementTopLeft() argument
1380 GetPositionWithPlacementTopRight( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementTopRight() argument
1395 GetPositionWithPlacementBottom( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementBottom() argument
1408 GetPositionWithPlacementBottomLeft( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementBottomLeft() argument
1423 GetPositionWithPlacementBottomRight( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementBottomRight() argument
1438 GetPositionWithPlacementLeft( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementLeft() argument
1453 GetPositionWithPlacementLeftTop( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementLeftTop() argument
1469 GetPositionWithPlacementLeftBottom( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementLeftBottom() argument
1485 GetPositionWithPlacementRight( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementRight() argument
1500 GetPositionWithPlacementRightTop( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementRightTop() argument
1516 GetPositionWithPlacementRightBottom( const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition) GetPositionWithPlacementRightBottom() argument
2248 GetChildPosition( const SizeF& childSize, const RefPtr<BubbleLayoutProperty>& layoutProp, bool UseArrowOffset) GetChildPosition() argument
2317 InitArrowTopAndBottomPosition(OffsetF& topArrowPosition, OffsetF& bottomArrowPosition, OffsetF& topPosition, OffsetF& bottomPosition, const SizeF& childSize) InitArrowTopAndBottomPosition() argument
2342 GetPositionWithPlacement( OffsetF& childPosition, OffsetF& arrowPosition, const SizeF& childSize, Placement placement) GetPositionWithPlacement() argument
2429 GetErrorPositionType( const OffsetF& childOffset, const SizeF& childSize) GetErrorPositionType() argument
2446 FitToScreen(const OffsetF& fitPosition, const SizeF& childSize) FitToScreen() argument
[all...]
H A Dbubble_layout_algorithm.h161 bool CheckPosition(const OffsetF& position, const SizeF& childSize, size_t step, size_t& i);
176 bool CheckPositionInPlacementRect(const Rect& rect, const OffsetF& position, const SizeF& childSize);
178 OffsetF GetAdjustPosition(std::vector<Placement>& currentPlacementStates, size_t step, const SizeF& childSize,
185 const SizeF& childSize, const OffsetF& topPosition, const OffsetF& bottomPosition, OffsetF& arrowPosition);
186 OffsetF GetChildPositionNew(const SizeF& childSize, const RefPtr<BubbleLayoutProperty>& bubbleProp);
188 const OffsetF& position, size_t step, size_t& i, const SizeF& childSize, bool didNeedArrow = false);
189 bool GetIfNeedArrow(const RefPtr<BubbleLayoutProperty>& bubbleProp, const SizeF& childSize);
226 const SizeF& childSize, const RefPtr<BubbleLayoutProperty>& layoutProp, bool UseArrowOffset);
228 OffsetF& bottomPosition, const SizeF& childSize);
230 OffsetF& childPosition, OffsetF& arrowPosition, const SizeF& childSize, Placemen
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dbox_layout_algorithm.cpp115 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in PerformMeasureSelfWithChildList() local
116 if (maxWidth < childSize.Width()) { in PerformMeasureSelfWithChildList()
117 maxWidth = childSize.Width(); in PerformMeasureSelfWithChildList()
119 if (maxHeight < childSize.Height()) { in PerformMeasureSelfWithChildList()
120 maxHeight = childSize.Height(); in PerformMeasureSelfWithChildList()
166 SizeF childSize = child->GetGeometryNode()->GetMarginFrameSize(); in PerformLayout() local
167 auto translate = Alignment::GetAlignPosition(size, childSize, align) + paddingOffset; in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/stack/
H A Drender_stack.cpp225 Offset RenderStack::GetNonPositionedChildOffset(const Size& childSize) in GetNonPositionedChildOffset() argument
235 if (GreatOrEqual(size.Width(), childSize.Width())) { in GetNonPositionedChildOffset()
236 offset.SetX((1.0 + coefficients * align_.GetHorizontal()) * (size.Width() - childSize.Width()) / 2.0); in GetNonPositionedChildOffset()
238 if (GreatOrEqual(size.Height(), childSize.Height())) { in GetNonPositionedChildOffset()
239 offset.SetY((1.0 + align_.GetVertical()) * (size.Height() - childSize.Height()) / 2.0); in GetNonPositionedChildOffset()
243 if (GreatOrEqual(childSize.Width(), size.Width())) { in GetNonPositionedChildOffset()
244 offset.SetX(-(1.0 + coefficients * align_.GetHorizontal()) * (childSize.Width() - size.Width()) / 2.0); in GetNonPositionedChildOffset()
246 if (GreatOrEqual(childSize.Height(), size.Height())) { in GetNonPositionedChildOffset()
247 offset.SetY(-(1.0 + align_.GetVertical()) * (childSize.Height() - size.Height()) / 2.0); in GetNonPositionedChildOffset()
/foundation/arkui/ace_engine/frameworks/core/components/dialog/
H A Drender_dialog.cpp32 auto childSize = child->GetLayoutSize(); in PerformLayout() local
33 SetLayoutSize(childSize); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/counter/
H A Drender_counter.cpp36 auto childSize = child->GetLayoutSize(); in PerformLayout() local
37 SetLayoutSize(childSize); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_layout_algorithm.cpp104 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Layout() local
106 (size.CrossSize(axis_) - curOffset_) : (curOffset_ - childSize.CrossSize(axis_)); in Layout()
107 float mainOffset = (size.MainSize(axis_) - childSize.MainSize(axis_)) / 2; in Layout()
114 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in Layout() local
116 (-curOffset_ - childSize.CrossSize(axis_)) : (size.CrossSize(axis_) + curOffset_); in Layout()
117 float mainOffset = (size.MainSize(axis_) - childSize.MainSize(axis_)) / 2; in Layout()
/foundation/arkui/ace_engine/frameworks/base/log/
H A Ddump_log.cpp26 void DumpLog::Print(int32_t depth, const std::string& className, int32_t childSize) in Print() argument
38 data.append(" childSize:" + std::to_string(childSize)); in Print()
46 if (childSize == 0) { in Print()
88 void DumpLog::Append(int32_t depth, const std::string& className, int32_t childSize) in Append() argument
95 result_.append(" childSize:" + std::to_string(childSize)); in Append()
101 if (childSize == 0) { in Append()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_layout_algorithm.cpp75 auto childSize = item->GetGeometryNode()->GetMarginFrameSize(); in Measure() local
77 childSize.SetWidth(maxChildrenWidth); in Measure()
79 MinusPaddingToSize(margin, childSize); in Measure()
82 item->GetGeometryNode()->SetFrameSize(childSize); in Measure()
87 itemHeight = childSize.Height() + margin.Height(); in Measure()
89 itemHeight = childSize.Height(); in Measure()
204 auto childSize = child->GetGeometryNode()->GetMarginFrameSize(); in GetChildrenMaxWidth() local
205 width = std::max(width, childSize.Width()); in GetChildrenMaxWidth()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_list_item_group.cpp73 double childSize = -1.0; in ParseChange() local
74 if (!JSViewAbstract::ParseJsDouble(childrenSize->GetValueAt(j), childSize) || Negative(childSize)) { in ParseChange()
78 newChildrenSize.emplace_back(Dimension(childSize, DimensionUnit::VP).ConvertToPx()); in ParseChange()
96 double childSize = -1.0; in SyncChildrenSize() local
97 if (!JSViewAbstract::ParseJsDouble(childrenSizeJSArray->GetValueAt(i), childSize) || Negative(childSize)) { in SyncChildrenSize()
101 childrenSize->SyncChildrenSize(Dimension(childSize, DimensionUnit::VP).ConvertToPx()); in SyncChildrenSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stack/
H A Dstack_layout_algorithm.cpp70 const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment) in CalculateStackAlignment()
73 offset.SetX((1.0 + alignment.GetHorizontal()) * (parentSize.Width() - childSize.Width()) / 2.0); in CalculateStackAlignment()
74 offset.SetY((1.0 + alignment.GetVertical()) * (parentSize.Height() - childSize.Height()) / 2.0); in CalculateStackAlignment()
69 CalculateStackAlignment( const NG::SizeF& parentSize, const NG::SizeF& childSize, const Alignment& alignment) CalculateStackAlignment() argument
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item_group.cpp132 double childSize = GetMainSize(child->GetLayoutSize()); in RecycleStartCacheItems() local
133 rowSize = std::max(childSize, rowSize); in RecycleStartCacheItems()
163 double childSize = GetMainSize(child->GetLayoutSize()); in LayoutALine() local
164 rowSize = std::max(childSize, rowSize); in LayoutALine()
214 double childSize = GetMainSize(child->GetLayoutSize()); in RequestNewItemsAtEnd() local
215 rowSize = std::max(childSize, rowSize); in RequestNewItemsAtEnd()
254 double childSize = GetMainSize(child->GetLayoutSize()); in RequestNewItemsAtStart() local
255 rowSize = std::max(childSize, rowSize); in RequestNewItemsAtStart()
340 double childSize = GetMainSize(child->GetLayoutSize()); in SetItemsPostion() local
341 rowSize = std::max(childSize, rowSiz in SetItemsPostion()
[all...]

Completed in 15 milliseconds

12345