Lines Matching refs:SkIRect
37 struct SK_API SkIRect { struct
50 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
51 return SkIRect{0, 0, 0, 0}; in MakeEmpty()
61 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
62 return SkIRect{0, 0, w, h}; in MakeWH()
71 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
72 return SkIRect{0, 0, size.fWidth, size.fHeight}; in MakeSize()
84 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, in MakeLTRB() argument
86 return SkIRect{l, t, r, b}; in MakeLTRB()
98 static constexpr SkIRect SK_WARN_UNUSED_RESULT MakeXYWH(int32_t x, int32_t y, in MakeXYWH() argument
214 friend bool operator==(const SkIRect& a, const SkIRect& b) {
225 friend bool operator!=(const SkIRect& a, const SkIRect& b) {
292 SkIRect makeOffset(int32_t dx, int32_t dy) const { in makeOffset() argument
310 SkIRect makeInset(int32_t dx, int32_t dy) const { in makeInset() argument
328 SkIRect makeOutset(int32_t dx, int32_t dy) const { in makeOutset() argument
471 bool contains(const SkIRect& r) const { in contains() argument
518 bool containsNoEmptyCheck(const SkIRect& r) const { in containsNoEmptyCheck() argument
530 bool intersect(const SkIRect& r) { in intersect() argument
543 bool SK_WARN_UNUSED_RESULT intersectNoEmptyCheck(const SkIRect& a, const SkIRect& b) { in intersectNoEmptyCheck() argument
545 SkIRect r = { in intersectNoEmptyCheck()
567 bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& a, const SkIRect& b) { in intersect() argument
599 static bool Intersects(const SkIRect& a, const SkIRect& b) { in Intersects() argument
600 SkIRect dummy; in Intersects()
611 static bool IntersectsNoEmptyCheck(const SkIRect& a, const SkIRect& b) { in IntersectsNoEmptyCheck() argument
612 SkIRect dummy; in IntersectsNoEmptyCheck()
637 void join(const SkIRect& r) { in join() argument
661 SkIRect makeSorted() const { in makeSorted() argument
670 static const SkIRect& SK_WARN_UNUSED_RESULT EmptyIRect() { in EmptyIRect() argument
671 static const SkIRect gEmpty = { 0, 0, 0, 0 }; in EmptyIRect()
785 static SkRect SK_WARN_UNUSED_RESULT Make(const SkIRect& irect) { in Make()
960 void set(const SkIRect& src) { in set()
1416 bool contains(const SkIRect& r) const { in contains()
1429 void round(SkIRect* dst) const { in round()
1442 void roundOut(SkIRect* dst) const { in roundOut()
1469 void roundIn(SkIRect* dst) const { in roundIn()
1481 SkIRect round() const { in round()
1482 SkIRect ir; in round()
1494 SkIRect roundOut() const { in roundOut()
1495 SkIRect ir; in roundOut()
1557 inline bool SkIRect::contains(const SkRect& r) const { in contains()