• Home
  • Raw
  • Download

Lines Matching refs:SkIRect

5 #Struct SkIRect
11 SkIRect holds four 32-bit integer coordinates describing the upper and
12 lower bounds of a rectangle. SkIRect may be created from outer bounds or
13 from position, width, and height. SkIRect describes an area; if its right
43 #Method static constexpr SkIRect MakeEmpty()
50 SkIRect rect = SkIRect::MakeEmpty();
72 #Method static constexpr SkIRect MakeWH(int32_t w, int32_t h)
79 SkIRect rect1 = SkIRect::MakeWH(25, 35);
80 SkIRect rect2 = SkIRect::MakeSize({25, 35});
81 SkIRect rect3 = SkIRect::MakeXYWH(0, 0, 25, 35);
82 SkIRect rect4 = SkIRect::MakeLTRB(0, 0, 25, 35);
96 #Method static constexpr SkIRect MakeSize(const SkISize& size)
104 SkIRect rect = SkIRect::MakeSize(size.toRound());
106 rect = SkIRect::MakeSize(size.toFloor());
120 #Method static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
127 SkIRect rect = SkIRect::MakeLTRB(5, 35, 15, 25);
145 #Method static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
153 SkIRect rect = SkIRect::MakeXYWH(5, 35, -15, 25);
182 SkIRect unsorted = { 15, 5, 10, 25 };
184 SkIRect sorted = unsorted.makeSorted();
205 SkIRect unsorted = { 15, 25, 10, 5 };
207 SkIRect sorted = unsorted.makeSorted();
228 SkIRect unsorted = { 15, 25, 10, 5 };
230 SkIRect sorted = unsorted.makeSorted();
251 SkIRect unsorted = { 15, 25, 10, 5 };
253 SkIRect sorted = unsorted.makeSorted();
274 SkIRect unsorted = { 15, 5, 10, 25 };
276 SkIRect sorted = unsorted.makeSorted();
297 SkIRect unsorted = { 15, 25, 10, 5 };
299 SkIRect sorted = unsorted.makeSorted();
320 SkIRect unsorted = { 15, 25, 10, 5 };
322 SkIRect large = { -2147483647, 1, 2147483644, 2 };
343 SkIRect large = { -2147483647, 1, 2147483644, 2 };
363 SkIRect unsorted = { 15, 25, 10, 20 };
365 SkIRect large = { 1, -2147483647, 2, 2147483644 };
386 SkIRect large = { 1, -2147483647, 2, 2147483644 };
406 auto debugster = [](const char* prefix, const SkIRect& rect) -> void {
412 SkIRect rect = {20, 30, 40, 50};
438 SkIRect tests[] = {{20, 40, 10, 50}, {20, 40, 20, 50}};
467 SkIRect tests[] = {{20, 40, 10, 50}, {20, 40, 20, 50}};
491 #Method bool operator==(const SkIRect& a, const SkIRect& b)
498 SkIRect test = {0, 0, 2, 2};
499 SkIRect sorted = test.makeSorted();
506 #SeeAlso operator!=(const SkIRect& a, const SkIRect& b)
512 #Method bool operator!=(const SkIRect& a, const SkIRect& b)
519 SkIRect test = {2, 2, 0, 0};
520 SkIRect sorted = test.makeSorted();
527 #SeeAlso operator==(const SkIRect& a, const SkIRect& b)
546 SkIRect rect = {3, 4, 1, 2};
571 SkIRect rect1 = {3, 4, 1, 2};
573 SkIRect rect2;
595 SkIRect rect1 = {3, 4, 1, 2};
597 SkIRect rect2;
625 SkIRect rect;
647 #Method SkIRect makeOffset(int32_t dx, int32_t dy) const
654 SkIRect rect = { 10, 50, 20, 60 };
672 #Method SkIRect makeInset(int32_t dx, int32_t dy) const
679 SkIRect rect = { 10, 50, 20, 60 };
697 #Method SkIRect makeOutset(int32_t dx, int32_t dy) const
704 SkIRect rect = { 10, 50, 20, 60 };
729 SkIRect rect = { 10, 14, 50, 73 };
749 SkIRect rect = { 10, 14, 50, 73 };
770 SkIRect rect = { 10, 14, 50, 73 };
791 SkIRect rect = { 10, 14, 50, 73 };
812 SkIRect rect = { 10, 14, 50, 73 };
831 SkIRect::isEmpty() returns false. The intersection of IRect pair can be described by:
847 SkIRect rect = { 8, 11, 19, 22 };
877 SkIRect rect = { 30, 50, 40, 60 };
903 SkIRect rect = { 30, 50, 40, 60 };
904 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
926 #Method bool contains(const SkIRect& r) const
932 SkIRect rect = { 30, 50, 40, 60 };
933 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
959 SkIRect rect = { 30, 50, 40, 60 };
987 SkIRect rect = { 30, 50, 40, 60 };
988 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
1010 #Method bool containsNoEmptyCheck(const SkIRect& r) const
1016 SkIRect rect = { 30, 50, 40, 60 };
1017 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
1037 #Method bool intersect(const SkIRect& r)
1049 SkIRect leftRect = { 10, 40, 50, 80 };
1050 SkIRect rightRect = { 30, 60, 70, 90 };
1065 #Method bool intersect(const SkIRect& a, const SkIRect& b)
1071 SkIRect result;
1086 #Method bool intersectNoEmptyCheck(const SkIRect& a, const SkIRect& b)
1093 SkIRect result;
1120 SkIRect leftRect = { 10, 40, 50, 80 };
1135 #Method static bool Intersects(const SkIRect& a, const SkIRect& b)
1142 … SkDebugf("%s intersection", SkIRect::Intersects({10, 40, 50, 80}, {30, 60, 70, 90}) ? "" : "no ");
1154 #Method static bool IntersectsNoEmptyCheck(const SkIRect& a, const SkIRect& b)
1161 SkDebugf("%s intersection", SkIRect::IntersectsNoEmptyCheck(
1187 SkIRect rect = { 10, 20, 15, 25};
1201 #Method void join(const SkIRect& r)
1207 SkIRect rect = { 10, 20, 15, 25};
1232 SkIRect rect = { 30, 50, 20, 10 };
1248 #Method SkIRect makeSorted() const
1256 SkIRect rect = { 30, 50, 20, 10 };
1258 SkIRect sort = rect.makeSorted();
1272 #Method static const SkIRect& EmptyIRect()
1279 const SkIRect& rect = SkIRect::EmptyIRect();
1290 #Struct SkIRect ##