Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkSize Struct Reference
Inheritance diagram for SkSize:
SkTSize< SkScalar >

Public Member Functions

SkSizeoperator= (const SkISize &src)
 
SkISize toRound () const
 
SkISize toCeil () const
 
SkISize toFloor () const
 
- Public Member Functions inherited from SkTSize< SkScalar >
void set (SkScalarw, SkScalarh)
 
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.
 
SkScalar width () const
 
SkScalar height () const
 
void clampNegToZero ()
 If width or height is < 0, it is set to 0.
 
bool equals (SkScalarw, SkScalarh) const
 

Static Public Member Functions

static SkSize Make (SkScalar w, SkScalar h)
 
- Static Public Member Functions inherited from SkTSize< SkScalar >
static SkTSize Make (SkScalarw, SkScalarh)
 

Additional Inherited Members

- Public Attributes inherited from SkTSize< SkScalar >
SkScalar fWidth
 
SkScalar fHeight
 

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