Searched defs:IRect16 (Results 1 – 1 of 1) sorted by relevance
39 struct IRect16 { struct42 [[nodiscard]] static IRect16 MakeEmpty() { in MakeEmpty() argument48 [[nodiscard]] static IRect16 MakeWH(int16_t w, int16_t h) { in MakeWH() argument54 [[nodiscard]] static IRect16 MakeXYWH(int16_t x, int16_t y, int16_t w, int16_t h) { in MakeXYWH() argument60 [[nodiscard]] static IRect16 Make(const SkIRect& ir) { in Make() argument66 int width() const { return fRight - fLeft; } in width()67 int height() const { return fBottom - fTop; } in height()68 int area() const { return this->width() * this->height(); } in area()69 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } in isEmpty()71 void setEmpty() { memset(this, 0, sizeof(*this)); } in setEmpty()[all …]