SkTSize< T > Struct Template Reference

#include <SkSize.h>

Collaboration diagram for SkTSize< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void set (T w, T h)
bool isZero () const
bool isEmpty () const
void setEmpty ()
width () const
height () const
void clampNegToZero ()
bool equals (T w, T h) const

Public Attributes

fWidth
fHeight

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 ( w,
h 
) const [inline]

Definition at line 44 of file SkSize.h.

template<typename T>
T SkTSize< T >::height (  )  const [inline]

Definition at line 32 of file SkSize.h.

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 ( w,
h 
) [inline]

Definition at line 10 of file SkSize.h.

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]

Definition at line 31 of file SkSize.h.


Member Data Documentation

template<typename T>
T SkTSize< T >::fHeight

Definition at line 8 of file SkSize.h.

template<typename T>
T SkTSize< T >::fWidth

Definition at line 7 of file SkSize.h.


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

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1