Home
last modified time | relevance | path

Searched refs:parentConstraint (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/divider/
H A Ddivider_new_test_ng.cpp35 OHOS::Ace::NG::LayoutConstraintF parentConstraint; variable
36 parentConstraint.maxSize = SizeF(200, 200);
37 parentConstraint.percentReference = SizeF(300, 300);
40 frameNode->GetGeometryNode()->SetParentLayoutConstraint(parentConstraint);
57 OHOS::Ace::NG::LayoutConstraintF parentConstraint; variable
58 parentConstraint.maxSize = SizeF(200, 100);
59 parentConstraint.percentReference = SizeF(300, 300);
62 frameNode->GetGeometryNode()->SetParentLayoutConstraint(parentConstraint);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/
H A Dvideo_full_screen_pattern.cpp69 LayoutConstraintF parentConstraint; in RequestFullScreen() local
72 parentConstraint.maxSize.SetWidth(rootWidth); in RequestFullScreen()
73 parentConstraint.maxSize.SetHeight(rootHeight); in RequestFullScreen()
75 geometryNode->SetParentLayoutConstraint(parentConstraint); in RequestFullScreen()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_row/
H A Dgrid_row_layout_algorithm.cpp153 … LayoutConstraintF parentConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); in MeasureChildren() local
154 parentConstraint.UpdateSelfMarginSizeWithCheck(ideaSize); in MeasureChildren()
156 parentConstraint.maxSize.MinusHeight(totalHeight); in MeasureChildren()
157 child->Measure(parentConstraint); in MeasureChildren()
211 … LayoutConstraintF parentConstraint = layoutWrapper->GetLayoutProperty()->CreateChildConstraint(); in CalcCrossAxisAlignment() local
212 parentConstraint.selfIdealSize = OptionalSizeF(childSize.Width(), currentRowHeight); in CalcCrossAxisAlignment()
213 child.first->Measure(parentConstraint); in CalcCrossAxisAlignment()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.h207 void UpdateLayoutConstraint(const LayoutConstraintF& parentConstraint);
209 void UpdateParentLayoutConstraint(const LayoutConstraintF& parentConstraint) in UpdateParentLayoutConstraint() argument
211 parentLayoutConstraint_ = parentConstraint; in UpdateParentLayoutConstraint()
402 void CheckSelfIdealSize(const LayoutConstraintF& parentConstraint, const SizeF& originMax);
H A Dlayout_wrapper_node.cpp164 void LayoutWrapperNode::Measure(const std::optional<LayoutConstraintF>& parentConstraint) in Measure() argument
184 if (parentConstraint) { in Measure()
185 ApplyConstraint(*parentConstraint); in Measure()
H A Dlayout_property.cpp367 void LayoutProperty::UpdateLayoutConstraint(const LayoutConstraintF& parentConstraint) in UpdateLayoutConstraint() argument
369 layoutConstraint_ = parentConstraint; in UpdateLayoutConstraint()
390 parentConstraint.scaleProperty, parentConstraint.percentReference)); in UpdateLayoutConstraint()
394 parentConstraint.scaleProperty, parentConstraint.percentReference)); in UpdateLayoutConstraint()
398 …ConvertToOptionalSize(calcLayoutConstraint_->selfIdealSize.value(), parentConstraint.scaleProperty, in UpdateLayoutConstraint()
399 parentConstraint.percentReference)); in UpdateLayoutConstraint()
403 CheckSelfIdealSize(parentConstraint, originMax); in UpdateLayoutConstraint()
543 void LayoutProperty::CheckSelfIdealSize(const LayoutConstraintF& parentConstraint, const SizeF& ori… in CheckSelfIdealSize() argument
782 const auto& parentConstraint = host->GetGeometryNode()->GetParentLayoutConstraint(); in CreateMarginWithoutCache() local
784 if (parentConstraint) { in CreateMarginWithoutCache()
[all …]
H A Dlayout_wrapper_node.h85 void Measure(const std::optional<LayoutConstraintF>& parentConstraint) override;
H A Dlayout_wrapper.h137 virtual void Measure(const std::optional<LayoutConstraintF>& parentConstraint) = 0;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_measure_layout.cpp33 JSRef<JSObject> GenConstraint(const std::optional<NG::LayoutConstraintF>& parentConstraint) in GenConstraint() argument
35 auto minSize = parentConstraint->minSize; in GenConstraint()
36 auto maxSize = parentConstraint->maxSize; in GenConstraint()
45 JSRef<JSObject> GenConstraintNG(const NG::LayoutConstraintF& parentConstraint) in GenConstraintNG() argument
47 auto minSize = parentConstraint.minSize; in GenConstraintNG()
48 auto maxSize = parentConstraint.maxSize; in GenConstraintNG()
299 auto parentConstraint = layoutWrapper->GetGeometryNode()->GetParentLayoutConstraint(); in GetConstraint() local
300 return GenConstraint(parentConstraint); in GetConstraint()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/layout/
H A Dlayout_wrapper_test_ng.cpp128 …pdateParentConstraint(RefPtr<LayoutWrapperNode> layoutWrapper, LayoutConstraintF& parentConstraint) in UpdateParentConstraint() argument
130 parentConstraint.maxSize = CONTAINER_SIZE; in UpdateParentConstraint()
131 parentConstraint.percentReference = CONTAINER_SIZE; in UpdateParentConstraint()
132 parentConstraint.selfIdealSize.SetSize(SizeF(RK356_WIDTH, ROW_HEIGHT)); in UpdateParentConstraint()
134 layoutWrapper->GetLayoutProperty()->UpdateLayoutConstraint(parentConstraint); in UpdateParentConstraint()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_presentation_layout_algorithm.cpp127 auto parentConstraint = layoutWrapper->GetGeometryNode()->GetParentLayoutConstraint(); in Measure() local
128 layoutConstraint = parentConstraint.value(); in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_pattern.h350 void AddScrollMeasureInfo(const std::optional<LayoutConstraintF>& parentConstraint,
H A Dscroll_pattern.cpp1108 void ScrollPattern::AddScrollMeasureInfo(const std::optional<LayoutConstraintF>& parentConstraint, in AddScrollMeasureInfo() argument
1116 .parentConstraint_ = parentConstraint, in AddScrollMeasureInfo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dframe_node.h731 void Measure(const std::optional<LayoutConstraintF>& parentConstraint) override;
H A Dframe_node.cpp4017 void FrameNode::Measure(const std::optional<LayoutConstraintF>& parentConstraint) in Measure() argument
4058 } else if (parentConstraint) { in Measure()
4059 ApplyConstraint(*parentConstraint); in Measure()