SkTSize< T > Struct Template Reference
#include <SkSize.h>
List of all members.
Detailed Description
template<typename T>
struct SkTSize< T >
Definition at line 6 of file SkSize.h.
Member Function Documentation
template<typename T>
void SkTSize< T >::clampNegToZero |
( |
|
) |
[inline] |
If width or height is < 0, it is set to 0
Definition at line 35 of file SkSize.h.
template<typename T>
bool SkTSize< T >::equals |
( |
T |
w, |
|
|
T |
h | |
|
) |
| | const [inline] |
template<typename T>
T SkTSize< T >::height |
( |
|
) |
const [inline] |
template<typename T>
bool SkTSize< T >::isEmpty |
( |
|
) |
const [inline] |
Returns true if either widht or height are <= 0
Definition at line 22 of file SkSize.h.
template<typename T>
bool SkTSize< T >::isZero |
( |
|
) |
const [inline] |
Returns true iff fWidth == 0 && fHeight == 0
Definition at line 17 of file SkSize.h.
template<typename T>
void SkTSize< T >::set |
( |
T |
w, |
|
|
T |
h | |
|
) |
| | [inline] |
template<typename T>
void SkTSize< T >::setEmpty |
( |
|
) |
[inline] |
Set the width and height to 0
Definition at line 27 of file SkSize.h.
template<typename T>
T SkTSize< T >::width |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this struct was generated from the following file: