Lines Matching defs:GrIRect16
15 struct GrIRect16 { struct
18 static GrIRect16 SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument
24 static GrIRect16 SK_WARN_UNUSED_RESULT MakeWH(int16_t w, int16_t h) { in MakeWH() argument
30 static GrIRect16 SK_WARN_UNUSED_RESULT MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) { in MakeXYWH() argument
36 int width() const { return fRight - fLeft; } in width()
37 int height() const { return fBottom - fTop; } in height()
38 int area() const { return this->width() * this->height(); } in area()
39 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()
41 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty()
43 void set(int16_t left, int16_t top, int16_t right, int16_t bottom) { in set()
50 void set(const SkIRect& r) { in set()