Lines Matching defs:SkIRect

20 struct SK_API SkIRect {  struct
23 static SkIRect SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
29 static SkIRect SK_WARN_UNUSED_RESULT MakeLargest() { in MakeLargest() argument
35 static SkIRect SK_WARN_UNUSED_RESULT MakeWH(int32_t w, int32_t h) { in MakeWH() argument
41 static SkIRect SK_WARN_UNUSED_RESULT MakeSize(const SkISize& size) { in MakeSize() argument
47 static SkIRect SK_WARN_UNUSED_RESULT MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b) { in MakeLTRB() argument
53 static SkIRect SK_WARN_UNUSED_RESULT MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h) { in MakeXYWH() argument
59 int left() const { return fLeft; } in left()
60 int top() const { return fTop; } in top()
61 int right() const { return fRight; } in right()
62 int bottom() const { return fBottom; } in bottom()
65 int x() const { return fLeft; } in x()
67 int y() const { return fTop; } in y()
72 int width() const { return fRight - fLeft; } in width()
78 int height() const { return fBottom - fTop; } in height()
80 SkISize size() const { return SkISize::Make(this->width(), this->height()); } in size()
110 friend bool operator==(const SkIRect& a, const SkIRect& b) { argument
118 bool is16Bit() const { in is16Bit()
125 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty()
127 void set(int32_t left, int32_t top, int32_t right, int32_t bottom) { in set()
134 void setLTRB(int32_t left, int32_t top, int32_t right, int32_t bottom) { in setLTRB()
138 void setXYWH(int32_t x, int32_t y, int32_t width, int32_t height) { in setXYWH()
165 SkIRect makeOffset(int32_t dx, int32_t dy) const { in makeOffset() argument
172 SkIRect makeInset(int32_t dx, int32_t dy) const { in makeInset() argument
179 SkIRect makeOutset(int32_t dx, int32_t dy) const { in makeOutset() argument
186 void offset(int32_t dx, int32_t dy) { in offset()
193 void offset(const SkIPoint& delta) { in offset()
200 void offsetTo(int32_t newX, int32_t newY) { in offsetTo()
211 void inset(int32_t dx, int32_t dy) { in inset()
223 void outset(int32_t dx, int32_t dy) { this->inset(-dx, -dy); } in outset()
225 bool quickReject(int l, int t, int r, int b) const { in quickReject()
250 bool contains(const SkIRect& r) const { in contains() argument
275 bool containsNoEmptyCheck(const SkIRect& r) const { in containsNoEmptyCheck() argument
283 bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& r) { in intersect() argument
291 bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& a, const SkIRect& b) { in intersect() argument
311 bool SK_WARN_UNUSED_RESULT intersectNoEmptyCheck(const SkIRect& a, const SkIRect& b) { in intersectNoEmptyCheck() argument
345 static bool Intersects(const SkIRect& a, const SkIRect& b) { in Intersects() argument
354 static bool IntersectsNoEmptyCheck(const SkIRect& a, const SkIRect& b) { in IntersectsNoEmptyCheck() argument
371 void join(const SkIRect& r) { in join() argument
382 static const SkIRect& SK_WARN_UNUSED_RESULT EmptyIRect() { in EmptyIRect() argument