Pyrogenesis  trunk
Public Member Functions | Public Attributes | List of all members
CSize Class Reference

Made to represent a screen size, should in philosophy be made of unsigned ints, but for the sake of compatibility with CRect and CPos it's not. More...

#include <Shapes.h>

Public Member Functions

 CSize ()
 
 CSize (const CRect &rect)
 
 CSize (const CPos &pos)
 
 CSize (const float &_cx, const float &_cy)
 
CSizeoperator= (const CSize &a)
 
bool operator== (const CSize &a) const
 
bool operator!= (const CSize &a) const
 
CSize operator- (void) const
 
CSize operator+ (void) const
 
CSize operator+ (const CSize &a) const
 
CSize operator- (const CSize &a) const
 
CSize operator/ (const float &a) const
 
CSize operator* (const float &a) const
 
void operator+= (const CSize &a)
 
void operator-= (const CSize &a)
 
void operator/= (const float &a)
 
void operator*= (const float &a)
 

Public Attributes

float cx
 Size. More...
 
float cy
 

Detailed Description

Made to represent a screen size, should in philosophy be made of unsigned ints, but for the sake of compatibility with CRect and CPos it's not.

See also
CRect
CPos

Constructor & Destructor Documentation

CSize::CSize ( )
CSize::CSize ( const CRect rect)
CSize::CSize ( const CPos pos)
CSize::CSize ( const float &  _cx,
const float &  _cy 
)

Member Function Documentation

bool CSize::operator!= ( const CSize a) const
CSize CSize::operator* ( const float &  a) const
void CSize::operator*= ( const float &  a)
CSize CSize::operator+ ( void  ) const
CSize CSize::operator+ ( const CSize a) const
void CSize::operator+= ( const CSize a)
CSize CSize::operator- ( void  ) const
CSize CSize::operator- ( const CSize a) const
void CSize::operator-= ( const CSize a)
CSize CSize::operator/ ( const float &  a) const
void CSize::operator/= ( const float &  a)
CSize & CSize::operator= ( const CSize a)
bool CSize::operator== ( const CSize a) const

Member Data Documentation

float CSize::cx

Size.

float CSize::cy

The documentation for this class was generated from the following files: