Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkTSize< T > Struct Template Reference

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.
 
width () const
 
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

fWidth
 
fHeight
 

The documentation for this struct was generated from the following file: