/foundation/arkui/ace_engine/frameworks/core/components/tip/ |
H A D | rosen_render_tip.cpp | 94 double arrowOffset = NormalizeToPx(arrowOffset_); in PaintTopTip() local 98 path_.moveTo(globalArrowPosition.GetX() + arrowOffset, globalArrowPosition.GetY()); in PaintTopTip() 99 path_.quadTo(globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST) + arrowOffset, in PaintTopTip() 101 globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND) + arrowOffset, in PaintTopTip() 103 path_.quadTo(globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD) + arrowOffset, in PaintTopTip() 105 globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FOURTH) + arrowOffset, in PaintTopTip() 129 path_.lineTo(globalArrowPosition.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_FOURTH) + arrowOffset, in PaintTopTip() 131 path_.quadTo(globalArrowPosition.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD) + arrowOffset, in PaintTopTip() 133 globalArrowPosition.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND) + arrowOffset, in PaintTopTip() 135 path_.quadTo(globalArrowPosition.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST) + arrowOffset, in PaintTopTip() 152 double arrowOffset = NormalizeToPx(arrowOffset_); PaintTopTip() local 216 double arrowOffset = NormalizeToPx(arrowOffset_); PaintLeftTip() local 275 double arrowOffset = NormalizeToPx(arrowOffset_); PaintLeftTip() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/bubble/ |
H A D | rosen_render_bubble.cpp | 249 double arrowOffset = std::clamp(NormalizeToPx(arrowOffset_), in PaintTopBubbleInJs() local 256 path_.moveTo(arrowPosition_.GetX() + arrowOffset, arrowPosition_.GetY()); in PaintTopBubbleInJs() 257 path_.quadTo(arrowPosition_.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST) + arrowOffset, in PaintTopBubbleInJs() 259 arrowPosition_.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND) + arrowOffset, in PaintTopBubbleInJs() 261 path_.quadTo(arrowPosition_.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD) + arrowOffset, in PaintTopBubbleInJs() 263 arrowPosition_.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FOURTH) + arrowOffset, in PaintTopBubbleInJs() 287 path_.lineTo(arrowPosition_.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_FOURTH) + arrowOffset, in PaintTopBubbleInJs() 289 path_.quadTo(arrowPosition_.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD) + arrowOffset, in PaintTopBubbleInJs() 291 arrowPosition_.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND) + arrowOffset, in PaintTopBubbleInJs() 293 path_.quadTo(arrowPosition_.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST) + arrowOffset, in PaintTopBubbleInJs() 310 double arrowOffset = std::clamp(NormalizeToPx(arrowOffset_), PaintTopBubbleInJs() local 375 double arrowOffset = std::clamp(NormalizeToPx(arrowOffset_), PaintBottomBubbleInJs() local 436 double arrowOffset = std::clamp(NormalizeToPx(arrowOffset_), PaintBottomBubbleInJs() local 504 double arrowOffset = GetArrowOffset(Placement::TOP); PaintTopBubble() local 557 double arrowOffset = GetArrowOffset(Placement::TOP); PaintTopBubble() local 613 double arrowOffset = GetArrowOffset(Placement::BOTTOM); PaintBottomBubble() local 666 double arrowOffset = GetArrowOffset(Placement::BOTTOM); PaintBottomBubble() local [all...] |
H A D | render_bubble.cpp | 686 void RenderBubble::BuildTopLinePath(SkPath& path, double arrowOffset, double radius) in BuildTopLinePath() argument 692 path.lineTo(arrowPosition_.GetX() + arrowOffset - NormalizeToPx(BEZIER_WIDTH_HALF), childOffset_.GetY()); in BuildTopLinePath() 693 path.quadTo(arrowPosition_.GetX() + arrowOffset - NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD), in BuildTopLinePath() 695 arrowPosition_.GetX() + arrowOffset - NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND), in BuildTopLinePath() 697 path.quadTo(arrowPosition_.GetX() - NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST) + arrowOffset, in BuildTopLinePath() 699 arrowPosition_.GetX() + arrowOffset, arrowPosition_.GetY()); in BuildTopLinePath() 700 path.quadTo(arrowPosition_.GetX() + arrowOffset + NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST), in BuildTopLinePath() 702 arrowPosition_.GetX() + arrowOffset + NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND), in BuildTopLinePath() 704 path.quadTo(arrowPosition_.GetX() + arrowOffset + NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD), in BuildTopLinePath() 706 arrowPosition_.GetX() + arrowOffset in BuildTopLinePath() 715 BuildTopLinePath(RSPath& path, double arrowOffset, double radius) BuildTopLinePath() argument 746 BuildRightLinePath(SkPath& path, double arrowOffset, double radius) BuildRightLinePath() argument 776 BuildRightLinePath(RSPath& path, double arrowOffset, double radius) BuildRightLinePath() argument 808 BuildBottomLinePath(SkPath& path, double arrowOffset, double radius) BuildBottomLinePath() argument 838 BuildBottomLinePath(RSPath& path, double arrowOffset, double radius) BuildBottomLinePath() argument 870 BuildLeftLinePath(SkPath& path, double arrowOffset, double radius) BuildLeftLinePath() argument 899 BuildLeftLinePath(RSPath& path, double arrowOffset, double radius) BuildLeftLinePath() argument 935 double arrowOffset = GetArrowOffset(placement_); BuildCompletePath() local [all...] |
H A D | render_bubble.h | 83 void BuildTopLinePath(SkPath& path, double arrowOffset, double radius); 84 void BuildRightLinePath(SkPath& path, double arrowOffset, double radius); 85 void BuildBottomLinePath(SkPath& path, double arrowOffset, double radius); 86 void BuildLeftLinePath(SkPath& path, double arrowOffset, double radius); 90 void BuildTopLinePath(RSPath& path, double arrowOffset, double radius); 91 void BuildRightLinePath(RSPath& path, double arrowOffset, double radius); 92 void BuildBottomLinePath(RSPath& path, double arrowOffset, double radius); 93 void BuildLeftLinePath(RSPath& path, double arrowOffset, double radius);
|
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/src/ |
H A D | auto_fill_manager_util.cpp | 57 if (config.arrowOffset.has_value()) { in ConvertToPopupUIExtensionConfig() 58 AutoFill::PopupLength arrowOffset = config.arrowOffset.value(); in ConvertToPopupUIExtensionConfig() local 59 popupLength.unit = ConvertPopupUnit(arrowOffset.unit); in ConvertToPopupUIExtensionConfig() 60 popupLength.length = static_cast<double>(arrowOffset.length); in ConvertToPopupUIExtensionConfig() 61 popupConfig.arrowOffset = popupLength; in ConvertToPopupUIExtensionConfig()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_layout_algorithm.cpp | 1571 float arrowOffset = 0.0; in ClipBubbleWithPath() local 1573 arrowOffset = GetArrowOffset(arrowPlacement_); in ClipBubbleWithPath() 1585 path += BuildTopLinePath(arrowOffset, radiusPx, arrowBuildplacement); in ClipBubbleWithPath() 1589 path += BuildRightLinePath(arrowOffset, radiusPx, arrowBuildplacement); in ClipBubbleWithPath() 1593 path += BuildBottomLinePath(arrowOffset, radiusPx, arrowBuildplacement); in ClipBubbleWithPath() 1597 path += BuildLeftLinePath(arrowOffset, radiusPx, arrowBuildplacement); in ClipBubbleWithPath() 1607 double arrowOffset; in GetArrowOffset() local 1657 arrowOffset = (targetOffsetXOrY + (arrowOffset_.Value() * targetSizeWidthOrHeight)) - childOffsetsetXOrY + in GetArrowOffset() 1659 return arrowOffset; in GetArrowOffset() 1662 arrowOffset in GetArrowOffset() 1834 BuildTopLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement) BuildTopLinePath() argument 1885 BuildRightLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement) BuildRightLinePath() argument 1936 BuildBottomLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement) BuildBottomLinePath() argument 1987 BuildLeftLinePath(float arrowOffset, float radius, Placement& arrowBuildplacement) BuildLeftLinePath() argument 2039 ReplaceArrowTopLeft(const float arrowOffset, const float childOffset) ReplaceArrowTopLeft() argument 2062 ReplaceArrowTopRight(const float arrowOffset, const float childOffset) ReplaceArrowTopRight() argument 2086 ReplaceArrowRightTop(const float arrowOffset, const float childOffset) ReplaceArrowRightTop() argument 2109 ReplaceArrowRightBottom(const float arrowOffset, const float childOffset) ReplaceArrowRightBottom() argument 2132 ReplaceArrowBottomLeft(const float arrowOffset, const float childOffset) ReplaceArrowBottomLeft() argument 2155 ReplaceArrowBottomRight(const float arrowOffset, const float childOffset) ReplaceArrowBottomRight() argument 2178 ReplaceArrowLeftTop(const float arrowOffset, const float childOffset) ReplaceArrowLeftTop() argument 2201 ReplaceArrowLeftBottom(const float arrowOffset, const float childOffset) ReplaceArrowLeftBottom() argument [all...] |
H A D | bubble_paint_method.cpp | 437 float arrowOffset = GetArrowOffset(arrowPlacement_); in BuildCompletePath() local 442 BuildTopLinePath(path, arrowOffset, radiusPx); in BuildCompletePath() 444 BuildRightLinePath(path, arrowOffset, radiusPx); in BuildCompletePath() 446 BuildBottomLinePath(path, arrowOffset, radiusPx); in BuildCompletePath() 448 BuildLeftLinePath(path, arrowOffset, radiusPx); in BuildCompletePath() 471 void BubblePaintMethod::BuildTopLinePath(RSPath& path, float arrowOffset, float radius) in BuildTopLinePath() argument 485 arrowPosition_.GetX() + arrowOffset, static_cast<float>(leftOffset), static_cast<float>(rightOffset)); in BuildTopLinePath() 573 void BubblePaintMethod::BuildRightLinePath(RSPath& path, float arrowOffset, float radius) in BuildRightLinePath() argument 583 arrowPositionY + arrowOffset - BEZIER_WIDTH_HALF.ConvertToPx() + borderOffset); in BuildRightLinePath() 585 arrowPositionY + arrowOffset in BuildRightLinePath() 639 BuildBottomLinePath(RSPath& path, float arrowOffset, float radius) BuildBottomLinePath() argument 732 BuildLeftLinePath(RSPath& path, float arrowOffset, float radius) BuildLeftLinePath() argument [all...] |
H A D | bubble_layout_algorithm.h | 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); 208 std::string ReplaceArrowTopLeft(const float arrowOffset, const float childOffset); 209 std::string ReplaceArrowTopRight(const float arrowOffset, const float childOffset); 210 std::string ReplaceArrowRightTop(const float arrowOffset, const float childOffset); 211 std::string ReplaceArrowRightBottom(const float arrowOffset, const float childOffset); 212 std::string ReplaceArrowBottomLeft(const float arrowOffset, const float childOffset); 213 std::string ReplaceArrowBottomRight(const float arrowOffset, cons [all...] |
H A D | bubble_paint_method.h | 150 void BuildTopLinePath(RSPath& path, float arrowOffset, float radius); 151 void BuildRightLinePath(RSPath& path, float arrowOffset, float radius); 152 void BuildBottomLinePath(RSPath& path, float arrowOffset, float radius); 153 void BuildLeftLinePath(RSPath& path, float arrowOffset, float radius);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_wrapper_paint_method.cpp | 98 auto arrowOffset = sheetPattern->GetSheetArrowOffset().GetX(); in GetBorderDrawPath() local 104 path.LineTo(arrowOffset - ARROW_VERTICAL_P1_OFFSET_X.ConvertToPx() + targetOffset.GetX(), in GetBorderDrawPath() 106 path.LineTo(arrowOffset - ARROW_VERTICAL_P2_OFFSET_X.ConvertToPx() + targetOffset.GetX() - borderOffset, in GetBorderDrawPath() 110 arrowOffset + ARROW_VERTICAL_P4_OFFSET_X.ConvertToPx() + targetOffset.GetX() + borderOffset, in GetBorderDrawPath() 112 path.LineTo(arrowOffset + ARROW_VERTICAL_P5_OFFSET_X.ConvertToPx() + targetOffset.GetX(), in GetBorderDrawPath()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_layout_algorithm.cpp | 1333 OffsetF arrowOffset(0.0f, 0.0f); in ArrowLayout() 1350 arrowOffset.SetX(startPoint); in ArrowLayout() 1351 if (isLeftArrow && !NonNegative(arrowOffset.GetX() - padding.left.value_or(0.0f))) { in ArrowLayout() 1352 arrowOffset.SetX(padding.left.value_or(0.0f)); in ArrowLayout() 1355 arrowOffset.GetX() + arrowFrameSize.Width(), swiperFrameSize.Width() - padding.right.value_or(0.0f))) { in ArrowLayout() 1356 arrowOffset.SetX(swiperFrameSize.Width() - arrowFrameSize.Width() - padding.right.value_or(0.0f)); in ArrowLayout() 1358 arrowOffset.SetY(indicatorFrameRect.Top() + (indicatorFrameSize.Height() - arrowFrameSize.Height()) * 0.5f); in ArrowLayout() 1364 arrowOffset.SetX(startPoint); in ArrowLayout() 1365 arrowOffset.SetY((swiperFrameSize.Height() - padding.top.value_or(0.0f) - padding.bottom.value_or(0.0f) - in ArrowLayout() 1385 arrowOffset in ArrowLayout() [all...] |
/foundation/arkui/ace_engine/interfaces/inner_api/ace/ |
H A D | popup_ui_extension_config.h | 76 std::optional<PopupLength> arrowOffset;
member
|
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/include/ |
H A D | auto_fill_custom_config.h | 79 std::optional<PopupLength> arrowOffset; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | menu_property.h | 65 std::optional<Dimension> arrowOffset;
member
|
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | popup_param.h | 159 void SetArrowOffset(const std::optional<Dimension>& arrowOffset) in SetArrowOffset() argument 161 arrowOffset_ = arrowOffset; in SetArrowOffset()
|
/foundation/ability/ability_runtime/test/unittest/auto_fill_manager_util_test/ |
H A D | auto_fill_manager_util_test.cpp | 111 EXPECT_TRUE(popupConfig.arrowOffset.has_value()); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/ |
H A D | bubble_test_ng.cpp | 127 std::optional<Dimension> arrowOffset = std::nullopt; member 242 if (testProperty.arrowOffset.has_value()) { in CreateBubbleNode() 243 renderProperty->UpdateArrowOffset(testProperty.arrowOffset.value()); in CreateBubbleNode() 268 testProperty.arrowOffset = std::make_optional(BUBBLE_PAINT_PROPERTY_ARROW_OFFSET); in HWTEST_F() 2267 auto arrowOffset = bubbleLayoutAlgorithm->GetArrowOffset(placement); in HWTEST_F() local 2269 EXPECT_EQ(arrowOffset, -8); in HWTEST_F()
|
H A D | bubble_test_One_ng.cpp | 95 std::optional<Dimension> arrowOffset = std::nullopt;
member 208 if (testProperty.arrowOffset.has_value()) {
in CreateBubbleNode() 209 renderProperty->UpdateArrowOffset(testProperty.arrowOffset.value());
in CreateBubbleNode()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | ui_content_impl.cpp | 3471 if (config.arrowOffset.has_value()) { in CreateCustomPopupParam() 3472 PopupLength arrowOffset = config.arrowOffset.value(); in CreateCustomPopupParam() local 3473 DimensionUnit unit = static_cast<DimensionUnit>(arrowOffset.unit); in CreateCustomPopupParam() 3474 popupParam->SetArrowOffset(CalcDimension(arrowOffset.length, unit)); in CreateCustomPopupParam()
|
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/ |
H A D | dialog.js | 4139 arrowOffset: this.popover?.arrowOffset,
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | menu_view.cpp | 1177 paintProperty->UpdateArrowOffset(menuParam.arrowOffset.value_or(Dimension(0))); in UpdateMenuPaintProperty()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_abstract.cpp | 841 auto arrowOffset = popupObj->GetProperty("arrowOffset"); in ParsePopupCommonParam() local 843 if (JSViewAbstract::ParseJsDimensionVp(arrowOffset, offset)) { in ParsePopupCommonParam() 3320 auto arrowOffset = menuOptions->GetProperty("arrowOffset"); in ParseMenuArrowParam() local 3322 if (JSViewAbstract::ParseJsDimensionVp(arrowOffset, offset)) { in ParseMenuArrowParam() 3323 menuParam.arrowOffset = offset; in ParseMenuArrowParam()
|