Home
last modified time | relevance | path

Searched refs:Placement (Results 1 - 25 of 59) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dplacement.h21 enum class Placement { class
39 static std::string ConvertPlacementToString(Placement placement) in ConvertPlacementToString()
43 case Placement::LEFT: in ConvertPlacementToString()
44 placementStr = "Placement.LEFT"; in ConvertPlacementToString()
46 case Placement::RIGHT: in ConvertPlacementToString()
47 placementStr = "Placement.RIGHT"; in ConvertPlacementToString()
49 case Placement::TOP: in ConvertPlacementToString()
50 placementStr = "Placement.TOP"; in ConvertPlacementToString()
52 case Placement::BOTTOM: in ConvertPlacementToString()
53 placementStr = "Placement in ConvertPlacementToString()
[all...]
H A Dpopup_param.h72 void SetPlacement(const Placement& placement) in SetPlacement()
94 Placement GetPlacement() const in GetPlacement()
532 Placement placement_ = Placement::BOTTOM;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_layout_algorithm.cpp233 placementFuncMap_[Placement::TOP] = &BubbleLayoutAlgorithm::GetPositionWithPlacementTop; in BubbleLayoutAlgorithm()
234 placementFuncMap_[Placement::TOP_LEFT] = &BubbleLayoutAlgorithm::GetPositionWithPlacementTopLeft; in BubbleLayoutAlgorithm()
235 placementFuncMap_[Placement::TOP_RIGHT] = &BubbleLayoutAlgorithm::GetPositionWithPlacementTopRight; in BubbleLayoutAlgorithm()
236 placementFuncMap_[Placement::BOTTOM] = &BubbleLayoutAlgorithm::GetPositionWithPlacementBottom; in BubbleLayoutAlgorithm()
237 placementFuncMap_[Placement::BOTTOM_LEFT] = &BubbleLayoutAlgorithm::GetPositionWithPlacementBottomLeft; in BubbleLayoutAlgorithm()
238 placementFuncMap_[Placement::BOTTOM_RIGHT] = &BubbleLayoutAlgorithm::GetPositionWithPlacementBottomRight; in BubbleLayoutAlgorithm()
239 placementFuncMap_[Placement::LEFT] = &BubbleLayoutAlgorithm::GetPositionWithPlacementLeft; in BubbleLayoutAlgorithm()
240 placementFuncMap_[Placement::LEFT_TOP] = &BubbleLayoutAlgorithm::GetPositionWithPlacementLeftTop; in BubbleLayoutAlgorithm()
241 placementFuncMap_[Placement::LEFT_BOTTOM] = &BubbleLayoutAlgorithm::GetPositionWithPlacementLeftBottom; in BubbleLayoutAlgorithm()
242 placementFuncMap_[Placement in BubbleLayoutAlgorithm()
[all...]
H A Dbubble_paint_method.cpp155 arrowPlacement_ = paintProperty->GetPlacement().value_or(Placement::BOTTOM); in PaintBubble()
212 arrowPlacement_ = paintProperty->GetPlacement().value_or(Placement::BOTTOM); in IsPaintDoubleBorder()
296 void BubblePaintMethod::UpdateArrowOffset(const std::optional<Dimension>& offset, const Placement& placement) in UpdateArrowOffset()
306 case Placement::LEFT: in UpdateArrowOffset()
307 case Placement::RIGHT: in UpdateArrowOffset()
308 case Placement::TOP: in UpdateArrowOffset()
309 case Placement::BOTTOM: in UpdateArrowOffset()
312 case Placement::TOP_LEFT: in UpdateArrowOffset()
313 case Placement::BOTTOM_LEFT: in UpdateArrowOffset()
314 case Placement in UpdateArrowOffset()
[all...]
H A Dbubble_layout_algorithm.h110 Placement GetArrowPlacement() const in GetArrowPlacement()
178 OffsetF GetAdjustPosition(std::vector<Placement>& currentPlacementStates, size_t step, const SizeF& childSize,
200 float GetArrowOffset(const Placement& placement);
203 void GetArrowBuildPlacement(Placement& arrowBuildplacement);
204 std::string BuildTopLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement);
205 std::string BuildRightLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement);
206 std::string BuildBottomLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement);
207 std::string BuildLeftLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement);
216 std::string BuildCornerPath(const Placement& placement, float radius);
217 void UpdateArrowOffset(const std::optional<Dimension>& offset, const Placement
[all...]
H A Dbubble_paint_method.h142 void UpdateArrowOffset(const std::optional<Dimension>& offset, const Placement& placement);
145 float GetArrowOffset(const Placement& placement);
149 void BuildCornerPath(RSPath& path, const Placement& placement, float radius);
176 Placement arrowPlacement_ = Placement::BOTTOM;
H A Dbubble_render_property.h66 ACE_DEFINE_PROPERTY_ITEM_WITHOUT_GROUP(Placement, Placement, PROPERTY_UPDATE_RENDER);
H A Dbubble_layout_property.h73 ACE_DEFINE_PROPERTY_ITEM_WITHOUT_GROUP(Placement, Placement, PROPERTY_UPDATE_MEASURE);
H A Dbubble_pattern.cpp651 case Placement::LEFT: in GetInvisibleOffset()
652 case Placement::LEFT_TOP: in GetInvisibleOffset()
653 case Placement::LEFT_BOTTOM: in GetInvisibleOffset()
656 case Placement::RIGHT: in GetInvisibleOffset()
657 case Placement::RIGHT_TOP: in GetInvisibleOffset()
658 case Placement::RIGHT_BOTTOM: in GetInvisibleOffset()
661 case Placement::TOP: in GetInvisibleOffset()
662 case Placement::TOP_LEFT: in GetInvisibleOffset()
663 case Placement::TOP_RIGHT: in GetInvisibleOffset()
666 case Placement in GetInvisibleOffset()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_paint_property.h74 std::string ConvertPlacementToString(const Placement& place) const in ConvertPlacementToString()
76 static const LinearEnumMapNode<Placement, std::string> placementTable[] = { in ConvertPlacementToString()
77 { Placement::LEFT, "Placement.Left" }, in ConvertPlacementToString()
78 { Placement::RIGHT, "Placement.Right" }, in ConvertPlacementToString()
79 { Placement::TOP, "Placement.Top" }, in ConvertPlacementToString()
80 { Placement::BOTTOM, "Placement in ConvertPlacementToString()
[all...]
H A Dmenu_layout_algorithm.cpp42 const std::map<Placement, std::vector<Placement>> PLACEMENT_STATES = {
43 { Placement::BOTTOM_LEFT,
45 Placement::BOTTOM_LEFT,
46 Placement::BOTTOM_RIGHT,
47 Placement::TOP_LEFT,
48 Placement::TOP_RIGHT,
49 Placement::RIGHT_TOP,
50 Placement::RIGHT_BOTTOM,
51 Placement
[all...]
H A Dmenu_layout_algorithm.h70 Placement GetPlacement() const in GetPlacement()
152 void PlacementRTL(LayoutWrapper* layoutWrapper, Placement& placement_);
189 OffsetF GetAdjustPosition(std::vector<Placement>& currentPlacementStates, size_t step, const SizeF& childSize,
251 Placement arrowBuildPlacement, bool didNeedArrow);
253 Placement arrowBuildPlacement, bool didNeedArrow);
255 Placement arrowBuildPlacement, bool didNeedArrow);
257 Placement arrowBuildPlacement, bool didNeedArrow);
266 Placement placement_ = Placement::BOTTOM_LEFT;
286 std::unordered_set<Placement> setHorizontal
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_presentation_layout_algorithm.h44 directionCheckFunc_[Placement::BOTTOM] = &SheetPresentationLayoutAlgorithm::CheckDirectionBottom; in SheetPresentationLayoutAlgorithm()
45 placementCheckFunc_[Placement::BOTTOM] = &SheetPresentationLayoutAlgorithm::CheckPlacementBottom; in SheetPresentationLayoutAlgorithm()
46 placementCheckFunc_[Placement::BOTTOM_LEFT] = &SheetPresentationLayoutAlgorithm::CheckPlacementBottomLeft; in SheetPresentationLayoutAlgorithm()
47 placementCheckFunc_[Placement::BOTTOM_RIGHT] = &SheetPresentationLayoutAlgorithm::CheckPlacementBottomRight; in SheetPresentationLayoutAlgorithm()
48 getOffsetFunc_[Placement::BOTTOM] = &SheetPresentationLayoutAlgorithm::GetOffsetWithBottom; in SheetPresentationLayoutAlgorithm()
49 getOffsetFunc_[Placement::BOTTOM_LEFT] = &SheetPresentationLayoutAlgorithm::GetOffsetWithBottomLeft; in SheetPresentationLayoutAlgorithm()
50 getOffsetFunc_[Placement::BOTTOM_RIGHT] = &SheetPresentationLayoutAlgorithm::GetOffsetWithBottomRight; in SheetPresentationLayoutAlgorithm()
93 Placement AvoidanceRuleOfPlacement(
94 const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset);
120 std::unordered_map<Placement, DirectionCheckFun
[all...]
H A Dsheet_presentation_layout_algorithm.cpp26 std::map<Placement, std::vector<Placement>> DIRECTIONS_STATES = {
27 { Placement::BOTTOM,
29 Placement::BOTTOM,
32 std::map<Placement, std::vector<Placement>> PLACEMENT_STATES = {
33 { Placement::BOTTOM,
35 Placement::BOTTOM,
36 Placement::BOTTOM_RIGHT,
37 Placement
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenu_paint_test_ng.cpp175 Placement placement = Placement::BOTTOM; in HWTEST_F()
193 Placement placement = Placement::BOTTOM; in HWTEST_F()
211 Placement placement = Placement::BOTTOM_LEFT; in HWTEST_F()
229 Placement placement = Placement::BOTTOM_RIGHT; in HWTEST_F()
247 Placement placement = Placement in HWTEST_F()
[all...]
H A Dmenu_layoutFst_test_ng.cpp334 Placement placements[] = { Placement::TOP, Placement::BOTTOM, Placement::RIGHT, Placement::LEFT, in HWTEST_F()
335 Placement::TOP_LEFT, Placement::BOTTOM_LEFT, Placement::LEFT_BOTTOM, Placement::LEFT_TOP, in HWTEST_F()
336 Placement in HWTEST_F()
[all...]
H A Dmenu_layoutScd_test_ng.cpp291 layoutProperty->UpdateMenuPlacement(Placement::BOTTOM_LEFT); in HWTEST_F()
292 menuAlgorithm->placement_ = Placement::BOTTOM_LEFT; in HWTEST_F()
311 layoutProperty->UpdateMenuPlacement(Placement::BOTTOM); in HWTEST_F()
312 menuAlgorithm->placement_ = Placement::BOTTOM; in HWTEST_F()
366 layoutProperty->UpdateMenuPlacement(Placement::BOTTOM_LEFT); in HWTEST_F()
367 menuAlgorithm->placement_ = Placement::BOTTOM_LEFT; in HWTEST_F()
431 menuAlgorithm->placement_ = Placement::TOP_LEFT; in HWTEST_F()
432 layoutProperty->UpdateMenuPlacement(Placement::TOP_LEFT); in HWTEST_F()
446 layoutProperty->UpdateMenuPlacement(Placement::TOP); in HWTEST_F()
447 menuAlgorithm->placement_ = Placement in HWTEST_F()
[all...]
H A Dmenu_origin_test_ng.cpp1170 * @tc.steps: step1. create menuWrapperNode with menuItems and set MenuPlacement to Placement::TOP in HWTEST_F()
1171 * @tc.expected: step1. Get menuPlacement is Placement::TOP in HWTEST_F()
1177 menuParam.placement = OHOS::Ace::Placement::TOP; in HWTEST_F()
1186 EXPECT_EQ(property->GetMenuPlacement().value(), OHOS::Ace::Placement::TOP); in HWTEST_F()
1198 * Placement::BOTTOM in HWTEST_F()
1199 * @tc.expected: step1. Get menuPlacement is Placement::BOTTOM in HWTEST_F()
1205 menuParam.placement = OHOS::Ace::Placement::BOTTOM; in HWTEST_F()
1215 EXPECT_EQ(property->GetMenuPlacement().value(), OHOS::Ace::Placement::BOTTOM); in HWTEST_F()
1241 Placement placements[] = { Placement in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/bubble/
H A Drender_bubble.cpp113 void RenderBubble::UpdateArrowOffset(const RefPtr<BubbleComponent>& bubble, const Placement& placement) in UpdateArrowOffset()
124 case Placement::LEFT: in UpdateArrowOffset()
125 case Placement::RIGHT: in UpdateArrowOffset()
126 case Placement::TOP: in UpdateArrowOffset()
127 case Placement::BOTTOM: in UpdateArrowOffset()
130 case Placement::TOP_LEFT: in UpdateArrowOffset()
131 case Placement::BOTTOM_LEFT: in UpdateArrowOffset()
132 case Placement::LEFT_TOP: in UpdateArrowOffset()
133 case Placement::RIGHT_TOP: in UpdateArrowOffset()
136 case Placement in UpdateArrowOffset()
[all...]
H A Drender_bubble.h57 double GetArrowOffset(const Placement& placement);
82 void BuildCornerPath(SkPath& path, Placement placement, double radius);
89 void BuildCornerPath(RSPath& path, Placement placement, double radius);
118 Placement placement_ = Placement::BOTTOM;
119 Placement arrowPlacement_ = Placement::TOP;
137 void UpdateArrowOffset(const RefPtr<BubbleComponent>& bubble, const Placement& placement);
/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/
H A Dbubble_test_One_ng.cpp78 const std::vector<Placement> BUBBLE_LAYOUT_PROPERTY_PLACEMENTS = { Placement::LEFT, Placement::RIGHT, Placement::TOP,
79 Placement::BOTTOM, Placement::TOP_LEFT, Placement::TOP_RIGHT, Placement::BOTTOM_LEFT, Placement::BOTTOM_RIGHT,
80 Placement
[all...]
H A Dbubble_test_ng.cpp97 constexpr Placement BUBBLE_LAYOUT_PROPERTY_PLACEMENT = Placement::LEFT;
108 const std::vector<Placement> BUBBLE_LAYOUT_PROPERTY_PLACEMENTS = { Placement::LEFT, Placement::RIGHT, Placement::TOP,
109 Placement::BOTTOM, Placement::TOP_LEFT, Placement::TOP_RIGHT, Placement
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_popup.cpp84 static const LinearMapNode<Placement> placeMap[] = { in SetSpecializedAttr()
85 { "bottom", Placement::BOTTOM }, in SetSpecializedAttr()
86 { "bottomLeft", Placement::BOTTOM_LEFT }, in SetSpecializedAttr()
87 { "bottomRight", Placement::BOTTOM_RIGHT }, in SetSpecializedAttr()
88 { "left", Placement::LEFT }, in SetSpecializedAttr()
89 { "right", Placement::RIGHT }, in SetSpecializedAttr()
90 { "top", Placement::TOP }, in SetSpecializedAttr()
91 { "topLeft", Placement::TOP_LEFT }, in SetSpecializedAttr()
92 { "topRight", Placement::TOP_RIGHT }, in SetSpecializedAttr()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsEnumStyle.js1104 var Placement; variable
1105 (function (Placement) {
1106 Placement[Placement["Left"] = 0] = "Left";
1107 Placement[Placement["Right"] = 1] = "Right";
1108 Placement[Placement["Top"] = 2] = "Top";
1109 Placement[Placement["Botto
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/chart/
H A Dchart_component.h66 void SetPlacement(Placement placement) in SetPlacement()
71 Placement GetPlacement() const in GetPlacement()
98 Placement placement_ = Placement::BOTTOM;

Completed in 32 milliseconds

123