Home
last modified time | relevance | path

Searched refs:Constrain (Results 1 - 25 of 77) sorted by relevance

1234

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_layout_algorithm.cpp40 newSize = contentConstraint.Constrain(SizeF(portWidth, portHeight)); in MeasureContent()
57 newSize = contentConstraint.Constrain(SizeF(selfWidth, newHeight)); in MeasureContent()
61 newSize = contentConstraint.Constrain(SizeF(newWidth, selfHeight)); in MeasureContent()
63 return contentConstraint.Constrain(GetChildrenSize(layoutWrapper, newSize)); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components/divider/
H A Drender_divider.cpp48 auto constrainSize = GetLayoutParam().Constrain(Size(dividerLength_, constrainStrokeWidth_)); in PerformLayout()
55 auto constrainSize = GetLayoutParam().Constrain(Size(constrainStrokeWidth_, dividerLength_)); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dlayout_param.h90 Size Constrain(Size size) const in Constrain() function in OHOS::Ace::LayoutParam
108 Size min = layoutParam.Constrain(minSize_); in Enforce()
109 Size max = layoutParam.Constrain(maxSize_); in Enforce()
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Drender_shape_container.cpp49 Size newSize = GetLayoutParam().Constrain(Size(viewBoxWidth, viewBoxHeight)); in PerformLayout()
80 SetLayoutSize(GetLayoutParam().Constrain(Size(maxX, maxY))); in PerformLayout()
H A Drender_shape.cpp52 size = GetLayoutParam().Constrain(size); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/
H A Ddivider_layout_algorithm.cpp53 constrainSize.Constrain(contentConstraint.minSize, contentConstraint.maxSize); in MeasureContent()
65 constrainSize.Constrain(contentConstraint.minSize, contentConstraint.maxSize); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Drender_stepper_item.cpp43 auto size = GetLayoutParam().Constrain(Size(child->GetLayoutSize().Width(), child->GetLayoutSize().Height())); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/
H A Dtext_timer_layout_algorithm.cpp38 textTimerFrameSize.Constrain(minSize, maxSize); in Measure()
/foundation/arkui/ace_engine/frameworks/core/components/wrap/
H A Drender_wrap.h67 wrapSize = GetLayoutParam().Constrain(Size(mainLength, crossLength)); in SetWrapLayoutSize()
69 wrapSize = GetLayoutParam().Constrain(Size(crossLength, mainLength)); in SetWrapLayoutSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/
H A Dmodel_layout_algorithm.cpp62 auto size = contentConstraint.Constrain(componentSize); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/
H A Dtext_clock_layout_algorithm.cpp54 textClockFrameSize.Constrain(minSize, maxSize); in Measure()
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dbox_layout_algorithm.cpp91 frameSize.Constrain(minSize, maxSize, version10OrLarger); in PerformMeasureSelfWithChildList()
132 frameSize.Constrain(minSize, maxSize, version10OrLarger); in PerformMeasureSelfWithChildList()
/foundation/arkui/ace_engine/frameworks/core/components/progress/
H A Drender_progress.cpp87 return GetLayoutParam().Constrain(layoutSize); in Measure()
/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Drender_select.cpp60 selectSize_ = GetLayoutParam().Constrain(selectSize_); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/
H A Dcheckboxgroup_layout_algorithm.cpp51 size.Constrain(contentConstraint.minSize, contentConstraint.maxSize); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_layout_algorithm.cpp64 auto constrainSize = contentConstraint.Constrain(maxSize); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components/piece/
H A Drender_piece.cpp41 SetLayoutSize(GetLayoutParam().Constrain(child->GetLayoutSize())); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Drender_popup_list_item.cpp81 Size layoutSizeAfterConstrain = GetLayoutParam().Constrain(Size(width, height)); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/flex/
H A Drender_flex.cpp156 Rect clampRect = itemRect.Constrain(viewPortRect); in OnPaintFinish()
215 innerLayout.SetMaxSize(constraints.Constrain(innerLayout.GetMaxSize())); in MakeConstrainedLayoutParam()
216 innerLayout.SetMinSize(constraints.Constrain(innerLayout.GetMinSize())); in MakeConstrainedLayoutParam()
1078 return GetLayoutParam().Constrain(Size(mainSize, GetLayoutParam().GetMaxSize().Height())); in GetConstrainedSize()
1080 return GetLayoutParam().Constrain(Size(GetLayoutParam().GetMaxSize().Width(), mainSize)); in GetConstrainedSize()
1084 return GetLayoutParam().Constrain(Size(mainSize, crossSize_)); in GetConstrainedSize()
1086 return GetLayoutParam().Constrain(Size(crossSize_, mainSize)); in GetConstrainedSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/marquee/
H A Dmarquee_layout_algorithm.cpp58 frameSize.Constrain(SizeF { 0.0f, 0.0f }, SizeF { maxSize.Width(), childFrame.Height() }); in Measure()
/foundation/arkui/ace_engine/frameworks/core/components/text_clock/
H A Drender_text_clock.cpp105 SetLayoutSize(GetLayoutParam().Constrain(timeTextChild->GetLayoutSize())); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components/tool_bar/
H A Drender_tool_bar.cpp40 Size layoutSize = GetLayoutParam().Constrain(Size(toolBarWidth_, toolBarHeight_)); in PerformLayout()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/dot_indicator/
H A Ddot_indicator_layout_algorithm.cpp100 frameSize.Constrain(layoutConstraint->minSize, layoutConstraint->maxSize); in Measure()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rating/
H A Drating_layout_algorithm.cpp61 return contentConstraint.Constrain(componentSize); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/
H A Dimage_layout_algorithm.cpp110 return contentConstraint.Constrain(size); in MeasureContent()

Completed in 9 milliseconds

1234