Home
last modified time | relevance | path

Searched refs:RoundRect (Results 1 - 25 of 122) sorted by relevance

12345

/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Dround_rect.h28 class DRAWING_API RoundRect { class
38 inline RoundRect() noexcept;
39 inline ~RoundRect() {} in ~RoundRect()
41 inline RoundRect(const RoundRect& roundRect) noexcept;
42 inline RoundRect(const Rect& r, scalar xRad, scalar yRad) noexcept;
43 inline RoundRect(const Rect& r, const std::vector<Point>& radiusXY) noexcept;
52 * @brief Translates RoundRect by (dx, dy).
79 inline RoundRect::RoundRect() noexcep
81 inline RoundRect::RoundRect(const RoundRect& roundRect) noexcept : RoundRect() RoundRect() function
90 inline RoundRect::RoundRect(const Rect& r, scalar xRad, scalar yRad) noexcept : RoundRect() RoundRect() function
100 inline RoundRect::RoundRect(const Rect& r, const std::vector<Point>& radiusXY) noexcept : RoundRect() RoundRect() function
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/
H A Dround_rect_test.cpp50 // The best way to create RoundRect. in HWTEST_F()
51 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(); in HWTEST_F()
64 // The best way to create RoundRect. in HWTEST_F()
65 const RoundRect roundRect1; in HWTEST_F()
66 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(roundRect1); in HWTEST_F()
79 // The best way to create RoundRect. in HWTEST_F()
81 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(rec in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dfocus_state_modifier.h64 void SetRoundRect(const RoundRect& rect, float borderWidth) in SetRoundRect()
70 roundRect_.SetCornerRadius(rosen::RoundRect::CornerPos::TOP_LEFT_POS, in SetRoundRect()
71 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).x, in SetRoundRect()
72 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).y); in SetRoundRect()
73 roundRect_.SetCornerRadius(rosen::RoundRect::CornerPos::TOP_RIGHT_POS, in SetRoundRect()
74 rect.GetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS).x, in SetRoundRect()
75 rect.GetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS).y); in SetRoundRect()
76 roundRect_.SetCornerRadius(rosen::RoundRect::CornerPos::BOTTOM_LEFT_POS, in SetRoundRect()
77 rect.GetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS).x, in SetRoundRect()
78 rect.GetCornerRadius(RoundRect in SetRoundRect()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/
H A Ddrawing_round_rect.cpp31 static RoundRect* CastToRoundRect(OH_Drawing_RoundRect* cRoundRect) in CastToRoundRect()
33 return reinterpret_cast<RoundRect*>(cRoundRect); in CastToRoundRect()
42 return (OH_Drawing_RoundRect*)new RoundRect(CastToRect(*cRect), xRad, yRad); in OH_Drawing_RoundRectCreate()
45 static RoundRect::CornerPos CCornerPosCastToCornerPos(OH_Drawing_CornerPos pos) in CCornerPosCastToCornerPos()
47 RoundRect::CornerPos roundPos = RoundRect::CornerPos::TOP_LEFT_POS; in CCornerPosCastToCornerPos()
50 roundPos = RoundRect::CornerPos::TOP_LEFT_POS; in CCornerPosCastToCornerPos()
53 roundPos = RoundRect::CornerPos::TOP_RIGHT_POS; in CCornerPosCastToCornerPos()
56 roundPos = RoundRect::CornerPos::BOTTOM_RIGHT_POS; in CCornerPosCastToCornerPos()
59 roundPos = RoundRect in CCornerPosCastToCornerPos()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/roundrect_fuzzer/
H A Droundrect_fuzzer.cpp44 RoundRect roundRect; in RoundRectFuzzTest000()
50 roundRect.AdjustRadiiX(PATH_DOUBLE, PATH_DOUBLE, static_cast<RoundRect::CornerPos>(cornerPosA % PATH_FIVE), in RoundRectFuzzTest000()
51 static_cast<RoundRect::CornerPos>(cornerPosA % PATH_FIVE)); in RoundRectFuzzTest000()
52 roundRect.AdjustRadiiY(PATH_DOUBLE, PATH_DOUBLE, static_cast<RoundRect::CornerPos>(cornerPosA % PATH_FIVE), in RoundRectFuzzTest000()
53 static_cast<RoundRect::CornerPos>(cornerPosA % PATH_FIVE)); in RoundRectFuzzTest000()
56 roundRect.SetCornerRadius(static_cast<RoundRect::CornerPos>(cornerPosA % PATH_FIVE), dx, dy); in RoundRectFuzzTest000()
57 roundRect.GetCornerRadius(static_cast<RoundRect::CornerPos>(cornerPosA % PATH_FIVE)); in RoundRectFuzzTest000()
78 RoundRect roundRect = RoundRect(r, xRad, yRad); in RoundRectFuzzTest001()
79 RoundRect roundRect in RoundRectFuzzTest001()
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Drect_t.h511 class RoundRect { class
520 inline RoundRect() noexcept;
521 inline ~RoundRect() = default;
523 inline RoundRect(const RoundRect& roundRect) noexcept;
524 inline RoundRect(const RectF& rect, float xRad, float yRad) noexcept;
525 inline RoundRect(const RectF& rect, const RadiusF& radius) noexcept;
542 inline RoundRect::RoundRect() noexcept : radius_(EdgeF(0, 0), EdgeF(0, 0), EdgeF(0, 0), EdgeF(0, 0)) {}
544 inline RoundRect function
550 inline RoundRect::RoundRect(const RectF& r, float xRad, float yRad) noexcept : RoundRect() RoundRect() function
558 inline RoundRect::RoundRect(const RectF& r, const RadiusF& rad) noexcept : RoundRect() RoundRect() function
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_border.h50 Drawing::RoundRect rrect;
51 Drawing::RoundRect innerRRect;
116 Drawing::Point GetTLIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) const;
117 Drawing::Point GetTRIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) const;
118 Drawing::Point GetBLIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) const;
119 Drawing::Point GetBRIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) const;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/
H A Dround_rect.cpp58 void RoundRect::AdjustRadiiX(double limit, double scale, CornerPos cornerPosA, CornerPos cornerPosB) in AdjustRadiiX()
69 void RoundRect::AdjustRadiiY(double limit, double scale, CornerPos cornerPosA, CornerPos cornerPosB) in AdjustRadiiY()
80 bool RoundRect::ClampToZero() in ClampToZero()
96 bool RoundRect::ScaleRadii() in ScaleRadii()
121 void RoundRect::Dump(std::string& out) const in Dump()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/roundRect_napi/
H A Djs_roundrect.cpp24 const std::string CLASS_NAME = "RoundRect";
37 ROSEN_LOGE("JsRoundRect::Init Failed to define RoundRect class"); in Init()
118 GET_ENUM_PARAM(ARGC_ZERO, pos, 0, static_cast<int32_t>(RoundRect::CornerPos::BOTTOM_LEFT_POS)); in OnSetCorner()
124 m_roundRect.SetCornerRadius(static_cast<RoundRect::CornerPos>(pos), x, y); in OnSetCorner()
140 GET_ENUM_PARAM(ARGC_ZERO, pos, 0, static_cast<int32_t>(RoundRect::CornerPos::BOTTOM_LEFT_POS)); in OnGetCorner()
141 auto point = m_roundRect.GetCornerRadius(static_cast<RoundRect::CornerPos>(pos)); in OnGetCorner()
165 const RoundRect& JsRoundRect::GetRoundRect() in GetRoundRect()
H A Djs_roundrect.h41 const RoundRect& GetRoundRect();
49 RoundRect m_roundRect;
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/ohos/overdraw/
H A Drs_canvas_listener.h42 virtual void DrawRoundRect(const Drawing::RoundRect& roundRect) {}; in DrawRoundRect()
43 virtual void DrawNestedRoundRect(const Drawing::RoundRect& outer, const Drawing::RoundRect& inner) {}; in DrawNestedRoundRect()
H A Drs_gpu_overdraw_canvas_listener.h40 void DrawRoundRect(const Drawing::RoundRect& roundRect) override;
41 void DrawNestedRoundRect(const Drawing::RoundRect& outer, const Drawing::RoundRect& inner) override;
H A Drs_cpu_overdraw_canvas_listener.h41 void DrawRoundRect(const Drawing::RoundRect& roundRect) override;
42 void DrawNestedRoundRect(const Drawing::RoundRect& outer, const Drawing::RoundRect& inner) override;
H A Drs_listened_canvas.h35 void DrawRoundRect(const Drawing::RoundRect& roundRect) override;
36 void DrawNestedRoundRect(const Drawing::RoundRect& outer, const Drawing::RoundRect& inner) override;
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Ddrawing_forward.h34 class RoundRect;
57 using RSRoundRect = Rosen::Drawing::RoundRect;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_canvas.h84 void DrawRoundRect(const RoundRect& roundRect, const Paint& paint) override;
85 void DrawNestedRoundRect(const RoundRect& outer, const RoundRect& inner, const Paint& paint) override;
135 void ClipRoundRect(const RoundRect& roundRect, ClipOp op, bool doAntiAlias) override;
177 void RoundRectCastToSkRRect(const RoundRect& roundRect, SkRRect& skRRect) const;
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_border.cpp620 Drawing::Point tlRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::TOP_LEFT_POS); in DrawTopBorder()
621 Drawing::Point trRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::TOP_RIGHT_POS); in DrawTopBorder()
649 Drawing::Point trRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::TOP_RIGHT_POS); in DrawRightBorder()
650 Drawing::Point brRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::BOTTOM_RIGHT_POS); in DrawRightBorder()
676 Drawing::Point brRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::BOTTOM_RIGHT_POS); in DrawBottomBorder()
677 Drawing::Point blRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::BOTTOM_LEFT_POS); in DrawBottomBorder()
704 Drawing::Point tlRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::TOP_LEFT_POS); in DrawLeftBorder()
705 Drawing::Point blRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::BOTTOM_LEFT_POS); in DrawLeftBorder()
726 Drawing::Point RSBorder::GetTLIP(const Drawing::RoundRect& rrect, const Drawing::Point& center) const in GetTLIP()
741 Drawing::Point tlRad = rrect.GetCornerRadius(Drawing::RoundRect in GetTLIP()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/
H A Dcheckboxgroup_pattern.cpp442 auto getInnerPaintRectCallback = [wp = WeakClaim(this)](RoundRect& paintRect) { in InitOnKeyEvent()
451 void CheckBoxGroupPattern::GetInnerFocusPaintRect(RoundRect& paintRect) in GetInnerFocusPaintRect()
473 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect()
474 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect()
475 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect()
476 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_RIGHT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect()
479 void CheckBoxGroupPattern::InnerFocusPaintCircle(RoundRect& paintRect) in InnerFocusPaintCircle()
492 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, outCircleRadius, outCircleRadius); in InnerFocusPaintCircle()
493 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, outCircleRadius, outCircleRadius); in InnerFocusPaintCircle()
494 paintRect.SetCornerRadius(RoundRect in InnerFocusPaintCircle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_item_pattern.cpp240 auto getInnerPaintRectCallback = [wp = WeakClaim(this)](RoundRect& paintRect) { in InitFocusPaintRect()
249 void GridItemPattern::GetInnerFocusPaintRect(RoundRect& paintRect) in GetInnerFocusPaintRect()
267 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, in GetInnerFocusPaintRect()
270 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, in GetInnerFocusPaintRect()
273 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS, in GetInnerFocusPaintRect()
276 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_RIGHT_POS, in GetInnerFocusPaintRect()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/overdraw/
H A Drs_gpu_overdraw_canvas_listener_test.cpp211 Drawing::RoundRect roundRectTest1; in HWTEST_F()
214 Drawing::RoundRect roundRectTest2; in HWTEST_F()
215 Drawing::RoundRect innerTest1; in HWTEST_F()
302 Drawing::RoundRect roundRectTest1; in HWTEST_F()
305 Drawing::RoundRect roundRectTest2; in HWTEST_F()
306 Drawing::RoundRect roundRectTest3; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Drender_node_modifier.cpp387 RoundRect roundRectInstance; in SetRoundRectMask()
388 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, in SetRoundRectMask()
390 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, in SetRoundRectMask()
392 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS, in SetRoundRectMask()
394 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::BOTTOM_RIGHT_POS, in SetRoundRectMask()
474 RoundRect roundRectInstance; in SetRoundRectClip()
476 RoundRect::CornerPos::TOP_LEFT_POS, roundRect[TOP_LEFT_X_VALUE], roundRect[TOP_LEFT_Y_VALUE]); in SetRoundRectClip()
478 RoundRect::CornerPos::TOP_RIGHT_POS, roundRect[TOP_RIGHT_X_VALUE], roundRect[TOP_RIGHT_Y_VALUE]); in SetRoundRectClip()
480 RoundRect::CornerPos::BOTTOM_LEFT_POS, roundRect[BOTTOM_LEFT_X_VALUE], roundRect[BOTTOM_LEFT_Y_VALUE]); in SetRoundRectClip()
482 RoundRect in SetRoundRectClip()
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/enum_napi/
H A Djs_enum.cpp195 Drawing::RoundRect::CornerPos::TOP_LEFT_POS) },
197 Drawing::RoundRect::CornerPos::TOP_RIGHT_POS) },
199 Drawing::RoundRect::CornerPos::BOTTOM_RIGHT_POS) },
201 Drawing::RoundRect::CornerPos::BOTTOM_LEFT_POS) },
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/
H A Drecording_canvas.h69 void DrawRoundRect(const RoundRect& roundRect) override;
70 void DrawNestedRoundRect(const RoundRect& outer, const RoundRect& inner) override;
107 void ClipRoundRect(const RoundRect& roundRect, ClipOp op, bool doAntiAlias) override;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dcore_canvas_impl.h89 virtual void DrawRoundRect(const RoundRect& roundRect, const Paint& paint) = 0;
90 virtual void DrawNestedRoundRect(const RoundRect& outer, const RoundRect& inner, const Paint& paint) = 0;
142 virtual void ClipRoundRect(const RoundRect& roundRect, ClipOp op, bool doAntiAlias = false) = 0;
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dfocus_hub.h135 const RoundRect& GetPaintRect() const in GetPaintRect()
166 void SetPaintRect(const RoundRect& rect) in SetPaintRect()
184 std::optional<RoundRect> paintRect;
416 RoundRect GetPaintRect() const in GetPaintRect()
418 CHECK_NULL_RETURN(focusPaintParamsPtr_, RoundRect()); in GetPaintRect()
476 void SetPaintRect(const RoundRect& rect) in SetPaintRect()
930 bool PaintInnerFocusState(const RoundRect& paintRect, bool forceUpdate = false);
935 void SetInnerFocusPaintRectCallback(const std::function<void(RoundRect&)>& callback) in SetInnerFocusPaintRectCallback()
1164 std::function<void(RoundRect&)> getInnerFocusRectFunc_;

Completed in 15 milliseconds

12345