Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <Overlay.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

Definition at line 205 of file Overlay.h.

Constructor & Destructor Documentation

CSize::CSize ( )

Definition at line 385 of file Overlay.cpp.

CSize::CSize ( const CRect rect)

Definition at line 389 of file Overlay.cpp.

CSize::CSize ( const CPos pos)

Definition at line 393 of file Overlay.cpp.

CSize::CSize ( const float &  _cx,
const float &  _cy 
)

Definition at line 397 of file Overlay.cpp.

Member Function Documentation

bool CSize::operator!= ( const CSize a) const

Definition at line 416 of file Overlay.cpp.

CSize CSize::operator* ( const float &  a) const

Definition at line 452 of file Overlay.cpp.

void CSize::operator*= ( const float &  a)

Definition at line 479 of file Overlay.cpp.

CSize CSize::operator+ ( void  ) const

Definition at line 428 of file Overlay.cpp.

CSize CSize::operator+ ( const CSize a) const

Definition at line 434 of file Overlay.cpp.

void CSize::operator+= ( const CSize a)

Definition at line 458 of file Overlay.cpp.

CSize CSize::operator- ( void  ) const

Definition at line 422 of file Overlay.cpp.

CSize CSize::operator- ( const CSize a) const

Definition at line 440 of file Overlay.cpp.

void CSize::operator-= ( const CSize a)

Definition at line 465 of file Overlay.cpp.

CSize CSize::operator/ ( const float &  a) const

Definition at line 446 of file Overlay.cpp.

void CSize::operator/= ( const float &  a)

Definition at line 472 of file Overlay.cpp.

CSize & CSize::operator= ( const CSize a)

Definition at line 402 of file Overlay.cpp.

bool CSize::operator== ( const CSize a) const

Definition at line 410 of file Overlay.cpp.

Member Data Documentation

float CSize::cx

Size.

Definition at line 234 of file Overlay.h.

float CSize::cy

Definition at line 234 of file Overlay.h.


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