Home
last modified time | relevance | path

Searched refs:layoutParam (Results 1 – 25 of 77) sorted by relevance

1234

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dlayout_param.h106 LayoutParam Enforce(const LayoutParam& layoutParam) const in Enforce() argument
108 Size min = layoutParam.Constrain(minSize_); in Enforce()
109 Size max = layoutParam.Constrain(maxSize_); in Enforce()
113 bool operator==(const LayoutParam& layoutParam) const
115 return (minSize_ == layoutParam.minSize_) && (maxSize_ == layoutParam.maxSize_);
118 bool operator!=(const LayoutParam& layoutParam) const
120 return !operator==(layoutParam);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/
H A Dsvg_svg.cpp48 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
74 auto childRender = child->CreateRender(layoutParam, declaration, useBox); in CreateRender()
81 renderNode->Layout(layoutParam); in CreateRender()
87 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender()
88 boxComponent->SetWidth(layoutParam.GetMaxSize().Width()); in CreateRender()
89 boxComponent->SetHeight(layoutParam.GetMaxSize().Height()); in CreateRender()
95 renderBox->Layout(layoutParam); in CreateRender()
H A Dsvg_g.cpp48 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
67 auto childRender = child->CreateRender(layoutParam, declaration, useBox); in CreateRender()
72 renderNode->Layout(layoutParam); in CreateRender()
78 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender()
H A Dsvg_use.cpp44 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
69 auto refRenderNode = refSvgNode->CreateRender(layoutParam, declaration, useBox); in CreateRender()
81 renderNode->Layout(layoutParam); in CreateRender()
87 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender()
H A Dsvg_filter.cpp53 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
72 auto childRender = child->CreateRender(layoutParam, component_->GetDeclaration(), useBox); in CreateRender()
H A Dsvg_pattern.cpp53 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
72 auto childRender = child->CreateRender(layoutParam, component_->GetDeclaration(), useBox); in CreateRender()
H A Dsvg_defs.h42 …const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox = true) over…
56 auto childRender = child->CreateRender(layoutParam, nullptr, useBox);
H A Dsvg_mask.cpp53 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
73 auto childRender = child->CreateRender(layoutParam, component_->GetDeclaration(), useBox); in CreateRender()
H A Dsvg_node.h55 … const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox = true)
96 …RefPtr<BoxComponent> CreateBoxComponent(const LayoutParam& layoutParam, const std::string& clipPat…
H A Dsvg_circle.cpp43 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
66 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender()
H A Dsvg_path.cpp47 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument
70 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Drender_navigation_container.cpp27 auto layoutParam = GetLayoutParam(); in PerformLayout() local
30 double maxWidth = layoutParam.GetMaxSize().Width(); in PerformLayout()
31 double maxHeight = layoutParam.GetMaxSize().Height(); in PerformLayout()
33 layoutParam.SetMaxSize(Size(maxWidth, maxHeight - usedHeight)); in PerformLayout()
34 child->Layout(layoutParam); in PerformLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drender_svg.cpp184 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
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 Drender_svg_fe.cpp22 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
23 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
H A Drender_svg_path.cpp42 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
43 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
H A Drender_svg_polygon.cpp43 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
44 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
H A Drender_svg_text_path.cpp98 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
99 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
H A Drender_svg_circle.cpp109 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
110 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item.cpp97 const auto& layoutParam = GetLayoutParam(); in PerfLayoutSwiperMode() local
98 child_->Layout(layoutParam); in PerfLayoutSwiperMode()
108 swiperStart->Layout(LayoutParam(layoutParam.GetMaxSize(), Size())); in PerfLayoutSwiperMode()
112 Size maxSize = MakeValue<Size>(GetMainSize(layoutParam.GetMaxSize()), curOffset_); in PerfLayoutSwiperMode()
128 swiperEnd->Layout(LayoutParam(layoutParam.GetMaxSize(), Size())); in PerfLayoutSwiperMode()
144 SetLayoutSize(layoutParam.Constrain(MakeValue<Size>(maxMainSize, GetCrossSize(childSize)))); in PerfLayoutSwiperMode()
156 const auto& layoutParam = GetLayoutParam(); in PerformLayout() local
161 button_->Layout(LayoutParam(layoutParam.GetMaxSize(), Size())); in PerformLayout()
167 auto maxSize = layoutParam.GetMaxSize(); in PerformLayout()
168 auto minSize = layoutParam.GetMinSize(); in PerformLayout()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/wrap/
H A Drender_wrap.cpp85 LayoutParam layoutParam; in PerformLayout() local
86 layoutParam.SetMinSize(Size(0.0, 0.0)); in PerformLayout()
87 layoutParam.SetMaxSize(GetLeftSize(0.0, mainLengthLimit_, crossLengthLimit_)); in PerformLayout()
89 HandleDialogStretch(layoutParam); in PerformLayout()
110 item->Layout(layoutParam); in PerformLayout()
117 item->Layout(layoutParam); in PerformLayout()
121 item->Layout(layoutParam); in PerformLayout()
289 void RenderWrap::HandleDialogStretch(const LayoutParam& layoutParam) in HandleDialogStretch() argument
298 item->Layout(layoutParam); in HandleDialogStretch()
571 LayoutParam layoutParam; in PositionedItem() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/badge/
H A Drender_badge.cpp132 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
133 Size minSize = layoutParam.GetMinSize(); in PerformLayout()
134 Size maxSize = layoutParam.GetMaxSize(); in PerformLayout()
135 LayoutParam innerLayoutParam = layoutParam; in PerformLayout()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/custom/
H A Dcustom_test_ng.cpp1269 layoutParam.CreateChildConstraint();
1270 layoutParam.children_[0].CreateChildConstraint();
1271 layoutParam.children_[0].UpdateSize(SizeF(1.0, 1.0));
1272 ASSERT_NE(layoutParam.GetOrCreateChildByIndex(0), nullptr);
1274 EXPECT_EQ(layoutParam.GetChildByIndex(1), nullptr);
1275 EXPECT_EQ(layoutParam.children_[0].GetChild(), nullptr);
1309 ASSERT_NE(layoutParam.GetOrCreateChildByIndex(0), nullptr);
1332 layoutParam.Update(AceType::RawPtr(testWrapper));
1333 ASSERT_NE(layoutParam.GetOrCreateChildByIndex(0), nullptr);
1379 layoutParam.Update(AceType::RawPtr(testWrapper));
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/display/
H A Drender_display.cpp83 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
85 layoutParam.SetMinSize(Size()); in PerformLayout()
86 layoutParam.SetMaxSize(Size()); in PerformLayout()
94 child->Layout(layoutParam); in PerformLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/qrcode/
H A Drender_qrcode.cpp67 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
68 Size maxSize = layoutParam.GetMaxSize(); in PerformLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/clock/
H A Drosen_render_clock.cpp71 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local
72 layoutParam.SetMaxSize(drawSize_); in PerformLayout()
73 renderClockHand_->Layout(layoutParam); in PerformLayout()

1234