19 static constexpr
SkISize Make(int32_t w, int32_t h) {
return {w, h}; }
23 void set(int32_t w, int32_t h) { *
this =
SkISize{w, h}; }
#define SkScalarRoundToInt(x)
Definition: SkScalar.h:35
#define SkScalarCeilToInt(x)
Definition: SkScalar.h:34
#define SkIntToScalar(x)
Definition: SkScalar.h:55
#define SkScalarFloorToInt(x)
Definition: SkScalar.h:33
float SkScalar
Definition: SkScalar.h:14
static bool operator!=(const SkISize &a, const SkISize &b)
Definition: SkSize.h:47
static bool operator==(const SkISize &a, const SkISize &b)
Definition: SkSize.h:43
static constexpr SkISize MakeEmpty()
Definition: SkSize.h:21
bool equals(int32_t w, int32_t h) const
Definition: SkSize.h:40
bool isEmpty() const
Returns true if either width or height are <= 0.
Definition: SkSize.h:30
static constexpr SkISize Make(int32_t w, int32_t h)
Definition: SkSize.h:19
int32_t fHeight
Definition: SkSize.h:17
void setEmpty()
Set the width and height to 0.
Definition: SkSize.h:33
int32_t fWidth
Definition: SkSize.h:16
constexpr int32_t width() const
Definition: SkSize.h:35
void set(int32_t w, int32_t h)
Definition: SkSize.h:23
constexpr int32_t height() const
Definition: SkSize.h:36
bool isZero() const
Returns true iff fWidth == 0 && fHeight == 0.
Definition: SkSize.h:27
constexpr int64_t area() const
Definition: SkSize.h:38
static constexpr SkSize Make(SkScalar w, SkScalar h)
Definition: SkSize.h:55
static constexpr SkSize Make(const SkISize &src)
Definition: SkSize.h:57
SkISize toRound() const
Definition: SkSize.h:80
void set(SkScalar w, SkScalar h)
Definition: SkSize.h:63
bool isEmpty() const
Returns true if either width or height are <= 0.
Definition: SkSize.h:70
SkISize toCeil() const
Definition: SkSize.h:82
bool isZero() const
Returns true iff fWidth == 0 && fHeight == 0.
Definition: SkSize.h:67
bool equals(SkScalar w, SkScalar h) const
Definition: SkSize.h:78
void setEmpty()
Set the width and height to 0.
Definition: SkSize.h:73
SkScalar fHeight
Definition: SkSize.h:53
SkISize toFloor() const
Definition: SkSize.h:84
SkScalar width() const
Definition: SkSize.h:75
static constexpr SkSize MakeEmpty()
Definition: SkSize.h:61
SkScalar fWidth
Definition: SkSize.h:52
SkScalar height() const
Definition: SkSize.h:76