/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 27 Rect rect(margin, margin, width - margin, height - margin); in TestDrawStar() 28 int len = rect.GetWidth() - rect.GetWidth() / 5.0f; // set len size in TestDrawStar() 30 Point a(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetTop() + rect.GetHeight() / 2.0f - len * std::cos(18.0f)); in TestDrawStar() 108 Rect rect(margin, margin, width - margin, height - margin); in TestMoveTo() 110 path.AddRect(rect); in TestMoveTo() 111 path.MoveTo(rect in TestMoveTo() [all...] |
H A D | pen_test.cpp | 37 Rect rect(margin, margin, width - margin, height - margin); in TestPenColor() 39 canvas.AttachPen(pen).DrawRect(rect); in TestPenColor() 41 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenColor() 42 rect.GetRight() - margin, rect.GetBottom() - margin); in TestPenColor() 69 Rect rect(margin, margin, width - margin, height - margin); in TestPenAlpha() 71 canvas.AttachPen(pen).DrawRect(rect); in TestPenAlpha() 73 Rect rect1(rect.GetLeft() + margin, rect in TestPenAlpha() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_rect_test.cpp | 52 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300);
in HWTEST_F() local 53 EXPECT_NE(nullptr, rect);
in HWTEST_F() 54 OH_Drawing_RectDestroy(rect);
in HWTEST_F() 65 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300);
in HWTEST_F() local 66 EXPECT_NE(nullptr, rect);
in HWTEST_F() 74 bool ret = OH_Drawing_RectIntersect(rect, otherOne);
in HWTEST_F() 77 ret = OH_Drawing_RectIntersect(rect, otherTwo);
in HWTEST_F() 80 OH_Drawing_RectDestroy(rect);
in HWTEST_F() 86 * @tc.desc: test for get height of rect.
92 OH_Drawing_Rect* rect in HWTEST_F() local 108 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 400, 800); HWTEST_F() local 124 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 400, 800); HWTEST_F() local 193 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(10, 20, 40, 30); HWTEST_F() local 210 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300); // 100 200 300 500 rect param HWTEST_F() local 248 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300); // 100 200 300 500 rect param HWTEST_F() local 273 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 290 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300); // 100 200 300 500 rect param HWTEST_F() local 306 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 320 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300); // 100 200 300 500 rect param HWTEST_F() local 336 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 350 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300); // 100 200 300 500 rect param HWTEST_F() local 365 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 380 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 200, 500, 300); // 100 200 300 500 rect param HWTEST_F() local 395 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 410 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(50, 50, 250, 250); // 50, 50, 250, 250 rect param HWTEST_F() local 424 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 438 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(50, 50, 250, 250); // 50, 50, 250, 250 rect param HWTEST_F() local 452 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 466 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(50, 50, 250, 250); // 50 250 rect param HWTEST_F() local 480 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 494 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(50, 50, 250, 250); // 50 250 rect param HWTEST_F() local 519 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 533 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 630 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local 647 OH_Drawing_Rect *rect = nullptr; HWTEST_F() local [all...] |
H A D | drawing_region_test.cpp | 57 * @tc.desc: test for constructs a rectangular Region matching the bounds of rect. 64 OH_Drawing_Rect* rect=OH_Drawing_RectCreate(0.0f, 0.0f, 256.0f, 256.0f); in HWTEST_F() local 65 EXPECT_TRUE(OH_Drawing_RegionSetRect(region, rect)); in HWTEST_F() 66 OH_Drawing_RegionSetRect(nullptr, rect); in HWTEST_F() 71 OH_Drawing_RectDestroy(rect); in HWTEST_F() 83 // rect left[100.0f], top[100.0f],right[256.0f], bottom[256.0f] in HWTEST_F() 84 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(100.0f, 100.0f, 256.0f, 256.0f); in HWTEST_F() local 85 OH_Drawing_RegionSetRect(region, rect); in HWTEST_F() 89 OH_Drawing_RectDestroy(rect); in HWTEST_F() 101 // rect lef in HWTEST_F() 102 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(100.0f, 100.0f, 256.0f, 256.0f); HWTEST_F() local 134 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(150.0f, 180.0f, 200.0f, 200.0f); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_rect_test.cpp | 41 * @tc.desc: test results of FilterRectIComparator of equal rect 48 RectI rect; in HWTEST_F() local 49 auto p1 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F() 51 auto p2 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F() 65 RectI rect; in HWTEST_F() local 66 auto p1 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F() 68 auto p2 = std::pair<NodeId, RectI>(id, rect.MakeOutset(1)); in HWTEST_F() 82 RectI rect; in HWTEST_F() local 83 auto p1 = std::pair<NodeId, RectI>(id, rect); in HWTEST_F() 84 auto p2 = std::pair<NodeId, RectI>(id, rect in HWTEST_F() 97 RectF rect; HWTEST_F() local 113 RectF rect; HWTEST_F() local 126 RectF rect; HWTEST_F() local 138 RectF rect; HWTEST_F() local 151 RectF rect; HWTEST_F() local 163 RectF rect; HWTEST_F() local 175 RectF rect; HWTEST_F() local 191 RectF rect; HWTEST_F() local 212 RectF rect; HWTEST_F() local 241 RectF rect; HWTEST_F() local 273 RectF rect; HWTEST_F() local 289 RectF rect; HWTEST_F() local 301 RectF rect; HWTEST_F() local 315 RectF rect; HWTEST_F() local 330 RectF rect; HWTEST_F() local 346 RectF rect; HWTEST_F() local 360 RectF rect; HWTEST_F() local [all...] |
/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() argument 69 rosen::Rect(rect.GetRect().Left(), rect.GetRect().Top(), rect.GetRect().Right(), rect.GetRect().Bottom())); 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() 77 rect in SetRoundRect() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkrect_fuzzer/ |
H A D | rect_fuzzer.cpp | 43 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); in RectFuzzTest000() local 46 OH_Drawing_RectSetTop(rect, top); in RectFuzzTest000() 48 OH_Drawing_RectGetTop(rect); in RectFuzzTest000() 51 OH_Drawing_RectSetBottom(rect, bottom); in RectFuzzTest000() 53 OH_Drawing_RectGetBottom(rect); in RectFuzzTest000() 56 OH_Drawing_RectSetLeft(rect, left); in RectFuzzTest000() 58 OH_Drawing_RectGetLeft(rect); in RectFuzzTest000() 61 OH_Drawing_RectSetRight(rect, right); in RectFuzzTest000() 63 OH_Drawing_RectGetRight(rect); in RectFuzzTest000() 66 OH_Drawing_RectGetHeight(rect); in RectFuzzTest000() 84 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(left, top, right, bottom); RectFuzzTest001() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_rect.cpp | 20 #include "utils/rect.h" 38 Rect* rect = CastToRect(cRect); in OH_Drawing_RectIntersect() local 40 if (rect == nullptr || otherRect == nullptr) { in OH_Drawing_RectIntersect() 44 return rect->Intersect(*otherRect); in OH_Drawing_RectIntersect() 49 Rect* rect = CastToRect(cRect); in OH_Drawing_RectJoin() local 51 if (rect == nullptr || otherRect == nullptr) { in OH_Drawing_RectJoin() 55 return rect->Join(*otherRect); in OH_Drawing_RectJoin() 60 Rect* rect = CastToRect(cRect); in OH_Drawing_RectSetTop() local 61 if (rect == nullptr) { in OH_Drawing_RectSetTop() 65 rect in OH_Drawing_RectSetTop() 70 Rect* rect = CastToRect(cRect); OH_Drawing_RectSetBottom() local 80 Rect* rect = CastToRect(cRect); OH_Drawing_RectSetLeft() local 90 Rect* rect = CastToRect(cRect); OH_Drawing_RectSetRight() local 100 Rect* rect = CastToRect(cRect); OH_Drawing_RectGetTop() local 110 Rect* rect = CastToRect(cRect); OH_Drawing_RectGetBottom() local 120 Rect* rect = CastToRect(cRect); OH_Drawing_RectGetLeft() local 130 Rect* rect = CastToRect(cRect); OH_Drawing_RectGetRight() local 140 Rect* rect = CastToRect(cRect); OH_Drawing_RectGetHeight() local 150 Rect* rect = CastToRect(cRect); OH_Drawing_RectGetWidth() local 217 OH_Drawing_RectGetArrayElement(OH_Drawing_Array* rectArray, size_t index, OH_Drawing_Rect** rect) OH_Drawing_RectGetArrayElement() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_dirty_region_manager.cpp | 42 void RSDirtyRegionManager::MergeDirtyRect(const RectI& rect, bool isDebugRect) in MergeDirtyRect() argument 44 if (rect.IsEmpty()) { in MergeDirtyRect() 48 currentFrameDirtyRegion_ = rect; in MergeDirtyRect() 50 currentFrameDirtyRegion_ = currentFrameDirtyRegion_.JoinRect(rect); in MergeDirtyRect() 53 mergedDirtyRegions_.emplace_back(rect); in MergeDirtyRect() 56 debugRect_ = rect; in MergeDirtyRect() 60 void RSDirtyRegionManager::MergeHwcDirtyRect(const RectI& rect) in MergeHwcDirtyRect() argument 62 if (rect.IsEmpty()) { in MergeHwcDirtyRect() 66 hwcDirtyRegion_ = rect; in MergeHwcDirtyRect() 68 hwcDirtyRegion_ = hwcDirtyRegion_.JoinRect(rect); in MergeHwcDirtyRect() 72 MergeDirtyRectIfIntersect(const RectI& rect) MergeDirtyRectIfIntersect() argument 84 MergeDirtyRectAfterMergeHistory(const RectI& rect) MergeDirtyRectAfterMergeHistory() argument 117 UpdateCacheableFilterRect(const RectI& rect) UpdateCacheableFilterRect() argument 135 IntersectDirtyRect(const RectI& rect) IntersectDirtyRect() argument 219 GetPixelAlignedRect(const RectI& rect, int32_t alignedBits) GetPixelAlignedRect() argument 277 UpdateDirtyRegionInfoForDfx(NodeId id, RSRenderNodeType nodeType, DirtyRegionType dirtyType, const RectI& rect) UpdateDirtyRegionInfoForDfx() argument 403 PushHistory(RectI rect) PushHistory() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | canvas_test.cpp | 46 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 48 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 50 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 62 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 256, 256); // 0, 0, 256, 256 创建矩形 in OnTestPerformance() local 68 OH_Drawing_CanvasDrawBitmapRect(canvas, bm, rect, dst, sampling); in OnTestPerformance() 73 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 89 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 91 OH_Drawing_CanvasDrawOval(canvas, rect); in OnTestPerformance() 93 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 98 OH_Drawing_Rect* rect in OnTestPerformance() local 107 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 129 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 139 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 150 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 160 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 170 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 180 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 193 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 204 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 215 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 275 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 292 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 256, 256); // 0, 0, 256, 256 创建矩形 OnTestPerformance() local 343 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 369 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 434 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 446 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 640, 640); // 0, 0, 640, 640 这些数字用于用于创建矩形 OnTestPerformance() local 456 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 482 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 506 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 // 100, 100 创建矩形 OnTestPerformance() local 513 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 400, 400); // 0, 0, 400, 400 创建矩形 OnTestPerformance() local 530 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 550 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, canvas_width, 100); // 100 矩形高度 OnTestPerformance() local 561 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, canvas_height); // 100 矩形宽度 OnTestPerformance() local [all...] |
H A D | color_test.cpp | 43 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 47 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 49 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 62 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 66 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 67 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 85 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 in OnTestPerformance() local 89 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 90 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 102 OH_Drawing_Rect* rect in OnTestPerformance() local 119 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 136 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 152 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local 164 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(0, 0, 100, 100); // 0, 0, 100, 100 创建矩形 OnTestPerformance() local [all...] |
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | rrect.h | 23 #include "base/geometry/rect.h" 40 explicit RRect(const Rect& rect) : rect_(rect) {} in RRect() argument 46 static RRect MakeRect(const Rect& rect) in MakeRect() argument 49 rrect.SetRect(rect); in MakeRect() 53 static RRect MakeRRect(const Rect& rect, const Radius& radius) in MakeRRect() argument 56 rrect.SetRectWithSimpleRadius(rect, radius.GetX().Value(), radius.GetY().Value()); in MakeRRect() 60 static RRect MakeRRect(const Rect& rect, double x, double y) in MakeRRect() argument 63 rrect.SetRectWithSimpleRadius(rect, x, y); in MakeRRect() 67 static RRect MakeOval(const Rect& rect) in MakeOval() argument 84 SetRect(const Rect& rect) SetRect() argument 94 SetRectWithSimpleRadius(const Rect& rect, double xRadius, double yRadius) SetRectWithSimpleRadius() argument 118 SetOval(const Rect& rect) SetOval() argument [all...] |
/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_rect.cpp | 24 void DrawRect::Draw(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, in Draw() argument 27 if ((rect.GetWidth() <= 0) || (rect.GetHeight() <= 0)) { in Draw() 36 * rect width > rect height in Draw() 37 * radius >= rect height / 2 in Draw() 38 * radius < rect height / 2 in Draw() 39 * rect width <= rect height in Draw() 40 * radius >= rect widt in Draw() 82 DrawRectRadiusWithoutBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusWithoutBorder() argument 97 DrawRectRadiusWithoutBorderCon1(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusWithoutBorderCon1() argument 140 DrawRectRadiusWithoutBorderCon2(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusWithoutBorderCon2() argument 178 DrawRectRadiusWithoutBorderCon3(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusWithoutBorderCon3() argument 200 DrawRectRadiusWithoutBorderCon4(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusWithoutBorderCon4() argument 262 DrawRectBorderWithoutRadius(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectBorderWithoutRadius() argument 299 DrawRectRadiusEqualBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusEqualBorder() argument 369 DrawRectRadiusSmallThanBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusSmallThanBorder() argument 452 DrawRectRadiusBiggerThanBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusBiggerThanBorder() argument 467 DrawRectRadiusBiggerThanBorderCon1(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusBiggerThanBorderCon1() argument 536 DrawRectRadiusBiggerThanBorderCon2(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusBiggerThanBorderCon2() argument 603 DrawRectRadiusBiggerThanBorderCon3(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusBiggerThanBorderCon3() argument 639 DrawRectRadiusBiggerThanBorderCon4(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opaScale) DrawRectRadiusBiggerThanBorderCon4() argument [all...] |
H A D | draw_rect.h | 20 #include "gfx_utils/rect.h" 32 static void Draw(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 36 static void DrawRectRadiusWithoutBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 39 static void DrawRectBorderWithoutRadius(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 42 static void DrawRectRadiusEqualBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 45 static void DrawRectRadiusSmallThanBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 48 static void DrawRectRadiusBiggerThanBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 51 static void DrawRectRadiusWithoutBorderCon1(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 54 static void DrawRectRadiusWithoutBorderCon2(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 57 static void DrawRectRadiusWithoutBorderCon3(BufferInfo& gfxDstBuffer, const Rect& rect, cons [all...] |
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | geometry2d.h | 43 #include "gfx_utils/rect.h" 147 * @param rect Indicates the rectangle used to construct the polygon. 151 explicit Polygon(const Rect& rect) in Polygon() argument 154 vertexes_[0].x_ = rect.GetLeft(); in Polygon() 155 vertexes_[0].y_ = rect.GetTop(); in Polygon() 157 vertexes_[1].x_ = rect.GetRight(); in Polygon() 158 vertexes_[1].y_ = rect.GetTop(); in Polygon() 160 vertexes_[2].x_ = rect.GetRight(); in Polygon() 161 vertexes_[2].y_ = rect.GetBottom(); in Polygon() 163 vertexes_[3].x_ = rect in Polygon() [all...] |
/foundation/distributedhardware/distributed_screen/services/common/utils/src/ |
H A D | dscreen_maprelation.cpp | 90 DHLOGE("Missing display or screen rect."); in from_json() 97 void to_json(json &j, const DisplayRect &rect) in to_json() argument 100 {KEY_POINT_START_X, rect.startX}, in to_json() 101 {KEY_POINT_START_Y, rect.startY}, in to_json() 102 {KEY_WIDTH, rect.width}, in to_json() 103 {KEY_HEIGHT, rect.height} in to_json() 107 void from_json(const json &j, DisplayRect &rect) in from_json() argument 111 DHLOGE("Invalid display rect parameters."); in from_json() 123 rect.startX = startX; in from_json() 124 rect in from_json() 129 to_json(json &j, const ScreenRect &rect) to_json() argument 139 from_json(const json &j, ScreenRect &rect) from_json() argument [all...] |
/foundation/window/window_manager/window_scene/common/include/ |
H A D | session_helper.h | 51 static bool IsPointInRect(int32_t pointPosX, int32_t pointPosY, const Rect& rect) in IsPointInRect() argument 53 if ((pointPosX > rect.posX_) && in IsPointInRect() 54 (pointPosX < (rect.posX_ + static_cast<int32_t>(rect.width_)) - 1) && in IsPointInRect() 55 (pointPosY > rect.posY_) && in IsPointInRect() 56 (pointPosY < (rect.posY_ + static_cast<int32_t>(rect.height_)) - 1)) { in IsPointInRect() 62 static inline WSRect TransferToWSRect(const Rect& rect) in TransferToWSRect() argument 65 r.height_ = rect.height_; in TransferToWSRect() 66 r.width_ = rect in TransferToWSRect() 72 TransferToRect(const WSRect& rect) TransferToRect() argument 117 GetAreaType(int32_t pointWinX, int32_t pointWinY, int32_t sourceType, int outside, float vpr, const WSRect& rect) GetAreaType() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | rosen_render_picker_base.cpp | 36 // Calculate rect of all options. in GetOptionsRect() 101 auto rect = GetOptionsRect(offset, anchorColumn); in Paint() local 115 double upperLine = rect.Top() + rect.Height() / 2.0 - dividerSpacing / 2.0; in Paint() 116 double downLine = rect.Top() + rect.Height() / 2.0 + dividerSpacing / 2.0; in Paint() 117 double leftLine = rect.Left(); in Paint() 118 double rightLine = rect.Right(); in Paint() 132 PaintGradient(canvas, offset, rect, theme); in Paint() 140 SkCanvas* canvas, const Offset& offset, const Rect& rect, cons in PaintGradient() 139 PaintGradient( SkCanvas* canvas, const Offset& offset, const Rect& rect, const RefPtr<PickerTheme>& theme) PaintGradient() argument [all...] |
/foundation/window/window_manager/extension/window_extension/src/ |
H A D | window_extension_stub_impl.cpp | 39 const Rect& rect, uint32_t parentWindowId, const std::shared_ptr<AbilityRuntime::Context>& context, in CreateWindow() 49 option->SetWindowRect(rect); in CreateWindow() 63 void WindowExtensionStubImpl::SetBounds(const Rect& rect) in SetBounds() argument 73 WLOGD("newRect, x = %{public}d, y = %{public}d, w = %{public}d, h = %{public}d", rect.posX_, in SetBounds() 74 rect.posY_, rect.width_, rect.height_); in SetBounds() 75 if (rect.width_ != orgRect.width_ || rect.height_ != orgRect.height_) { in SetBounds() 76 window->Resize(rect in SetBounds() 38 CreateWindow( const Rect& rect, uint32_t parentWindowId, const std::shared_ptr<AbilityRuntime::Context>& context, const sptr<IRemoteObject>& iSession) CreateWindow() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/ |
H A D | texgine_rect.cpp | 31 auto rect = std::make_shared<TexgineRect>(); in MakeLTRB() local 32 rect->SetRect(RSRect { left, top, right, bottom }); in MakeLTRB() 33 return *rect; in MakeLTRB() 38 auto rect = std::make_shared<TexgineRect>(); in MakeXYWH() local 39 rect->SetRect(RSRect { x, y, x + w, y + h }); in MakeXYWH() 40 return *rect; in MakeXYWH() 45 auto rect = std::make_shared<TexgineRect>(); in MakeWH() local 46 rect->SetRect(RSRect { 0, 0, w, h }); in MakeWH() 47 return *rect; in MakeWH() 52 auto rect in MakeRRect() local 73 SetRect(const RSRect &rect) SetRect() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | ellipse_painter.cpp | 21 void EllipsePainter::DrawEllipse(RSCanvas& canvas, const RectF& rect, const ShapePaintProperty& shapePaintProperty) in DrawEllipse() argument 30 canvas.DrawOval(RSRect(rect.GetX(), rect.GetY(), rect.GetX() + rect.Width(), rect.GetY() + rect.Height())); in DrawEllipse()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_overlay_modifier.cpp | 60 auto rect = selectedRect; in onDraw() local 62 if (rect.Right() > contentRect_.value().Right()) { in onDraw() 63 rect.SetWidth(std::max(contentRect_.value().Right() - rect.Left(), 0.0f)); in onDraw() 66 drawingContext.canvas.DrawRect(RSRect(paintOffset.GetX() + rect.Left(), paintOffset.GetY() + rect.Top(), in onDraw() 67 paintOffset.GetX() + rect.Right(), paintOffset.GetY() + rect.Bottom())); in onDraw() 75 auto rect = selectedRect; in onDraw() local 77 if (rect in onDraw() [all...] |
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_box_scroll_bar.cpp | 35 Rect rect; in OnDraw() local 36 if (!rect.Intersect(invalidatedArea, backgroundRect_)) { in OnDraw() 41 baseGfxEngine->DrawRect(gfxDstBuffer, rect, rect, *backgroundStyle_, opacity_); in OnDraw() 51 rect.SetRect(backgroundRect_.GetLeft(), forgroundTop, backgroundRect_.GetRight(), in OnDraw() 60 rect.SetRect(forgroundLeft, backgroundRect_.GetTop(), forgroundLeft + forgroundWidth - 1, in OnDraw() 64 rect.Intersect(invalidatedArea, rect); in OnDraw() 67 baseGfxEngine->DrawRect(gfxDstBuffer, rect, rect, *foregroundStyle in OnDraw() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/dfx/ |
H A D | rs_dirty_rects_dfx.cpp | 243 ROSEN_LOGD("DrawDirtyRectForDFX dirty rect is invalid."); in DrawDirtyRectForDFX() 247 auto rect = Drawing::Rect( in DrawDirtyRectForDFX() local 254 invertMatrix.MapRect(rect, rect); in DrawDirtyRectForDFX() 255 dirtyRect.SetAll(rect.GetLeft(), rect.GetTop(), rect.GetWidth(), rect.GetHeight()); in DrawDirtyRectForDFX() 279 canvas_->DrawRect(rect); in DrawDirtyRectForDFX() 312 for (const auto& [nid, rect] in DrawAndTraceSingleDirtyRegionTypeForDFX() [all...] |
/foundation/window/window_manager/wmserver/src/ |
H A D | display_zoom_controller.cpp | 51 Rect rect = node->GetWindowRect(); in SetAnchorAndScale() local 52 zoomInfo_.pivotX = rect.posX_ + zoomTrans.pivotX_ * rect.width_; in SetAnchorAndScale() 53 zoomInfo_.pivotY = rect.posY_ + zoomTrans.pivotY_ * rect.height_; in SetAnchorAndScale() 218 Rect rect = node->GetWindowRect(); in CalcuAnimateZoomTrans() local 219 if (rect.width_ == 0 || rect.height_ == 0) { in CalcuAnimateZoomTrans() 223 TransformHelper::Vector3 lastPivotPos = { rect.posX_ + lastZoomTrans.pivotX_ * rect in CalcuAnimateZoomTrans() 260 Rect rect = node->GetWindowRect(); CalcuZoomTransByZoomInfo() local 274 Rect rect = node->GetWindowRect(); CalcuZoomTrans() local [all...] |