Home
last modified time | relevance | path

Searched refs:rect (Results 151 - 175 of 2034) sorted by relevance

12345678910>>...82

/third_party/skia/docs/examples/
H A DIRect_containsNoEmptyCheck.cpp7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local
10 bool success = rect.containsNoEmptyCheck( in REG_FIDDLE()
12 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d, %d, %d)\n", in REG_FIDDLE()
13 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE()
H A DIRect_containsNoEmptyCheck_2.cpp7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local
10 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d, %d, %d)\n", in REG_FIDDLE()
11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE()
12 rect.containsNoEmptyCheck(contained) ? "contains" : "does not contain", in REG_FIDDLE()
H A DIRect_contains_4.cpp7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local
10 SkDebugf("rect: (%d, %d, %d, %d) %s (%g, %g, %g, %g)\n", in REG_FIDDLE()
11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE()
12 rect.contains(contained) ? "contains" : "does not contain", in REG_FIDDLE()
H A DIRect_contains_3.cpp7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local
10 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d, %d, %d)\n", in REG_FIDDLE()
11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE()
12 rect.contains(contained) ? "contains" : "does not contain", in REG_FIDDLE()
H A DIRect_contains.cpp7 SkIRect rect = { 30, 50, 40, 60 }; in REG_FIDDLE() local
10 SkDebugf("rect: (%d, %d, %d, %d) %s (%d, %d)\n", in REG_FIDDLE()
11 rect.left(), rect.top(), rect.right(), rect.bottom(), in REG_FIDDLE()
12 rect.contains(pt.x(), pt.y()) ? "contains" : "does not contain", pt.x(), pt.y()); in REG_FIDDLE()
/foundation/graphic/graphic_surface/surface/test/systemtest/
H A Dnative_window_test.cpp106 struct Region::Rect *rect = new Region::Rect(); in CreateNativeWindowAndRequestBuffer001() local
107 rect->w = 0x100; in CreateNativeWindowAndRequestBuffer001()
108 rect->h = 0x100; in CreateNativeWindowAndRequestBuffer001()
109 region->rects = rect; in CreateNativeWindowAndRequestBuffer001()
113 delete rect; in CreateNativeWindowAndRequestBuffer001()
117 delete rect; in CreateNativeWindowAndRequestBuffer001()
225 struct Region::Rect *rect = new Region::Rect(); in CreateNativeWindowAndRequestBuffer002() local
226 rect->w = 0x100; in CreateNativeWindowAndRequestBuffer002()
227 rect->h = 0x100; in CreateNativeWindowAndRequestBuffer002()
228 region->rects = rect; in CreateNativeWindowAndRequestBuffer002()
318 struct Region::Rect *rect = new Region::Rect(); CreateNativeWindowAndRequestBuffer003() local
417 struct Region::Rect *rect = new Region::Rect(); RequestBuffer001() local
463 struct Region::Rect *rect = new Region::Rect(); CreateNativeWindowAndRequestBuffer004() local
590 struct Region::Rect *rect = new Region::Rect(); CreateNativeWindowAndRequestBuffer005() local
821 struct Region::Rect *rect = new Region::Rect(); CreateNativeWindowAndRequestBuffer007() local
928 struct Region::Rect *rect = new Region::Rect(); CreateNativeWindowAndAttachBuffer001() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
H A Dcanvas_test.cpp90 auto rect = std::make_unique<Rect>(canvas->GetLocalClipBounds()); in HWTEST_F() local
91 EXPECT_TRUE(rect != nullptr); in HWTEST_F()
104 auto rect = std::make_unique<RectI>(canvas->GetDeviceClipBounds()); in HWTEST_F() local
105 EXPECT_TRUE(rect != nullptr); in HWTEST_F()
118 auto rect = std::make_unique<RectI>(canvas->GetRoundInDeviceClipBounds()); in HWTEST_F() local
119 EXPECT_TRUE(rect != nullptr); in HWTEST_F()
148 auto rect = canvas->GetWidth(); in HWTEST_F() local
149 EXPECT_EQ(rect, 0); in HWTEST_F()
162 auto rect = canvas->GetHeight(); in HWTEST_F() local
163 EXPECT_EQ(rect, in HWTEST_F()
387 Rect rect[] = { {0, 0, 50, 50}, {50, 50, 100, 100}}; HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dluma_filter.cpp100 void draw_clip(OH_Drawing_Canvas* canvas, DrawRect& c, OH_Drawing_Rect* rect, uint32_t kColor, OH_Drawing_Brush* brush) in draw_clip() argument
107 OH_Drawing_CanvasDrawOval(canvas, rect); in draw_clip()
116 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(r.left, r.top, r.right, r.bottom); in draw_scene_oval() local
120 OH_Drawing_CanvasDrawRect(canvas, rect); in draw_scene_oval()
122 OH_Drawing_CanvasSaveLayer(canvas, rect, nullptr); in draw_scene_oval()
123 OH_Drawing_RectDestroy(rect); in draw_scene_oval()
126 rect = OH_Drawing_RectCreate(r.left, r.top, r.right, r.bottom); in draw_scene_oval()
131 OH_Drawing_CanvasDrawOval(canvas, rect); in draw_scene_oval()
133 OH_Drawing_RectDestroy(rect); in draw_scene_oval()
143 OH_Drawing_Rect* rect in draw_scene() local
[all...]
H A Ddashing.cpp113 void make_path_line(OH_Drawing_Path *path, DrawRect rect) in make_path_line() argument
115 OH_Drawing_PathMoveTo(path, rect.left, rect.top); in make_path_line()
116 OH_Drawing_PathLineTo(path, rect.right, rect.bottom); in make_path_line()
119 void make_path_rect(OH_Drawing_Path *path, DrawRect rect) in make_path_rect() argument
121 OH_Drawing_PathAddRect(path, rect.left, rect.top, rect.right, rect in make_path_rect()
125 make_path_oval(OH_Drawing_Path *path, DrawRect rect) make_path_oval() argument
132 make_path_star(OH_Drawing_Path *path, DrawRect rect) make_path_star() argument
[all...]
/foundation/window/window_manager/utils/test/unittest/
H A Dwindow_helper_test.cpp97 * @tc.desc: rect test
154 Rect rect { 50, 50, 240, 320 }; in HWTEST_F()
155 TransformHelper::Vector3 pivotPos = { rect.posX_ + transform.pivotX_ * rect.width_, in HWTEST_F()
156 rect.posY_ + transform.pivotY_ * rect.height_, 0 }; in HWTEST_F()
178 Rect rect { 0, 0, 10, 20 }; in HWTEST_F()
180 TransformHelper::Vector3 pivotPos = { rect.posX_ + transform.pivotX_ * rect.width_, in HWTEST_F()
181 rect in HWTEST_F()
[all...]
/third_party/skia/gm/
H A Dquadpaths.cpp103 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); variable
109 canvas->translate((rect.width() + 40 * SK_Scalar1) * SK_ARRAY_COUNT(gStyles), 0);
114 canvas->translate(0, rect.height() + 40 * SK_Scalar1);
119 canvas->translate(rect.width() + 40 * SK_Scalar1, 0);
123 this->drawPath(path.fPath, canvas, color, rect,
132 canvas->drawRect(rect, rectPaint);
136 canvas->drawString(gStyles[style].fName, 0, rect.height() + 12.0f,
138 canvas->drawString(gFills[fill].fName, 0, rect.height() + 24.0f,
140 canvas->drawString(gCaps[cap].fName, 0, rect.height() + 36.0f,
233 SkRect rect variable
[all...]
H A Dshapes.cpp116 canvas->drawRect(shape.rect(), paint);
119 canvas->drawOval(shape.rect(), paint);
142 float s = 0.95f * std::min(outer.rect().width() / inner.rect().width(),
143 outer.rect().height() / inner.rect().height());
145 float dx = (rand.nextF() - 0.5f) * (outer.rect().width() - s * inner.rect().width());
146 float dy = (rand.nextF() - 0.5f) * (outer.rect().height() - s * inner.rect()
[all...]
/foundation/window/window_manager/test/fuzztest/wms/windowagent_fuzzer/
H A Dwindow_agent_fuzzer.cpp52 OHOS::Rosen::Rect rect; in CheckWindowAgentFunctionsPart1() local
55 startPos += GetObject<OHOS::Rosen::Rect>(rect, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1()
58 agent->UpdateWindowRect(rect, boolVal, reason); in CheckWindowAgentFunctionsPart1()
71 startPos += GetObject<OHOS::Rosen::Rect>(rect, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1()
72 avoidArea->topRect_ = rect; in CheckWindowAgentFunctionsPart1()
73 startPos += GetObject<OHOS::Rosen::Rect>(rect, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1()
74 avoidArea->leftRect_ = rect; in CheckWindowAgentFunctionsPart1()
75 startPos += GetObject<OHOS::Rosen::Rect>(rect, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1()
76 avoidArea->rightRect_ = rect; in CheckWindowAgentFunctionsPart1()
77 startPos += GetObject<OHOS::Rosen::Rect>(rect, dat in CheckWindowAgentFunctionsPart1()
107 OHOS::Rosen::Rect rect; CheckWindowAgentFunctionsPart2() local
[all...]
/third_party/skia/tools/viewer/
H A DStatsLayer.cpp94 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(canvasSize.fWidth-kDisplayWidth-kDisplayPadding), in onPaint() local
108 canvas->drawRect(rect, paint); in onPaint()
111 canvas->drawLine(rect.fLeft, rect.fBottom - kBaseMS*kPixelPerMS, in onPaint()
112 rect.fRight, rect.fBottom - kBaseMS*kPixelPerMS, paint); in onPaint()
115 canvas->drawRect(rect, paint); in onPaint()
118 int x = SkScalarTruncToInt(rect.fLeft) + kGraphPadding; in onPaint()
128 int startY = SkScalarTruncToInt(rect.fBottom); in onPaint()
142 height = std::max(0, height - (SkScalarTruncToInt(rect in onPaint()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_obj_abs_geometry.cpp297 * @param rect the rectangle to map
301 RectI RSObjAbsGeometry::MapRect(const RectF& rect, const Drawing::Matrix& matrix) in MapRect() argument
308 Drawing::RectF src(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()); in MapRect()
319 p[LEFT_TOP_POINT] = {rect.left_, rect.top_}; in MapRect()
320 p[RIGHT_TOP_POINT] = {rect.left_ + rect in MapRect()
[all...]
/foundation/window/window_manager_lite/services/wms/
H A Dlite_wm.cpp153 Rect& rect = cursorInfo_.rect; in UpdateMouseCursor() local
155 if (rect.GetLeft() == point.x && rect.GetTop() == point.y) { in UpdateMouseCursor()
159 AddUpdateRegion(rect); in UpdateMouseCursor()
160 rect.SetPosition(point.x, point.y); in UpdateMouseCursor()
188 UpdateWindowRegion(window, window->config_.rect); in Show()
198 UpdateWindowRegion(window, window->config_.rect); in Hide()
216 UpdateWindowRegion(winList_.Begin()->data_, node->data_->config_.rect); in RaiseToTop()
235 UpdateWindowRegion(winList_.Begin()->data_, node->data_->config_.rect); in LowerToBottom()
402 UpdateWindowRegion(const LiteWindow* window, const Rect& rect) UpdateWindowRegion() argument
452 AddUpdateRegion(const Rect& rect) AddUpdateRegion() argument
[all...]
/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_focus_test.cpp86 .rect = Utils::customAppRect_, in SetUp()
96 .rect = Utils::customAppRect_, in SetUp()
106 .rect = Utils::customAppRect_, in SetUp()
139 floatAppInfo_.rect = { 10, 200, 300, 400 }; in HWTEST_F()
147 floatAppInfo_.rect = { 250, 150, 300, 500 }; in HWTEST_F()
155 subAppInfo_.rect = { 400, 200, 100, 100 }; in HWTEST_F()
195 floatAppInfo_.rect = { 10, 200, 300, 400 }; in HWTEST_F()
204 subAppInfo_.rect = { 400, 200, 100, 100 }; in HWTEST_F()
232 floatAppInfo_.rect = { 10, 200, 300, 400 }; in HWTEST_F()
241 subAppInfo_.rect in HWTEST_F()
[all...]
/third_party/skia/src/core/
H A DSkRecordDraw.cpp107 DRAW(ClipRect, clipRect(r.rect, r.opAA.op(), r.opAA.aa()));
139 DRAW(DrawRect, drawRect(r.rect, r.paint));
146 DRAW(DrawAnnotation, drawAnnotation(r.rect, r.key.c_str(), r.value.get()));
149 r.rect, r.clip, r.aa, r.color, r.mode));
221 // Adjust rect for all paints that may affect its geometry, then map it to identity space.
222 Bounds adjustAndMap(SkRect rect, const SkPaint* paint) const { in adjustAndMap() argument
224 rect.sort(); in adjustAndMap()
226 // Adjust the rect for its own paint. in adjustAndMap()
227 if (!AdjustForPaint(paint, &rect)) { in adjustAndMap()
232 // Adjust rect fo in adjustAndMap()
399 SkRect rect = SkRect::Make(op.region.getBounds()); bounds() local
413 SkRect rect = SkRect::MakeXYWH(op.left, op.top, image->width(), image->height()); bounds() local
489 SkRect rect = SkRect::MakeEmpty(); bounds() local
507 AdjustForPaint(const SkPaint* paint, SkRect* rect) AdjustForPaint() argument
518 adjustForSaveLayerPaints(SkRect* rect, int savesToIgnore = 0) const adjustForSaveLayerPaints() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Drender_service_client_app_demo.cpp58 auto rect = window->GetRect(); in main() local
59 while (rect.width_ == 0 && rect.height_ == 0) { in main()
60 std::cout << "rs app demo create window failed: " << rect.width_ << " " << rect.height_ << std::endl; in main()
65 rect = window->GetRect(); in main()
67 std::cout << "rs app demo create window " << rect.width_ << " " << rect.height_ << std::endl; in main()
77 Init(rsUiDirector, rect.width_, rect in main()
[all...]
H A Drender_service_client_first_frame_callback_demo.cpp58 auto rect = window->GetRect(); in main() local
59 while (rect.width_ == 0 && rect.height_ == 0) { in main()
60 std::cout << "rs app demo create window failed: " << rect.width_ << " " << rect.height_ << std::endl; in main()
65 rect = window->GetRect(); in main()
67 std::cout << "rs app demo create window " << rect.width_ << " " << rect.height_ << std::endl; in main()
77 Init(rsUiDirector, rect.width_, rect in main()
[all...]
H A Drender_service_client_node_demo.cpp76 auto rect = window->GetRect(); in main() local
77 while (rect.width_ == 0 && rect.height_ == 0) { in main()
78 std::cout << "rs node demo create window failed: " << rect.width_ << " " << rect.height_ << std::endl; in main()
83 rect = window->GetRect(); in main()
85 std::cout << "rs node demo create window " << rect.width_ << " " << rect.height_ << std::endl; in main()
95 Init(rsUiDirector, rect.width_, rect in main()
[all...]
H A Drender_service_client_uni_render_demo.cpp92 auto rect = window->GetRect(); in main() local
93 while (rect.width_ == 0 && rect.height_ == 0) { in main()
94 std::cout << "rs uni render demo create window failed: " << rect.width_ << " " << rect.height_ << std::endl; in main()
99 rect = window->GetRect(); in main()
102 std::cout << "rs uni render demo create window " << rect.width_ << " " << rect.height_ << std::endl; in main()
116 Init(rsUiDirector, rect.width_, rect in main()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/unittest/ui/
H A Drs_canvas_drawing_node_test.cpp111 Drawing::Rect rect; in HWTEST_F() local
112 bool res = drawingNode->GetBitmap(bitmap, drawCmdList, &rect); in HWTEST_F()
118 drawingNode->GetBitmap(bitmap, drawCmdList, &rect); in HWTEST_F()
122 res = drawingNode->GetBitmap(bitmap, drawCmdList, &rect); in HWTEST_F()
138 Drawing::Rect rect; in HWTEST_F() local
139 bool res = drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect); in HWTEST_F()
143 drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect); in HWTEST_F()
147 res = drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect); in HWTEST_F()
152 drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect); in HWTEST_F()
156 res = drawingNode->GetPixelmap(pixelmap, drawCmdList, &rect); in HWTEST_F()
[all...]
/foundation/multimodalinput/input/frameworks/proxy/events/src/
H A Di_anco_consumer.cpp72 static bool MarshalRect(const Rect &rect, Parcel &parcel) in MarshalRect() argument
75 parcel.WriteInt32(rect.x) && in MarshalRect()
76 parcel.WriteInt32(rect.y) && in MarshalRect()
77 parcel.WriteInt32(rect.width) && in MarshalRect()
78 parcel.WriteInt32(rect.height) in MarshalRect()
82 static bool UnmarshalRect(Parcel &parcel, Rect &rect) in UnmarshalRect() argument
85 parcel.ReadInt32(rect.x) && in UnmarshalRect()
86 parcel.ReadInt32(rect.y) && in UnmarshalRect()
87 parcel.ReadInt32(rect.width) && in UnmarshalRect()
88 parcel.ReadInt32(rect in UnmarshalRect()
[all...]
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_rect.cpp22 bool dng_rect::operator== (const dng_rect &rect) const in operator ==()
25 return (rect.t == t) && in operator ==()
26 (rect.l == l) && in operator ==()
27 (rect.b == b) && in operator ==()
28 (rect.r == r); in operator ==()
43 bool dng_rect_real64::operator== (const dng_rect_real64 &rect) const in operator ==()
46 return (rect.t == t) && in operator ==()
47 (rect.l == l) && in operator ==()
48 (rect.b == b) && in operator ==()
49 (rect in operator ==()
[all...]

Completed in 20 milliseconds

12345678910>>...82