Crazy Eddie's GUI System  0.8.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::Size< T > Class Template Reference

Class that holds the size (width & height) of something. More...

+ Inheritance diagram for CEGUI::Size< T >:
+ Collaboration diagram for CEGUI::Size< T >:

Public Types

typedef T value_type
 

Public Member Functions

 Size (const T width, const T height)
 
 Size (const Size &v)
 
bool operator== (const Size &other) const
 
bool operator!= (const Size &other) const
 
Size operator* (const T c) const
 
Size operator+ (const Size &s) const
 
Size operator- (const Size &s) const
 
void clamp (const Size &min, const Size &max)
 
void scaleToAspect (AspectMode mode, T ratio)
 

Static Public Member Functions

static Size square (const T side)
 finger saving alias for Size(side, side)
 
static Size zero ()
 finger saving alias for Size(0, 0)
 
static Size one ()
 finger saving alias for Size(1, 1)
 
static Size one_width ()
 finger saving alias for Size(1, 0)
 
static Size one_height ()
 finger saving alias for Size(0, 1)
 

Public Attributes

d_width
 
d_height
 

Friends

std::ostream & operator<< (std::ostream &s, const Size &v)
 allows writing the size to std ostream
 

Detailed Description

template<typename T>
class CEGUI::Size< T >

Class that holds the size (width & height) of something.