• Home
  • Raw
  • Download

Lines Matching refs:SkRect

5 #Struct SkRect
11 SkRect holds four SkScalar coordinates describing the upper and
12 lower bounds of a rectangle. SkRect may be created from outer bounds or
13 from position, width, and height. SkRect describes an area; if its right
18 SkRect can be constructed from int values to avoid compiler warnings that
47 #Method static constexpr SkRect MakeEmpty()
54 SkRect rect = SkRect::MakeEmpty();
76 #Method static constexpr SkRect MakeWH(SkScalar w, SkScalar h)
83 SkRect rect1 = SkRect::MakeWH(25, 35);
84 SkRect rect2 = SkRect::MakeIWH(25, 35);
85 SkRect rect3 = SkRect::MakeXYWH(0, 0, 25, 35);
86 SkRect rect4 = SkRect::MakeLTRB(0, 0, 25, 35);
100 #Method static SkRect MakeIWH(int w, int h)
108 SkRect f_rect = SkRect::MakeIWH(25, 35);
111 f_rect = SkRect::MakeIWH(125000111, 0);
125 #Method static constexpr SkRect MakeSize(const SkSize& size)
133 SkRect rect = SkRect::MakeSize(size);
136 rect = SkRect::MakeSize(SkSize::Make(floor));
150 #Method static constexpr SkRect MakeLTRB(SkScalar l, SkScalar t, SkScalar r,
157 SkRect rect = SkRect::MakeLTRB(5, 35, 15, 25);
175 #Method static constexpr SkRect MakeXYWH(SkScalar x, SkScalar y, SkScalar w, SkScalar h)
190 SkRect rect = SkRect::MakeXYWH(5, 35, -15, 25);
208 #Method static SkRect Make(const SkISize& size)
215 SkRect rect1 = SkRect::MakeSize({2, 35});
216 SkRect rect2 = SkRect::MakeIWH(2, 35);
223 #SeeAlso MakeWH MakeXYWH SkRect::MakeIWH SkIRect::MakeSize
229 #Method static SkRect Make(const SkIRect& irect)
236 SkRect f_rect = SkRect::Make(i_rect1);
259 SkRect tests[] = {{20, 40, 10, 50}, {20, 40, 20, 50}};
288 SkRect tests[] = {{20, 40, 10, 50}, {20, 40, 20, 50}};
317 SkRect largest = { SK_ScalarMin, SK_ScalarMin, SK_ScalarMax, SK_ScalarMax };
320 SkRect widest = SkRect::MakeWH(largest.width(), largest.height());
342 SkRect unsorted = { 15, 5, 10, 25 };
344 SkRect sorted = unsorted.makeSorted();
365 SkRect unsorted = { 15, 25, 10, 5 };
367 SkRect sorted = unsorted.makeSorted();
388 SkRect unsorted = { 15, 5, 10, 25 };
390 SkRect sorted = unsorted.makeSorted();
411 SkRect unsorted = { 15, 25, 10, 5 };
413 SkRect sorted = unsorted.makeSorted();
434 SkRect unsorted = { 15, 25, 10, 5 };
436 SkRect sorted = unsorted.makeSorted();
457 SkRect unsorted = { 15, 25, 10, 5 };
459 SkRect sorted = unsorted.makeSorted();
483 SkRect unsorted = { 15, 25, 10, 5 };
485 SkRect large = { -2147483647.f, 1, 2147483644.f, 2 };
509 SkRect unsorted = { 15, 25, 10, 20 };
511 SkRect large = { 1, -2147483647.f, 2, 2147483644.f };
532 SkRect tests[] = {{20, 30, 41, 51}, {-20, -30, -41, -51}};
559 SkRect rect = { 2e+38, 2e+38, 3e+38, 3e+38 };
577 #Method bool operator==(const SkRect& a, const SkRect& b)
584 auto debugster = [](const SkRect& test) -> void {
585 SkRect negZero = {-0.0f, -0.0f, 2, 2};
594 SkRect tests[] = {{0, 0, 2, 2}, {-0, -0, 2, 2}, {0.0f, 0.0f, 2, 2}};
607 #SeeAlso operator!=(const SkRect& a, const SkRect& b)
613 #Method bool operator!=(const SkRect& a, const SkRect& b)
620 SkRect test = {0, 0, 2, SK_ScalarNaN};
627 #SeeAlso operator==(const SkRect& a, const SkRect& b)
645 SkRect rect = {1, 2, 3, 4};
675 SkRect rect;
709 SkRect rect;
747 SkRect rect;
771 SkRect rect = {3, 4, 1, 2};
798 SkRect f_rect;
819 SkRect rect1 = {3, 4, 1, 2};
821 SkRect rect2;
843 SkRect rect1 = {3, 4, 1, 2};
845 SkRect rect2;
868 SkRect rect;
904 SkRect rect;
930 SkRect rect;
956 SkRect rect;
987 SkRect rect1 = {3, 4, 1, 2};
989 SkRect rect2;
1011 SkRect rect1 = {0, 0, 1, 2};
1013 SkRect rect2;
1033 #Method SkRect makeOffset(SkScalar dx, SkScalar dy) const
1040 SkRect rect = { 10, 50, 20, 60 };
1058 #Method SkRect makeInset(SkScalar dx, SkScalar dy) const
1065 SkRect rect = { 10, 50, 20, 60 };
1083 #Method SkRect makeOutset(SkScalar dx, SkScalar dy) const
1090 SkRect rect = { 10, 50, 20, 60 };
1115 SkRect rect = { 10, 14, 50, 73 };
1135 SkRect rect = { 10, 14, 50, 73 };
1156 SkRect rect = { 10, 14, 50, 73 };
1177 SkRect rect = { 10, 14, 50, 73 };
1198 SkRect rect = { 10, 14, 50, 73 };
1233 SkRect rect = { 30, 50, 40, 60 };
1254 #Method bool contains(const SkRect& r) const
1260 SkRect rect = { 30, 50, 40, 60 };
1261 SkRect tests[] = { { 30, 50, 31, 51}, { 39, 49, 40, 50}, { 29, 59, 30, 60} };
1287 SkRect rect = { 30, 50, 40, 60 };
1308 #Method bool intersect(const SkRect& r)
1320 SkRect leftRect = { 10, 40, 50, 80 };
1321 SkRect rightRect = { 30, 60, 70, 90 };
1347 SkRect leftRect = { 10, 40, 50, 80 };
1362 #Method bool intersect(const SkRect& a, const SkRect& b)
1368 SkRect result;
1390 SkRect rect = { 10, 40, 50, 80 };
1403 #Method bool intersects(const SkRect& r) const
1409 SkRect rect = { 10, 40, 50, 80 };
1422 #Method static bool Intersects(const SkRect& a, const SkRect& b)
1429 … SkDebugf("%s intersection", SkRect::Intersects({10, 40, 50, 80}, {30, 60, 70, 90}) ? "" : "no ");
1453 SkRect rect = { 10, 20, 15, 25};
1467 #Method void join(const SkRect& r)
1473 SkRect rect = { 10, 20, 15, 25};
1487 #Method void joinNonEmptyArg(const SkRect& r)
1497 SkRect rect = { 10, 100, 15, 0};
1498 SkRect sorted = rect.makeSorted();
1499 SkRect toJoin = { 50, 60, 55, 65 };
1516 #Method void joinPossiblyEmptyRect(const SkRect& r)
1526 SkRect rect = { 10, 100, 15, 0};
1527 SkRect sorted = rect.makeSorted();
1528 SkRect toJoin = { 50, 60, 55, 65 };
1559 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f };
1586 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f };
1601 #Method void roundOut(SkRect* dst) const
1612 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f };
1613 SkRect round;
1639 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f };
1664 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f };
1689 SkRect rect = { 30.5f, 50.5f, 40.5f, 60.5f };
1715 SkRect rect = { 30.5f, 50.5f, 20.5f, 10.5f };
1731 #Method SkRect makeSorted() const
1739 SkRect rect = { 30.5f, 50.5f, 20.5f, 10.5f };
1741 SkRect sort = rect.makeSorted();
1763 SkRect rect = {7, 11, 13, 17};
1782 SkRect rect = {20, 30, 40, 50};
1788 SkRect::MakeLTRB(20, 30, 40, 50);
1790 SkRect::MakeLTRB(SkBits2Float(0x41a00000), /* 20.000000 */
1807 SkRect rect = {6.f / 7, 2.f / 3, 26.f / 10, 42.f / 6};
1809 SkRect copy = SkRect::MakeLTRB(0.857143f, 0.666667f, 2.6f, 7);
1812 SkRect::MakeLTRB(0.857143f, 0.666667f, 2.6f, 7);
1836 SkRect rect = {6.f / 7, 2.f / 3, 26.f / 10, 42.f / 6};
1838 SkRect copy = SkRect::MakeLTRB(SkBits2Float(0x3f5b6db7), /* 0.857143 */
1844 SkRect::MakeLTRB(SkBits2Float(0x3f5b6db7), /* 0.857143 */
1856 #Struct SkRect ##