/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | render_track.cpp | 167 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 D | render_remote_window.cpp | 31 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 D | render_stack.cpp | 39 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 D | render_tab_bar.cpp | 121 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 D | render_box_base.cpp | 80 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 D | render_svg.cpp | 187 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 D | render_svg_g.cpp | 44 SetLayoutSize(GetLayoutParam().GetMaxSize()); in PerformLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/ |
H A D | render_navigation_container.cpp | 30 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 D | render_shape_container.cpp | 75 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 D | render_proxy.cpp | 39 if (GetLayoutParam().GetMaxSize() < viewPort_) { in PerformLayout() 41 viewPort_ = GetLayoutParam().GetMaxSize(); in PerformLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components/flex/ |
H A D | render_flex.cpp | 184 ? 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 D | render_align.cpp | 44 if (!alignInnerLayout.GetMaxSize().IsInfinite()) { in PerformLayout() 45 SetLayoutSize(alignInnerLayout.GetMaxSize()); in PerformLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/ |
H A D | render_dialog_modal.cpp | 53 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 D | grid_layout_manager.cpp | 91 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 D | render_divider.cpp | 47 dividerLength_ = GetLayoutParam().GetMaxSize().Width(); in PerformLayout() 54 dividerLength_ = GetLayoutParam().GetMaxSize().Height(); in PerformLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/ |
H A D | render_tool_bar.cpp | 35 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 D | render_single_child_scroll.cpp | 89 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 D | rosen_render_text.cpp | 174 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 D | render_container_modal.cpp | 97 auto maxSize = GetLayoutParam().GetMaxSize(); in PerformLayout() 107 auto maxSize = GetLayoutParam().GetMaxSize(); in ContainerBoxLayout()
|
/foundation/arkui/ace_engine/frameworks/core/components/web/ |
H A D | rosen_render_web.cpp | 62 drawSize_ = Size(GetLayoutParam().GetMaxSize().Width(), GetLayoutParam().GetMaxSize().Height()); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components/toggle/ |
H A D | rosen_render_toggle.cpp | 60 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 D | render_split_container.cpp | 103 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 D | render_semi_modal.cpp | 113 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 D | render_list_item.cpp | 106 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 D | render_list_item_group.cpp | 31 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()
|