• Home
  • Raw
  • Download

Lines Matching refs:SkIRect

11 #Struct SkIRect
13 SkIRect holds four 32 bit integer coordinates describing the upper and
14 lower bounds of a rectangle. SkIRect may be created from outer bounds or
15 from position, width, and height. SkIRect describes an area; if its right
72 #Method static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty()
84 SkIRect rect = SkIRect::MakeEmpty();
106 #Method static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h)
119 SkIRect rect1 = SkIRect::MakeWH(25, 35);
120 SkIRect rect2 = SkIRect::MakeSize({25, 35});
121 SkIRect rect3 = SkIRect::MakeXYWH(0, 0, 25, 35);
122 SkIRect rect4 = SkIRect::MakeLTRB(0, 0, 25, 35);
136 #Method static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size)
149 SkIRect rect = SkIRect::MakeSize(size.toRound());
151 rect = SkIRect::MakeSize(size.toFloor());
165 #Method static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, int32_t r, in…
180 SkIRect rect = SkIRect::MakeLTRB(5, 35, 15, 25);
198 #Method static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeXYWH(int32_t x, int32_t y, int32_t w, in…
217 SkIRect rect = SkIRect::MakeXYWH(5, 35, -15, 25);
247 SkIRect unsorted = { 15, 5, 10, 25 };
249 SkIRect sorted = unsorted.makeSorted();
272 SkIRect unsorted = { 15, 25, 10, 5 };
274 SkIRect sorted = unsorted.makeSorted();
297 SkIRect unsorted = { 15, 25, 10, 5 };
299 SkIRect sorted = unsorted.makeSorted();
322 SkIRect unsorted = { 15, 25, 10, 5 };
324 SkIRect sorted = unsorted.makeSorted();
347 SkIRect unsorted = { 15, 5, 10, 25 };
349 SkIRect sorted = unsorted.makeSorted();
372 SkIRect unsorted = { 15, 25, 10, 5 };
374 SkIRect sorted = unsorted.makeSorted();
397 SkIRect unsorted = { 15, 25, 10, 5 };
399 SkIRect large = { -2147483647, 1, 2147483644, 2 };
425 SkIRect large = { -2147483647, 1, 2147483644, 2 };
447 SkIRect unsorted = { 15, 25, 10, 20 };
449 SkIRect large = { 1, -2147483647, 2, 2147483644 };
475 SkIRect large = { 1, -2147483647, 2, 2147483644 };
497 auto debugster = [](const char* prefix, const SkIRect& rect) -> void {
503 SkIRect rect = {20, 30, 40, 50};
536 SkIRect tests[] = {{20, 30, 41, 51}, {-20, -30, -41, -51}, {-10, -10, 11, 11}};
565 SkIRect rect = { 0, 0, 2, 2 };
588 SkIRect tests[] = {{20, 40, 10, 50}, {20, 40, 20, 50}};
622 SkIRect tests[] = {{20, 40, 10, 50}, {20, 40, 20, 50}};
647 #Method bool operator==(const SkIRect& a, const SkIRect& b)
660 SkIRect test = {0, 0, 2, 2};
661 SkIRect sorted = test.makeSorted();
668 #SeeAlso operator!=(const SkIRect& a, const SkIRect& b)
674 #Method bool operator!=(const SkIRect& a, const SkIRect& b)
687 SkIRect test = {2, 2, 0, 0};
688 SkIRect sorted = test.makeSorted();
695 #SeeAlso operator==(const SkIRect& a, const SkIRect& b)
712 SkIRect tests[] = {{-32768, -32768, 32767, 32767}, {-32768, -32768, 32768, 32768}};
739 SkIRect rect = {3, 4, 1, 2};
770 SkIRect rect1 = {3, 4, 1, 2};
772 SkIRect rect2;
800 SkIRect rect1 = {3, 4, 1, 2};
802 SkIRect rect2;
833 SkIRect rect;
870 #Method SkIRect makeOffset(int32_t dx, int32_t dy) const
887 SkIRect rect = { 10, 50, 20, 60 };
905 #Method SkIRect makeInset(int32_t dx, int32_t dy) const
922 SkIRect rect = { 10, 50, 20, 60 };
940 #Method SkIRect makeOutset(int32_t dx, int32_t dy) const
957 SkIRect rect = { 10, 50, 20, 60 };
990 SkIRect rect = { 10, 14, 50, 73 };
1018 SkIRect rect = { 10, 14, 50, 73 };
1043 SkIRect rect = { 10, 14, 50, 73 };
1072 SkIRect rect = { 10, 14, 50, 73 };
1101 SkIRect rect = { 10, 14, 50, 73 };
1140 # # bool contains(const SkIRect& r) const ##
1142 # # bool intersect(const SkIRect& r) ##
1143 # # bool intersect(const SkIRect& a, const SkIRect& b) ##
1173 const SkIRect rect = {7, 11, 13, 17};
1175 const SkIRect tests[] = { {13, 11, 15, 17}, { 7, 7, 13, 11 }, { 12, 16, 14, 18 } };
1181 SkIRect::Intersects(rect, test) ? "true" : "false");
1220 SkIRect rect = { 30, 50, 40, 60 };
1257 SkIRect rect = { 30, 50, 40, 60 };
1258 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
1280 #Method bool contains(const SkIRect& r) const
1293 SkIRect rect = { 30, 50, 40, 60 };
1294 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
1327 SkIRect rect = { 30, 50, 40, 60 };
1369 SkIRect rect = { 30, 50, 40, 60 };
1370 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
1392 #Method bool containsNoEmptyCheck(const SkIRect& r) const
1405 SkIRect rect = { 30, 50, 40, 60 };
1406 SkIRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
1426 #Method bool intersect(const SkIRect& r)
1445 SkIRect leftRect = { 10, 40, 50, 80 };
1446 SkIRect rightRect = { 30, 60, 70, 90 };
1461 #Method bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& a, const SkIRect& b)
1475 SkIRect result;
1490 #Method bool SK_WARN_UNUSED_RESULT intersectNoEmptyCheck(const SkIRect& a, const SkIRect& b)
1505 SkIRect result;
1544 SkIRect leftRect = { 10, 40, 50, 80 };
1559 #Method static bool Intersects(const SkIRect& a, const SkIRect& b)
1572 … SkDebugf("%s intersection", SkIRect::Intersects({10, 40, 50, 80}, {30, 60, 70, 90}) ? "" : "no ");
1584 #Method static bool IntersectsNoEmptyCheck(const SkIRect& a, const SkIRect& b)
1597 SkDebugf("%s intersection", SkIRect::IntersectsNoEmptyCheck(
1629 SkIRect rect = { 10, 20, 15, 25};
1643 #Method void join(const SkIRect& r)
1652 SkIRect rect = { 10, 20, 15, 25};
1674 SkIRect rect = { 30, 50, 20, 10 };
1690 #Method SkIRect makeSorted() const
1700 SkIRect rect = { 30, 50, 20, 10 };
1702 SkIRect sort = rect.makeSorted();
1716 #Method static const SkIRect& SK_WARN_UNUSED_RESULT EmptyIRect()
1724 const SkIRect& rect = SkIRect::EmptyIRect();
1735 #Method static SkIRect SK_WARN_UNUSED_RESULT MakeLargest()
1741 Returns constructed SkIRect setting left and top to most negative value, and
1748 #Struct SkIRect ##