Home
last modified time | relevance | path

Searched refs:rect1 (Results 1 – 24 of 24) sorted by relevance

/foundation/graphic/graphic_utils_lite/test/
Drect_unit_test.cpp75 Rect* rect1 = new Rect(); variable
76 if (rect1 == nullptr) {
80 rect1->SetRect(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);
81 rect_->operator=(*rect1);
88 delete rect1;
429 Rect* rect1 = new Rect(TEST_VALUE, TEST_VALUE, MAX_VALUE, MAX_VALUE); variable
430 if (rect1 == nullptr) {
436 delete rect1;
442 delete rect1;
448 EXPECT_EQ(rect1->Intersect(*rect1, *rect2), true);
[all …]
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/
Dpen_test.cpp41 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenColor() local
45 canvas.AttachPen(pen).DrawRect(rect1); in TestPenColor()
47 Rect rect2(rect1.GetLeft() + margin, rect1.GetTop() + margin, in TestPenColor()
48 rect1.GetRight() - margin, rect1.GetBottom() - margin); in TestPenColor()
73 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenAlpha() local
77 canvas.AttachPen(pen).DrawRect(rect1); in TestPenAlpha()
79 Rect rect2(rect1.GetLeft() + margin, rect1.GetTop() + margin, in TestPenAlpha()
80 rect1.GetRight() - margin, rect1.GetBottom() - margin); in TestPenAlpha()
99 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenWidth() local
102 canvas.AttachPen(pen).DrawRect(rect1); in TestPenWidth()
[all …]
Dpath_test.cpp404 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle() local
407 path.AddRect(rect1); in TestFillStyle()
427 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle2() local
430 path.AddRect(rect1); in TestFillStyle2()
450 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle3() local
453 path.AddRect(rect1); in TestFillStyle3()
473 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle4() local
476 path.AddRect(rect1); in TestFillStyle4()
/foundation/window/window_manager/window_scene/common/include/
Dsession_helper.h27 static WSRect GetOverlap(const WSRect& rect1, const WSRect& rect2, int offsetX, int offsetY) in GetOverlap() argument
29 int32_t x_begin = std::max(rect1.posX_, rect2.posX_); in GetOverlap()
30 int32_t x_end = std::min(rect1.posX_ + static_cast<int32_t>(rect1.width_), in GetOverlap()
32 int32_t y_begin = std::max(rect1.posY_, rect2.posY_); in GetOverlap()
33 int32_t y_end = std::min(rect1.posY_ + static_cast<int32_t>(rect1.height_), in GetOverlap()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/
Drs_region_test.cpp48 Occlusion::Rect rect1 { 0, 0, 100, 100 }; variable
49 Occlusion::Region resgion1 { rect1 };
67 Occlusion::Rect rect1 { 0, 0, 100, 100 }; variable
68 Occlusion::Region resgion1 { rect1 };
86 Occlusion::Rect rect1 { 0, 0, 100, 100 }; variable
87 Occlusion::Region resgion1 { rect1 };
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
Drect.h338 bool Intersect(const CommonRect<T>& rect1, const CommonRect<T>& rect2) in Intersect() argument
341 left_ = MATH_MAX(rect1.left_, rect2.left_); in Intersect()
342 top_ = MATH_MAX(rect1.top_, rect2.top_); in Intersect()
343 right_ = MATH_MIN(rect1.right_, rect2.right_); in Intersect()
344 bottom_ = MATH_MIN(rect1.bottom_, rect2.bottom_); in Intersect()
359 void Join(const CommonRect<T>& rect1, const CommonRect<T>& rect2) in Join() argument
361 left_ = MATH_MIN(rect1.left_, rect2.left_); in Join()
362 top_ = MATH_MIN(rect1.top_, rect2.top_); in Join()
363 right_ = MATH_MAX(rect1.right_, rect2.right_); in Join()
364 bottom_ = MATH_MAX(rect1.bottom_, rect2.bottom_); in Join()
/foundation/window/window_manager/utils/test/unittest/
Dwindow_helper_test.cpp102 Rect rect1 = {0, 0, 1, 1}; variable
103 ASSERT_EQ(false, WindowHelper::IsEmptyRect(rect1));
138 Rect rect1 { 0, 0, 10, 10 }, rect2 { 100, 100, 200, 200 }; variable
139 PointInfo point = WindowHelper::CalculateOriginPosition(rect1, rect2, PointInfo { 200, 200 });
236 Rect rect1 { 0, 0, 300, 400 }; variable
237 TransformHelper::Vector3 pivotPos1 = { rect1.posX_ + transform1.pivotX_ * rect1.width_,
238 rect1.posY_ + transform1.pivotY_ * rect1.height_, 0 };
243 Rect rect2 = WindowHelper::TransformRect(mat1, rect1);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
Dpixel_map_test.cpp448 Rect rect1; variable
449 rect1.left = 0;
450 rect1.top = 0;
451 rect1.height = 1;
452 rect1.width = 2;
454 auto ret = pixelMap1->ReadPixels(bufferSize1, offset1, stride1, rect1, dst1);
460 ret = pixelMap1->ReadPixels(bufferSize2, offset1, stride1, rect1, dst2);
504 Rect rect1; variable
505 rect1.left = 0;
506 rect1.top = 0;
[all …]
/foundation/arkui/ui_lite/frameworks/dock/
Dfocus_manager.cpp105 bool FocusManager::IsAtSameCol(const Rect& rect1, const Rect& rect2) in IsAtSameCol() argument
107 return ((rect1.GetLeft() < rect2.GetRight()) && (rect1.GetRight() > rect2.GetLeft())); in IsAtSameCol()
110 bool FocusManager::IsAtSameRow(const Rect& rect1, const Rect& rect2) in IsAtSameRow() argument
112 return ((rect1.GetBottom() < rect2.GetTop()) && (rect1.GetTop() > rect2.GetBottom())); in IsAtSameRow()
/foundation/arkui/ui_lite/interfaces/innerkits/dock/
Dfocus_manager.h95 bool IsAtSameCol(const Rect& rect1, const Rect& rect2);
96 bool IsAtSameRow(const Rect& rect1, const Rect& rect2);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/
Dround_rect_test.cpp144 Rect rect1; variable
145 roundRect->SetRect(rect1);
147 EXPECT_EQ(rect2, rect1);
/foundation/graphic/graphic_2d/rosen/samples/texgine/feature_test/
Dintrinsic_width_test.cpp101 … auto rect1 = TexgineRect::MakeXYWH(x, y, tyData.typography->GetMaxIntrinsicWidth(), 10); in Layout() local
102 canvas.DrawRect(rect1, paint); in Layout()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/systemtest/pipeline/
Drs_uni_render_test.cpp169 auto rect1 = window1->GetRect(); variable
180 Init(rsUiDirector1, rect1.width_, rect1.height_);
/foundation/window/window_manager/wmserver/test/unittest/
Dwindow_node_test.cpp287 Rect rect1 = {0, 0, 0, 0}; variable
288 windowNode->SetEntireWindowPointerHotArea(rect1);
315 Rect rect1 = {0, 0, 0, 0}; variable
316 windowNode->SetWindowRect(rect1);
365 Rect rect1 = { 0, 0, 0, 0 }; variable
366 windowNode->SetRequestRect(rect1);
688 Rect rect1 = { 10, 10, 10, 10 }; variable
689 testRects.push_back(rect1);
695 ASSERT_EQ(rect1, resultRect[0]);
714 Rect rect1 = { 10, 10, 10, 10 }; variable
[all …]
Ddisplay_group_info_test.cpp236 Rect rect1 = {3, 3, 3, 3}; variable
237 displayGroupInfo_->SetDisplayRect(displayId, rect1);
Dwindow_pair_test.cpp361 Rect rect1 = {1, 1, 10, 20}; variable
363 property2->SetWindowRect(rect1);
391 Rect rect1 = {1, 1, 10, 20}; variable
392 property2->SetWindowRect(rect1);
/foundation/window/window_manager/utils/include/
Dwindow_helper.h160 … static Rect GetOverlap(const Rect& rect1, const Rect& rect2, const int offsetX, const int offsetY) in GetOverlap() argument
162 int32_t x_begin = std::max(rect1.posX_, rect2.posX_); in GetOverlap()
163 int32_t x_end = std::min(rect1.posX_ + static_cast<int32_t>(rect1.width_), in GetOverlap()
165 int32_t y_begin = std::max(rect1.posY_, rect2.posY_); in GetOverlap()
166 int32_t y_end = std::min(rect1.posY_ + static_cast<int32_t>(rect1.height_), in GetOverlap()
/foundation/graphic/graphic_2d/rosen/samples/texgine/
Dtexgine_sample.cpp88 …TexgineRect rect1 = TexgineRect::MakeXYWH(x, y, typography->GetMaxWidth(), typography->GetHeight()… in Draw() local
89 texgineCanvas.DrawRect(rect1, g_borderPaint); in Draw()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/
Dhdi_layer.cpp28 bool Compare(const GraphicIRect& rect1, const GraphicIRect& rect2) in Compare() argument
30 return rect1.x == rect2.x && rect1.y == rect2.y && rect1.w == rect2.w && rect1.h == rect2.h; in Compare()
/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/
Ddrawable_descriptor.cpp263 auto rect1 = SkRect::MakeXYWH(x, y, static_cast<float>(width), static_cast<float>(width)); in DrawOntoCanvas() local
266 canvas.drawImageRect(SkImage::MakeFromBitmap(*bitMap), rect1, rect2, &paint); in DrawOntoCanvas()
269 …SkImage::MakeFromBitmap(*bitMap), rect1, rect2, SkSamplingOptions(), &paint, SkCanvas::kFast_SrcRe… in DrawOntoCanvas()
/foundation/window/window_manager/wm/test/unittest/
Dwindow_impl_test.cpp1699 Rect rect1 { 10, 10, 10, 10 }; variable
1701 CreateStretchableWindow(window, rect1);
1708 ASSERT_EQ(window->GetWindowProperty()->GetOriginRect(), rect1);
1721 Rect rect1 { 10, 10, 10, 10 }; variable
1723 CreateStretchableWindow(window, rect1);
1727 ASSERT_EQ(window->GetWindowProperty()->GetOriginRect(), rect1);
1739 Rect rect1 { 10, 10, 10, 10 }; variable
1741 CreateStretchableWindow(window, rect1);
1745 ASSERT_EQ(window->GetWindowProperty()->GetOriginRect(), rect1);
1757 Rect rect1 { 10, 10, 10, 10 }; variable
[all …]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/draw/
Dcanvas_test.cpp220 Rect rect1(0.0f, 0.0f, 10.0f, 20.0f); variable
221 RoundRect roundRect1(rect1, 1.0f, 1.0f);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/recording/
Drecording_canvas_test.cpp125 Rect rect1(0.0f, 0.0f, 10.0f, 20.0f); variable
126 RoundRect roundRect1(rect1, 1.0f, 1.0f);
/foundation/arkui/ace_engine/frameworks/core/components_ng/test/pattern/slider/
Dslider_pattern_test_ng.cpp2750 auto rect1 = sliderContentModifier->GetBoundsRect(); variable
2751 EXPECT_EQ(rect1->Width(), 130.0f);
2752 EXPECT_EQ(rect1->Height(), 60.0f);