/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | round_rect.h | 28 class DRAWING_API RoundRect { 38 inline RoundRect() noexcept; 39 inline ~RoundRect() {} in ~RoundRect() 41 inline RoundRect(const RoundRect& roundRect) noexcept; 77 inline RoundRect::RoundRect() noexcept : rect_(), isSimple_(true) {} in RoundRect() function 79 inline RoundRect::RoundRect(const RoundRect& roundRect) noexcept : RoundRect() in RoundRect() function 88 inline RoundRect::RoundRect(const Rect& r, scalar xRad, scalar yRad) noexcept : RoundRect() in RoundRect() function 98 inline RoundRect::RoundRect(const Rect& r, const std::vector<Point>& radiusXY) noexcept : RoundRect… in RoundRect() function 125 inline const Rect& RoundRect::GetRect() const in GetRect() 140 inline scalar RoundRect::GetSimpleX() const in GetSimpleX() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/ |
H A D | round_rect_test.cpp | 51 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(); 65 const RoundRect roundRect1; 66 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(roundRect1); 81 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(rect, 12.6f, 77.4f); 97 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(rect, radiusXY); 110 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(); 126 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(); 142 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(); 159 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(); 175 std::unique_ptr<RoundRect> roundRect = std::make_unique<RoundRect>(); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | focus_state_modifier.h | 64 void SetRoundRect(const RoundRect& rect, float borderWidth) in SetRoundRect() 71 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).x, in SetRoundRect() 72 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).y); in SetRoundRect() 74 rect.GetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS).x, in SetRoundRect() 75 rect.GetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS).y); in SetRoundRect() 86 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).x, in SetRoundRect() 87 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).y); in SetRoundRect() 89 rect.GetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS).x, in SetRoundRect() 102 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).x, in SetRoundRect() 103 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).y); in SetRoundRect() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_round_rect.cpp | 31 static RoundRect* CastToRoundRect(OH_Drawing_RoundRect* cRoundRect) in CastToRoundRect() 33 return reinterpret_cast<RoundRect*>(cRoundRect); in CastToRoundRect() 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::CornerPos::BOTTOM_LEFT_POS; in CCornerPosCastToCornerPos() 70 RoundRect* rounRect = CastToRoundRect(cRoundRect); in OH_Drawing_RoundRectSetCorner() 84 RoundRect* rounRect = CastToRoundRect(cRoundRect); in OH_Drawing_RoundRectGetCorner() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/roundrect_fuzzer/ |
H A D | roundrect_fuzzer.cpp | 44 RoundRect roundRect; in RoundRectFuzzTest000() 50 …roundRect.AdjustRadiiX(PATH_DOUBLE, PATH_DOUBLE, static_cast<RoundRect::CornerPos>(cornerPosA % PA… in RoundRectFuzzTest000() 51 static_cast<RoundRect::CornerPos>(cornerPosA % PATH_FIVE)); in RoundRectFuzzTest000() 52 …roundRect.AdjustRadiiY(PATH_DOUBLE, PATH_DOUBLE, static_cast<RoundRect::CornerPos>(cornerPosA % PA… 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 roundRect1 = RoundRect(roundRect); in RoundRectFuzzTest001() 80 RoundRect roundRect2 = RoundRect(r, radiusXY1); in RoundRectFuzzTest001()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | rect_t.h | 511 class RoundRect { 520 inline RoundRect() noexcept; 521 inline ~RoundRect() = default; 523 inline RoundRect(const RoundRect& roundRect) noexcept; 542 inline RoundRect::RoundRect() noexcept : radius_(EdgeF(0, 0), EdgeF(0, 0), EdgeF(0, 0), EdgeF(0, 0)… in RoundRect() function 544 inline RoundRect::RoundRect(const RoundRect& roundRect) noexcept : RoundRect() in RoundRect() function 550 inline RoundRect::RoundRect(const RectF& r, float xRad, float yRad) noexcept : RoundRect() in RoundRect() function 558 inline RoundRect::RoundRect(const RectF& r, const RadiusF& rad) noexcept : RoundRect() in RoundRect() function 569 inline void RoundRect::SetCornerRadius(float radius) in SetCornerRadius() 582 inline void RoundRect::SetRect(const RectF& rect) in SetRect() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_border.h | 50 Drawing::RoundRect rrect; 51 Drawing::RoundRect innerRRect; 116 …Drawing::Point GetTLIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) con… 117 …Drawing::Point GetTRIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) con… 118 …Drawing::Point GetBLIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) con… 119 …Drawing::Point GetBRIP(const Drawing::RoundRect& rrect, const Drawing::Point& innerRectCenter) con…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/ |
H A D | round_rect.cpp | 58 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()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/roundRect_napi/ |
H A D | js_roundrect.cpp | 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 D | js_roundrect.h | 41 const RoundRect& GetRoundRect(); 49 RoundRect m_roundRect;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_border.cpp | 620 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() 704 Drawing::Point tlRad = borderGeo.rrect.GetCornerRadius(Drawing::RoundRect::TOP_LEFT_POS); in DrawLeftBorder() 741 Drawing::Point tlRad = rrect.GetCornerRadius(Drawing::RoundRect::TOP_LEFT_POS); in GetTLIP() 742 Drawing::Point trRad = rrect.GetCornerRadius(Drawing::RoundRect::TOP_RIGHT_POS); in GetTLIP() 743 Drawing::Point blRad = rrect.GetCornerRadius(Drawing::RoundRect::BOTTOM_LEFT_POS); in GetTLIP() 788 Drawing::Point trRad = rrect.GetCornerRadius(Drawing::RoundRect::TOP_RIGHT_POS); in GetTRIP() 789 Drawing::Point tlRad = rrect.GetCornerRadius(Drawing::RoundRect::TOP_LEFT_POS); in GetTRIP() 836 Drawing::Point tlRad = rrect.GetCornerRadius(Drawing::RoundRect::TOP_LEFT_POS); in GetBLIP() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/checkboxgroup/ |
H A D | checkboxgroup_pattern.cpp | 444 auto getInnerPaintRectCallback = [wp = WeakClaim(this)](RoundRect& paintRect) { in InitOnKeyEvent() 453 void CheckBoxGroupPattern::GetInnerFocusPaintRect(RoundRect& paintRect) in GetInnerFocusPaintRect() 475 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect() 476 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect() 477 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect() 478 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_RIGHT_POS, borderRadius, borderRadius); in GetInnerFocusPaintRect() 481 void CheckBoxGroupPattern::InnerFocusPaintCircle(RoundRect& paintRect) in InnerFocusPaintCircle() 494 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, outCircleRadius, outCircleRadius); in InnerFocusPaintCircle() 495 … paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, outCircleRadius, outCircleRadius); in InnerFocusPaintCircle() 496 …paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS, outCircleRadius, outCircleRadius); in InnerFocusPaintCircle() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_item_pattern.cpp | 244 auto getInnerPaintRectCallback = [wp = WeakClaim(this)](RoundRect& paintRect) { in InitFocusPaintRect() 253 void GridItemPattern::GetInnerFocusPaintRect(RoundRect& paintRect) in GetInnerFocusPaintRect() 271 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, in GetInnerFocusPaintRect() 274 paintRect.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, in GetInnerFocusPaintRect() 277 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS, in GetInnerFocusPaintRect() 280 paintRect.SetCornerRadius(RoundRect::CornerPos::BOTTOM_RIGHT_POS, in GetInnerFocusPaintRect()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | render_node_modifier.cpp | 404 RoundRect roundRectInstance; in SetRoundRectMask() 405 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS, in SetRoundRectMask() 407 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::TOP_RIGHT_POS, in SetRoundRectMask() 409 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::BOTTOM_LEFT_POS, in SetRoundRectMask() 411 roundRectInstance.SetCornerRadius(RoundRect::CornerPos::BOTTOM_RIGHT_POS, in SetRoundRectMask() 491 RoundRect roundRectInstance; in SetRoundRectClip() 493 … RoundRect::CornerPos::TOP_LEFT_POS, roundRect[TOP_LEFT_X_VALUE], roundRect[TOP_LEFT_Y_VALUE]); in SetRoundRectClip() 495 … RoundRect::CornerPos::TOP_RIGHT_POS, roundRect[TOP_RIGHT_X_VALUE], roundRect[TOP_RIGHT_Y_VALUE]); in SetRoundRectClip() 497 …RoundRect::CornerPos::BOTTOM_LEFT_POS, roundRect[BOTTOM_LEFT_X_VALUE], roundRect[BOTTOM_LEFT_Y_VAL… in SetRoundRectClip() 499 …RoundRect::CornerPos::BOTTOM_RIGHT_POS, roundRect[BOTTOM_RIGHT_X_VALUE], roundRect[BOTTOM_RIGHT_Y_… in SetRoundRectClip()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_canvas.h | 82 void DrawRoundRect(const RoundRect& roundRect, const Paint& paint) override; 83 …void DrawNestedRoundRect(const RoundRect& outer, const RoundRect& inner, const Paint& paint) overr… 133 void ClipRoundRect(const RoundRect& roundRect, ClipOp op, bool doAntiAlias) override; 175 void RoundRectCastToSkRRect(const RoundRect& roundRect, SkRRect& skRRect) const;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/ohos/overdraw/ |
H A D | rs_canvas_listener.h | 42 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 D | rs_gpu_overdraw_canvas_listener.h | 40 void DrawRoundRect(const Drawing::RoundRect& roundRect) override; 41 …void DrawNestedRoundRect(const Drawing::RoundRect& outer, const Drawing::RoundRect& inner) overrid…
|
H A D | rs_cpu_overdraw_canvas_listener.h | 41 void DrawRoundRect(const Drawing::RoundRect& roundRect) override; 42 …void DrawNestedRoundRect(const Drawing::RoundRect& outer, const Drawing::RoundRect& inner) overrid…
|
H A D | rs_listened_canvas.h | 35 void DrawRoundRect(const Drawing::RoundRect& roundRect) override; 36 …void DrawNestedRoundRect(const Drawing::RoundRect& outer, const Drawing::RoundRect& inner) overrid…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/overdraw/ |
H A D | rs_gpu_overdraw_canvas_listener_test.cpp | 217 Drawing::RoundRect roundRectTest1; 220 Drawing::RoundRect roundRectTest2; 221 Drawing::RoundRect innerTest1; 310 Drawing::RoundRect roundRectTest1; 313 Drawing::RoundRect roundRectTest2; 314 Drawing::RoundRect roundRectTest3;
|
H A D | rs_listened_canvas_test.cpp | 313 Drawing::RoundRect roundRect2; 316 Drawing::RoundRect roundRect21; 317 Drawing::RoundRect roundRect22; 387 Drawing::RoundRect roundRectTest1; 390 Drawing::RoundRect roundRectTest2; 391 Drawing::RoundRect roundRectTest3;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/recording/ |
H A D | recording_canvas.h | 69 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;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | core_canvas_impl.h | 89 virtual void DrawRoundRect(const RoundRect& roundRect, const Paint& paint) = 0; 90 …virtual void DrawNestedRoundRect(const RoundRect& outer, const RoundRect& inner, const Paint& pain… 142 virtual void ClipRoundRect(const RoundRect& roundRect, ClipOp op, bool doAntiAlias = false) = 0;
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/enum_napi/ |
H A D | js_enum.cpp | 195 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) },
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | drawing_forward.h | 34 class RoundRect; variable 57 using RSRoundRect = Rosen::Drawing::RoundRect;
|