Home
last modified time | relevance | path

Searched refs:placement (Results 1 - 25 of 46) sorted by relevance

12

/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
H A Dmenu_paint_test_ng.cpp165 * @tc.desc: Verify BuildTopLinePath when menu without arrow and placement is bottom.
175 Placement placement = Placement::BOTTOM; in HWTEST_F() local
176 std::string pathStr = layoutAlgorithm->BuildTopLinePath(arrowPosition, radiusPx, placement, didNeedArrow); in HWTEST_F()
183 * @tc.desc: Verify BuildTopLinePath when menu with arrow and placement is bottom.
193 Placement placement = Placement::BOTTOM; in HWTEST_F() local
194 std::string pathStr = layoutAlgorithm->BuildTopLinePath(arrowPosition, radiusPx, placement, didNeedArrow); in HWTEST_F()
201 * @tc.desc: Verify BuildTopLinePath when menu with arrow and placement is bottom_left.
211 Placement placement = Placement::BOTTOM_LEFT; in HWTEST_F() local
212 std::string pathStr = layoutAlgorithm->BuildTopLinePath(arrowPosition, radiusPx, placement, didNeedArrow); in HWTEST_F()
219 * @tc.desc: Verify BuildTopLinePath when menu with arrow and placement i
229 Placement placement = Placement::BOTTOM_RIGHT; HWTEST_F() local
247 Placement placement = Placement::TOP; HWTEST_F() local
265 Placement placement = Placement::LEFT; HWTEST_F() local
283 Placement placement = Placement::LEFT; HWTEST_F() local
301 Placement placement = Placement::LEFT_TOP; HWTEST_F() local
319 Placement placement = Placement::LEFT_BOTTOM; HWTEST_F() local
337 Placement placement = Placement::RIGHT; HWTEST_F() local
355 Placement placement = Placement::TOP; HWTEST_F() local
373 Placement placement = Placement::TOP; HWTEST_F() local
391 Placement placement = Placement::TOP_LEFT; HWTEST_F() local
409 Placement placement = Placement::TOP_RIGHT; HWTEST_F() local
427 Placement placement = Placement::BOTTOM; HWTEST_F() local
445 Placement placement = Placement::RIGHT; HWTEST_F() local
463 Placement placement = Placement::RIGHT; HWTEST_F() local
481 Placement placement = Placement::RIGHT_TOP; HWTEST_F() local
499 Placement placement = Placement::RIGHT_BOTTOM; HWTEST_F() local
517 Placement placement = Placement::LEFT; HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/src/
H A Dauto_fill_manager_util.cpp64 if (config.placement.has_value()) { in ConvertToPopupUIExtensionConfig()
65 popupConfig.placement = ConvertPopupPlacement(config.placement.value()); in ConvertToPopupUIExtensionConfig()
101 Ace::PopupPlacement AutoFillManagerUtil::ConvertPopupPlacement(const AutoFill::PopupPlacement &placement) in ConvertPopupPlacement() argument
104 switch (placement) { in ConvertPopupPlacement()
136 TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Popup placement invalid"); in ConvertPopupPlacement()
H A Dauto_fill_extension_callback.cpp184 autoFillCustomConfig.placement = in UpdateCustomPopupConfig()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dplacement.h39 static std::string ConvertPlacementToString(Placement placement) in ConvertPlacementToString() argument
42 switch (placement) { in ConvertPlacementToString()
H A Dpopup_param.h27 #include "core/components/common/properties/placement.h"
72 void SetPlacement(const Placement& placement) in SetPlacement() argument
74 placement_ = placement; in SetPlacement()
/foundation/arkui/ace_engine/frameworks/core/components/bubble/
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);
137 void UpdateArrowOffset(const RefPtr<BubbleComponent>& bubble, const Placement& placement);
H A Drender_bubble.cpp113 void RenderBubble::UpdateArrowOffset(const RefPtr<BubbleComponent>& bubble, const Placement& placement) in UpdateArrowOffset() argument
636 void RenderBubble::BuildCornerPath(SkPath& path, Placement placement, double radius) in BuildCornerPath() argument
638 switch (placement) { in BuildCornerPath()
660 void RenderBubble::BuildCornerPath(RSPath& path, Placement placement, double radius) in BuildCornerPath() argument
662 switch (placement) { in BuildCornerPath()
975 double RenderBubble::GetArrowOffset(const Placement& placement) in GetArrowOffset() argument
980 switch (placement) { in GetArrowOffset()
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/include/
H A Dauto_fill_manager_util.h33 static Ace::PopupPlacement ConvertPopupPlacement(const AutoFill::PopupPlacement &placement);
H A Dauto_fill_custom_config.h80 std::optional<PopupPlacement> placement; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_presentation_layout_algorithm.cpp203 auto placement = Placement::BOTTOM; in GetOffsetInAvoidanceRule() local
204 auto targetPlacement = AvoidanceRuleOfPlacement(placement, targetSize, targetOffset); in GetOffsetInAvoidanceRule()
218 TAG_LOGD(AceLogTag::ACE_SHEET, "Init PopupSheet placement: %{public}s", in AvoidanceRuleOfPlacement()
222 for (auto placement : directionVec) { in AvoidanceRuleOfPlacement()
223 auto& placementFunc = directionCheckFunc_[placement]; in AvoidanceRuleOfPlacement()
228 targetPlacement = placement; in AvoidanceRuleOfPlacement()
232 TAG_LOGD(AceLogTag::ACE_SHEET, "After step1, placement: %{public}s", in AvoidanceRuleOfPlacement()
236 for (auto placement : placementVec) { in AvoidanceRuleOfPlacement()
237 auto& placementFunc = placementCheckFunc_[placement]; in AvoidanceRuleOfPlacement()
242 targetPlacement = placement; in AvoidanceRuleOfPlacement()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_paint_method.h24 #include "core/components/common/properties/placement.h"
142 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);
H A Dbubble_layout_algorithm.h25 #include "core/components/common/properties/placement.h"
200 float GetArrowOffset(const Placement& placement);
216 std::string BuildCornerPath(const Placement& placement, float radius);
217 void UpdateArrowOffset(const std::optional<Dimension>& offset, const Placement& placement);
230 OffsetF& childPosition, OffsetF& arrowPosition, const SizeF& childSize, Placement placement);
H A Dbubble_paint_method.cpp296 void BubblePaintMethod::UpdateArrowOffset(const std::optional<Dimension>& offset, const Placement& placement) in UpdateArrowOffset() argument
305 switch (placement) { in UpdateArrowOffset()
545 void BubblePaintMethod::BuildCornerPath(RSPath& path, const Placement& placement, float radius) in BuildCornerPath() argument
549 switch (placement) { in BuildCornerPath()
765 float BubblePaintMethod::GetArrowOffset(const Placement& placement) in GetArrowOffset() argument
770 switch (placement) { in GetArrowOffset()
H A Dbubble_layout_algorithm.cpp32 #include "core/components/common/properties/placement.h"
314 auto placement = bubbleLayoutProperty->GetPlacement().value_or(Placement::BOTTOM); in Measure() local
319 if (setHorizontal.find(placement) != setHorizontal.end()) { in Measure()
327 if (setVertical.find(placement) != setVertical.end()) { in Measure()
1604 float BubbleLayoutAlgorithm::GetArrowOffset(const Placement& placement) in GetArrowOffset() argument
1618 switch (placement) { in GetArrowOffset()
1675 void BubbleLayoutAlgorithm::UpdateArrowOffset(const std::optional<Dimension>& offset, const Placement& placement) in UpdateArrowOffset() argument
1693 switch (placement) { in UpdateArrowOffset()
2224 std::string BubbleLayoutAlgorithm::BuildCornerPath(const Placement& placement, float radius) in BuildCornerPath() argument
2228 switch (placement) { in BuildCornerPath()
2342 GetPositionWithPlacement( OffsetF& childPosition, OffsetF& arrowPosition, const SizeF& childSize, Placement placement) GetPositionWithPlacement() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/declaration/button/
H A Dbutton_declaration.h28 std::string placement; member
102 return attr.placement; in GetPlacement()
332 void SetPlacement(const std::string& placement) in SetPlacement() argument
335 attribute.placement = placement; in SetPlacement()
H A Dbutton_declaration.cpp91 buttonAttr.placement = value; in SetSpecializedAttr()
/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dpopup_ui_extension_config.h77 std::optional<PopupPlacement> placement; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dmenu_property.h20 #include "core/components/common/properties/placement.h"
58 std::optional<Placement> placement; member
/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/
H A Dbubble_test_ng.cpp36 #include "core/components/common/properties/placement.h"
119 std::optional<Placement> placement = std::nullopt; member
213 if (testProperty.placement.has_value()) { in CreateBubbleNode()
214 layoutProperty->UpdatePlacement(testProperty.placement.value()); in CreateBubbleNode()
233 if (testProperty.placement.has_value()) { in CreateBubbleNode()
234 renderProperty->UpdatePlacement(testProperty.placement.value()); in CreateBubbleNode()
261 testProperty.placement = std::make_optional(BUBBLE_LAYOUT_PROPERTY_PLACEMENT); in HWTEST_F()
2080 for (auto placement: curPlaceStates) { in HWTEST_F()
2081 bubbleLayoutAlgorithm->placement_ = placement; in HWTEST_F()
2192 for (auto &placement in HWTEST_F()
[all...]
H A Dbubble_test_One_ng.cpp36 #include "core/components/common/properties/placement.h"
87 std::optional<Placement> placement = std::nullopt; member
179 if (testProperty.placement.has_value()) { in CreateBubbleNode()
180 layoutProperty->UpdatePlacement(testProperty.placement.value()); in CreateBubbleNode()
199 if (testProperty.placement.has_value()) { in CreateBubbleNode()
200 renderProperty->UpdatePlacement(testProperty.placement.value()); in CreateBubbleNode()
/foundation/arkui/ace_engine/frameworks/core/components/chart/
H A Dchart_component.h24 #include "core/components/common/properties/placement.h"
66 void SetPlacement(Placement placement) in SetPlacement() argument
68 placement_ = placement; in SetPlacement()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/wrapper/
H A Dmenu_wrapper_pattern.h25 #include "core/components/common/properties/placement.h"
203 void SetMenuPlacementAfterLayout(const Placement& placement) in SetMenuPlacementAfterLayout() argument
205 menuPlacement_ = placement; in SetMenuPlacementAfterLayout()
/foundation/ability/ability_runtime/test/unittest/auto_fill_manager_util_test/
H A Dauto_fill_manager_util_test.cpp112 EXPECT_TRUE(popupConfig.placement.has_value()); in HWTEST_F()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_container.cpp1309 // The offset needs to be calculated based on the placement
1310 if (isNative_ || !config.targetSize.has_value() || !config.placement.has_value()) {
1318 config.placement = AbilityRuntime::AutoFill::PopupPlacement::BOTTOM;
1337 AbilityRuntime::AutoFill::PopupPlacement placement = config.placement.value(); in GetPopupConfigWillUpdateY() local
1343 bool isBottom = placement == AbilityRuntime::AutoFill::PopupPlacement::BOTTOM || in GetPopupConfigWillUpdateY()
1344 placement == AbilityRuntime::AutoFill::PopupPlacement::BOTTOM_LEFT || in GetPopupConfigWillUpdateY()
1345 placement == AbilityRuntime::AutoFill::PopupPlacement::BOTTOM_RIGHT; in GetPopupConfigWillUpdateY()
1373 AbilityRuntime::AutoFill::PopupPlacement placement = config.placement in GetPopupConfigWillUpdateX() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_view.cpp1012 if (menuParam.placement.has_value()) { in Create()
1013 menuProperty->UpdateMenuPlacement(menuParam.placement.value_or(OHOS::Ace::Placement::BOTTOM)); in Create()
1142 if (menuParam.placement.has_value()) { in Create()
1143 menuProperty->UpdateMenuPlacement(menuParam.placement.value()); in Create()

Completed in 33 milliseconds

12