/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | layout_param.h | 106 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 D | svg_svg.cpp | 48 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 D | svg_g.cpp | 48 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 D | svg_use.cpp | 44 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 D | svg_filter.cpp | 53 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 D | svg_pattern.cpp | 53 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 D | svg_defs.h | 42 …const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox = true) over… 56 auto childRender = child->CreateRender(layoutParam, nullptr, useBox);
|
H A D | svg_mask.cpp | 53 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 D | svg_node.h | 55 … const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox = true) 96 …RefPtr<BoxComponent> CreateBoxComponent(const LayoutParam& layoutParam, const std::string& clipPat…
|
H A D | svg_circle.cpp | 43 const LayoutParam& layoutParam, const RefPtr<SvgBaseDeclaration>& parent, bool useBox) in CreateRender() argument 66 auto boxComponent = CreateBoxComponent(layoutParam, declaration->GetClipPathHref()); in CreateRender()
|
H A D | svg_path.cpp | 47 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 D | render_navigation_container.cpp | 27 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 D | render_svg.cpp | 184 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 D | render_svg_fe.cpp | 22 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local 23 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
|
H A D | render_svg_path.cpp | 42 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local 43 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
|
H A D | render_svg_polygon.cpp | 43 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local 44 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
|
H A D | render_svg_text_path.cpp | 98 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local 99 SetLayoutSize(layoutParam.GetMaxSize()); in PerformLayout()
|
H A D | render_svg_circle.cpp | 109 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 D | render_list_item.cpp | 97 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 D | render_wrap.cpp | 85 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 D | render_badge.cpp | 132 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 D | custom_test_ng.cpp | 1269 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 D | render_display.cpp | 83 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 D | render_qrcode.cpp | 67 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 D | rosen_render_clock.cpp | 71 LayoutParam layoutParam = GetLayoutParam(); in PerformLayout() local 72 layoutParam.SetMaxSize(drawSize_); in PerformLayout() 73 renderClockHand_->Layout(layoutParam); in PerformLayout()
|