Home
last modified time | relevance | path

Searched refs:GetMaxSize (Results 1 - 25 of 122) sorted by relevance

12345

/foundation/arkui/ace_engine/frameworks/core/components/track/
H A Drender_track.cpp167 if ((NearEqual(GetLayoutParam().GetMaxSize().Width(), Size::INFINITE_SIZE) && direction_ == Axis::HORIZONTAL) || in Measure()
168 (NearEqual(GetLayoutParam().GetMaxSize().Height(), Size::INFINITE_SIZE) && direction_ == Axis::VERTICAL)) { in Measure()
171 std::min(defaultWidth, std::min(GetLayoutParam().GetMaxSize().Width(), defaultWidth)); in Measure()
178 layoutSize.SetHeight(GetLayoutParam().GetMaxSize().Height()); in Measure()
181 layoutSize.SetWidth(GetLayoutParam().GetMaxSize().Width()); in Measure()
193 if (GetLayoutParam().GetMaxSize().IsInfinite()) { in Measure()
196 std::min(diameter, std::min(GetLayoutParam().GetMaxSize().Width(), GetLayoutParam().GetMaxSize().Height())); in Measure()
199 double diameter = std::min(GetLayoutParam().GetMaxSize().Height(), GetLayoutParam().GetMaxSize() in Measure()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/remote_window/
H A Drender_remote_window.cpp31 drawSize_ = Size(GetLayoutParam().GetMaxSize().Width(), in PerformLayout()
32 (GetLayoutParam().GetMaxSize().Height() == Size::INFINITE_SIZE) ? in PerformLayout()
34 (GetLayoutParam().GetMaxSize().Height())); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/stack/
H A Drender_stack.cpp39 Size maxSize = GetLayoutParam().GetMaxSize(); in PerformLayout()
107 Size maxSize = GetLayoutParam().GetMaxSize(); in DetermineStackSize()
129 GetLayoutParam().GetMaxSize().Width()); in DetermineStackSize()
131 GetLayoutParam().GetMaxSize().Height()); in DetermineStackSize()
142 GetLayoutParam().GetMinSize().Width(), GetLayoutParam().GetMaxSize().Width()); in DetermineStackSize()
144 GetLayoutParam().GetMinSize().Height(), GetLayoutParam().GetMaxSize().Height()); in DetermineStackSize()
184 innerLayout.SetFixedSize(GetLayoutParam().GetMaxSize()); in MakeNonPositionedInnerLayoutParam()
187 innerLayout.SetMaxSize(GetLayoutParam().GetMaxSize()); in MakeNonPositionedInnerLayoutParam()
199 innerLayout.SetMaxSize(GetLayoutParam().GetMaxSize()); in MakeNonPositionedInnerLayoutParam()
209 double width = std::clamp(item->GetWidth(), innerLayout.GetMinSize().Width(), innerLayout.GetMaxSize() in MakePositionedInnerLayoutParam()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Drender_tab_bar.cpp121 if (tabBarWidth_ > 0 && !NearEqual(tabBarWidth_, GetLayoutParam().GetMaxSize().Width())) {
124 GetLayoutParam().GetMaxSize().Width(), actualWidth_ - std::abs(scrollableOffset_.GetX()))) {
125 scrollableOffset_.SetX(scrollableOffset_.GetX() + GetLayoutParam().GetMaxSize().Width() - tabBarWidth_);
129 tabBarWidth_ = GetLayoutParam().GetMaxSize().Width();
133 Size layoutSize = GetLayoutParam().Constrain(GetLayoutParam().GetMaxSize());
217 } else if (mode_ == TabBarMode::SCROLLABLE && actualWidth_ < GetLayoutParam().GetMaxSize().Width() && in LayoutChildren()
220 double halfWidth = GetLayoutParam().GetMaxSize().Width() / DOUBLE_FACTOR; in LayoutChildren()
229 scrollableOffset_ = Offset((actualWidth_ - GetLayoutParam().GetMaxSize().Width()) / DOUBLE_FACTOR, 0.0); in LayoutChildren()
231 scrollableOffset_ = Offset((GetLayoutParam().GetMaxSize().Width() - actualWidth_) / DOUBLE_FACTOR, 0.0); in LayoutChildren()
233 } else if (mode_ == TabBarMode::SCROLLABLE && actualHeight_ < GetLayoutParam().GetMaxSize() in LayoutChildren()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Drender_box_base.cpp80 parentLimit = GetLayoutParam().GetMaxSize().Height(); in ConvertMarginToPx()
85 parentLimit = GetLayoutParam().GetMaxSize().Width(); in ConvertMarginToPx()
117 double parentLimit = GetLayoutParam().GetMaxSize().Width(); in ConvertDimensionToPx()
119 parentLimit = GetLayoutParam().GetMaxSize().Height(); in ConvertDimensionToPx()
161 selfMaxWidth_ = constraints_.GetMaxSize().Width();
172 selfMaxWidth_ = std::clamp(selfMaxWidth_, constraints_.GetMinSize().Width(), constraints_.GetMaxSize().Width());
173 selfMinWidth_ = std::clamp(selfMinWidth_, constraints_.GetMinSize().Width(), constraints_.GetMaxSize().Width());
188 selfMaxHeight_ = constraints_.GetMaxSize().Height();
200 std::clamp(selfMaxHeight_, constraints_.GetMinSize().Height(), constraints_.GetMaxSize().Height());
202 std::clamp(selfMinHeight_, constraints_.GetMinSize().Height(), constraints_.GetMaxSize()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drender_svg.cpp187 if (layoutParam.GetMaxSize().IsWidthInfinite()) { in PerformLayout()
191 layoutSize.SetWidth(layoutParam.GetMaxSize().Width()); in PerformLayout()
197 layoutParam.GetMinSize().Width(), layoutParam.GetMaxSize().Width())); in PerformLayout()
201 if (layoutParam.GetMaxSize().IsHeightInfinite()) { in PerformLayout()
205 layoutSize.SetHeight(layoutParam.GetMaxSize().Height()); in PerformLayout()
211 layoutParam.GetMinSize().Height(), layoutParam.GetMaxSize().Height())); in PerformLayout()
H A Drender_svg_g.cpp44 SetLayoutSize(GetLayoutParam().GetMaxSize()); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Drender_navigation_container.cpp30 double maxWidth = layoutParam.GetMaxSize().Width(); in PerformLayout()
31 double maxHeight = layoutParam.GetMaxSize().Height(); in PerformLayout()
38 SetLayoutSize(GetLayoutParam().GetMaxSize()); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Drender_shape_container.cpp75 maxX = GetLayoutParam().GetMaxSize().Width(); in PerformLayout()
78 maxY = GetLayoutParam().GetMaxSize().Height(); in PerformLayout()
82 SetLayoutSize(GetLayoutParam().GetMaxSize()); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/proxy/
H A Drender_proxy.cpp39 if (GetLayoutParam().GetMaxSize() < viewPort_) { in PerformLayout()
41 viewPort_ = GetLayoutParam().GetMaxSize(); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/flex/
H A Drender_flex.cpp184 ? GetLayoutParam().GetMaxSize().Height() in MakeLayoutParamWithLimit()
185 : GetLayoutParam().GetMaxSize().Width(); in MakeLayoutParamWithLimit()
205 innerLayout.SetMaxSize(GetLayoutParam().GetMaxSize()); in MakeConstrainedLayoutParam()
212 innerLayout.SetMaxSize(GetLayoutParam().GetMaxSize()); in MakeConstrainedLayoutParam()
215 innerLayout.SetMaxSize(constraints.Constrain(innerLayout.GetMaxSize())); in MakeConstrainedLayoutParam()
224 Size maxLayoutParam = GetLayoutParam().GetMaxSize(); in GetStretchCrossLimit()
274 double maxMainSize = GetMainAxisValue(GetLayoutParam().GetMaxSize(), direction_); in PerformLayoutInWeightMode()
319 isExceed = isExceed || GetMainAxisValue(innerLayout.GetMaxSize(), direction_) > childFlexSize; in PerformLayoutInWeightMode()
342 Size layoutSize = GetConstrainedSize(GetMainAxisValue(GetLayoutParam().GetMaxSize(), direction_)); in PerformLayoutInWeightMode()
394 auto maxMainSize = GetMainAxisValue(GetLayoutParam().GetMaxSize(), direction in PerformLayoutInIndexMode()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/align/
H A Drender_align.cpp44 if (!alignInnerLayout.GetMaxSize().IsInfinite()) { in PerformLayout()
45 SetLayoutSize(alignInnerLayout.GetMaxSize()); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/
H A Drender_dialog_modal.cpp53 auto maxSize = GetLayoutParam().GetMaxSize(); in PerformLayout()
68 auto childY = GetLayoutParam().GetMaxSize().Height() - navigationBarPx - maxSize.Height(); in PerformLayout()
72 selfSize = Size(GetLayoutParam().GetMaxSize().Width(), in PerformLayout()
73 GetLayoutParam().GetMaxSize().Height() - statusBarPx - navigationBarPx); in PerformLayout()
75 selfSize = Size(GetLayoutParam().GetMaxSize().Width(), in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dgrid_layout_manager.cpp91 innerLayout.SetMaxSize(Size(gridLen_ * columnSpan, innerLayout.GetMaxSize().Height())); in MakeInnerLayoutParam()
94 innerLayout.SetMaxSize(Size(innerLayout.GetMaxSize().Width(), gridLen_ * columnSpan)); in MakeInnerLayoutParam()
98 innerLayout.SetMaxSize(Size(gridLen_ * columnSpan, innerLayout.GetMaxSize().Height())); in MakeInnerLayoutParam()
100 innerLayout.SetMaxSize(Size(innerLayout.GetMaxSize().Width(), gridLen_ * columnSpan)); in MakeInnerLayoutParam()
188 mainSize_ = ((gridHeight_ > 0.0) && (gridHeight_ < renderList_.GetLayoutParam().GetMaxSize().Height())) in CalculateAxisSize()
190 : renderList_.GetLayoutParam().GetMaxSize().Height(); in CalculateAxisSize()
191 crossSize_ = ((gridWidth_ > 0.0) && (gridWidth_ < renderList_.GetLayoutParam().GetMaxSize().Width())) in CalculateAxisSize()
193 : renderList_.GetLayoutParam().GetMaxSize().Width(); in CalculateAxisSize()
195 mainSize_ = ((gridWidth_ > 0.0) && (gridWidth_ < renderList_.GetLayoutParam().GetMaxSize().Width())) in CalculateAxisSize()
197 : renderList_.GetLayoutParam().GetMaxSize() in CalculateAxisSize()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/divider/
H A Drender_divider.cpp47 dividerLength_ = GetLayoutParam().GetMaxSize().Width(); in PerformLayout()
54 dividerLength_ = GetLayoutParam().GetMaxSize().Height(); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/
H A Drender_tool_bar.cpp35 toolBarWidth_ = GetLayoutParam().GetMaxSize().Width(); in PerformLayout()
66 columnInfo->GetParent()->BuildColumnWidth(innerLayout.GetMaxSize().Width()); in MakeInnerLayoutParam()
74 innerLayout.SetMaxSize(Size(std::max(toolBarMaxWidth, 0.0), std::max(GetLayoutParam().GetMaxSize().Height(), 0.0))); in MakeInnerLayoutParam()
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_single_child_scroll.cpp89 layout.SetMaxSize(Size(viewPort_.Width(), layout.GetMaxSize().Height())); in MakeInnerLayoutParam()
91 layout.SetMaxSize(Size(layout.GetMaxSize().Width(), viewPort_.Height())); in MakeInnerLayoutParam()
200 viewPort_ = GetLayoutParam().GetMaxSize() > viewPort_ ? viewPort_ : GetLayoutParam().GetMaxSize(); in PerformLayout()
242 constrainSize.SetWidth(GetLayoutParam().GetMaxSize().Width()); in PerformLayout()
245 constrainSize.SetHeight(GetLayoutParam().GetMaxSize().Height()); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Drosen_render_text.cpp174 lastLayoutMaxWidth_ = GetLayoutParam().GetMaxSize().Width(); in Measure()
176 lastLayoutMaxHeight_ = GetLayoutParam().GetMaxSize().Height(); in Measure()
193 paragraphNewWidth_ = GetLayoutParam().GetMaxSize().Width(); in Measure()
232 double paragraphMaxWidth = GetLayoutParam().GetMaxSize().Width(); in CheckMeasureFlag()
234 double paragraphMaxHeight = GetLayoutParam().GetMaxSize().Height(); in CheckMeasureFlag()
273 while (lineCount > 0 && GreatNotEqual(paragraph_->GetHeight(), GetLayoutParam().GetMaxSize().Height())) { in EffectAutoMaxLines()
399 height + std::fabs(NormalizeToPx(textStyle_.GetBaselineOffset())), GetLayoutParam().GetMaxSize().Height()); in GetSize()
404 heightFinal = GetLayoutParam().GetMaxSize().Height(); in GetSize()
564 ApplyIndents(GetLayoutParam().GetMaxSize().Width()); in UpdateParagraph()
597 GreatNotEqual(paragraph_->GetHeight(), GetLayoutParam().GetMaxSize() in DidExceedMaxLines()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/container_modal/
H A Drender_container_modal.cpp97 auto maxSize = GetLayoutParam().GetMaxSize(); in PerformLayout()
107 auto maxSize = GetLayoutParam().GetMaxSize(); in ContainerBoxLayout()
/foundation/arkui/ace_engine/frameworks/core/components/web/
H A Drosen_render_web.cpp62 drawSize_ = Size(GetLayoutParam().GetMaxSize().Width(), GetLayoutParam().GetMaxSize().Height()); in Paint()
/foundation/arkui/ace_engine/frameworks/core/components/toggle/
H A Drosen_render_toggle.cpp60 toggleSize_ = GetLayoutParam().GetMaxSize(); in Measure()
61 if (NearEqual(GetLayoutParam().GetMaxSize().Width(), Size::INFINITE_SIZE) || (!widthDefined_)) { in Measure()
/foundation/arkui/ace_engine/frameworks/core/components/split_container/
H A Drender_split_container.cpp103 auto maxSize = GetLayoutParam().GetMaxSize(); in UpdateDisplayNode()
152 Size maxSize = GetLayoutParam().GetMaxSize(); in PerformLayout()
169 double maxHeight = GetLayoutParam().GetMaxSize().Height(); in PerformLayout()
170 double maxWidth = GetLayoutParam().GetMaxSize().Width(); in PerformLayout()
178 Size maxSize = GetLayoutParam().GetMaxSize(); in LayoutChildren()
/foundation/arkui/ace_engine/frameworks/core/components/semi_modal/
H A Drender_semi_modal.cpp113 auto maxSize = GetLayoutParam().GetMaxSize(); in PerformLayout()
162 auto maxSize = GetLayoutParam().GetMaxSize(); in InnerLayout()
190 minBlankHeight_ = GetLayoutParam().GetMaxSize().Height() - contentHeight; in UpdateMinBlankHeight()
206 auto maxSize = GetLayoutParam().GetMaxSize(); in UpdateDefaultBlankHeight()
209 maxSize.Height() - std::min(contentHeight, GetLayoutParam().GetMaxSize().Height() * CONTENT_DEFAULT_RATIO); in UpdateDefaultBlankHeight()
279 auto maxSize = GetLayoutParam().GetMaxSize(); in FirstLayout()
547 std::min(contentHeight, GetLayoutParam().GetMaxSize().Height() * CONTENT_DEFAULT_RATIO) / 2.0; in HandleDragEnd()
666 auto dragRange = GetLayoutParam().GetMaxSize().Height(); in AnimateToFullWindow()
699 auto dragRange = GetLayoutParam().GetMaxSize().Height(); in AnimateTo()
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item.cpp106 swiperStart->Layout(LayoutParam(layoutParam.GetMaxSize(), Size())); in PerfLayoutSwiperMode()
110 Size maxSize = MakeValue<Size>(GetMainSize(layoutParam.GetMaxSize()), curOffset_); in PerfLayoutSwiperMode()
126 swiperEnd->Layout(LayoutParam(layoutParam.GetMaxSize(), Size())); in PerfLayoutSwiperMode()
130 Size maxSize = MakeValue<Size>(GetMainSize(layoutParam.GetMaxSize()), -curOffset_); in PerfLayoutSwiperMode()
159 button_->Layout(LayoutParam(layoutParam.GetMaxSize(), Size())); in PerformLayout()
165 auto maxSize = layoutParam.GetMaxSize(); in PerformLayout()
H A Drender_list_item_group.cpp31 auto maxCrossSize = GetLayoutParam().GetMaxSize().Width(); in MakeInnerLayout()
39 auto maxCrossSize = GetLayoutParam().GetMaxSize().Height(); in MakeInnerLayout()
318 double crossSize = GetCrossSize(GetLayoutParam().GetMaxSize()); in SetItemsPostion()
391 auto size = MakeValue<Size>(currMainSize, GetCrossSize(layoutParam.GetMaxSize())); in PerformLayout()
467 double crossSize = GetCrossSize(GetLayoutParam().GetMaxSize()); in SetChainOffset()
484 double crossSize = GetCrossSize(GetLayoutParam().GetMaxSize()); in SetChainOffset()

Completed in 12 milliseconds

12345