Searched defs:GrIRect16 (Results 1 – 1 of 1) sorted by relevance
14 struct GrIRect16 { struct17 static GrIRect16 SK_WARN_UNUSED_RESULT MakeEmpty() { in MakeEmpty() argument23 static GrIRect16 SK_WARN_UNUSED_RESULT MakeWH(int16_t w, int16_t h) { in MakeWH() argument29 static GrIRect16 SK_WARN_UNUSED_RESULT MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) { in MakeXYWH() argument35 int width() const { return fRight - fLeft; } in width()36 int height() const { return fBottom - fTop; } in height()37 int area() const { return this->width() * this->height(); } in area()38 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()40 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty()42 void set(int16_t left, int16_t top, int16_t right, int16_t bottom) { in set()[all …]