Skia
2DGraphicsLibrary
|
Public Member Functions | |
void | set (T w, T h) |
bool | isZero () const |
Returns true iff fWidth == 0 && fHeight == 0. | |
bool | isEmpty () const |
Returns true if either widht or height are <= 0. | |
void | setEmpty () |
Set the width and height to 0. | |
T | width () const |
T | height () const |
void | clampNegToZero () |
If width or height is < 0, it is set to 0. | |
bool | equals (T w, T h) const |
Static Public Member Functions | |
static SkTSize | Make (T w, T h) |
Public Attributes | |
T | fWidth |
T | fHeight |