2D (width,height) size structure. More...
#include <size.h>
Public Member Functions | |
Construction | |
CL_Sizex () | |
Constructs a size structure. | |
CL_Sizex (Type width, Type height) | |
Constructs a size structure. | |
CL_Sizex (const CL_Sizex< Type > &s) | |
Constructs a size structure. | |
Operations | |
CL_Sizex< Type > & | operator+= (const CL_Sizex< Type > &s) |
Size += Size operator. | |
CL_Sizex< Type > & | operator-= (const CL_Sizex< Type > &s) |
Size -= Size operator. | |
CL_Sizex< Type > | operator+ (const CL_Sizex< Type > &s) const |
Size + Size operator. | |
CL_Sizex< Type > | operator- (const CL_Sizex< Type > &s) const |
Size - Size operator. | |
CL_Sizex< Type > & | operator+= (const Type &s) |
Size += operator. | |
CL_Sizex< Type > & | operator-= (const Type &s) |
Size -= operator. | |
CL_Sizex< Type > & | operator*= (const Type &s) |
Size *= operator. | |
CL_Sizex< Type > & | operator/= (const Type &s) |
Size /= operator. | |
CL_Sizex< Type > | operator+ (const Type &s) const |
Size + operator. | |
CL_Sizex< Type > | operator- (const Type &s) const |
Size - operator. | |
CL_Sizex< Type > | operator* (const Type &s) const |
Size * operator. | |
CL_Sizex< Type > | operator/ (const Type &s) const |
Size / operator. | |
bool | operator== (const CL_Sizex< Type > &s) const |
Size == Size operator (deep compare). | |
bool | operator!= (const CL_Sizex< Type > &s) const |
Size != Size operator (deep compare). | |
Public Attributes | |
Attributes | |
Type | width |
Size width. | |
Type | height |
Size height. |
2D (width,height) size structure.
These line templates are defined for: int (CL_Size), float (CL_Sizef), double (CL_Sized)
Constructs a size structure.
width | Initial width of size structure. | |
height | Initial height of size structure. |
Constructs a size structure.
s | = Size structure to construct this one from. |
bool CL_Sizex< Type >::operator!= | ( | const CL_Sizex< Type > & | s | ) | const [inline] |
Size != Size operator (deep compare).
CL_Sizex<Type> CL_Sizex< Type >::operator* | ( | const Type & | s | ) | const [inline] |
Size * operator.
Size *= operator.
CL_Sizex<Type> CL_Sizex< Type >::operator+ | ( | const Type & | s | ) | const [inline] |
Size + operator.
CL_Sizex<Type> CL_Sizex< Type >::operator+ | ( | const CL_Sizex< Type > & | s | ) | const [inline] |
Size + Size operator.
Size += operator.
CL_Sizex<Type>& CL_Sizex< Type >::operator+= | ( | const CL_Sizex< Type > & | s | ) | [inline] |
Size += Size operator.
CL_Sizex<Type> CL_Sizex< Type >::operator- | ( | const Type & | s | ) | const [inline] |
Size - operator.
CL_Sizex<Type> CL_Sizex< Type >::operator- | ( | const CL_Sizex< Type > & | s | ) | const [inline] |
Size - Size operator.
CL_Sizex<Type>& CL_Sizex< Type >::operator-= | ( | const CL_Sizex< Type > & | s | ) | [inline] |
Size -= Size operator.
Size -= operator.
CL_Sizex<Type> CL_Sizex< Type >::operator/ | ( | const Type & | s | ) | const [inline] |
Size / operator.
Size /= operator.
bool CL_Sizex< Type >::operator== | ( | const CL_Sizex< Type > & | s | ) | const [inline] |
Size == Size operator (deep compare).
Size height.
Referenced by CL_Rectx< int >::CL_Rectx(), CL_Size::CL_Size(), CL_Sized::CL_Sized(), CL_Sizef::CL_Sizef(), CL_Sizex< int >::CL_Sizex(), CL_Sizex< int >::operator!=(), CL_Sizex< int >::operator+(), CL_Sizex< int >::operator+=(), CL_Sizex< int >::operator-(), CL_Sizex< int >::operator-=(), CL_Sizex< int >::operator==(), and CL_Rectx< int >::set_size().
Size width.
Referenced by CL_Rectx< int >::CL_Rectx(), CL_Size::CL_Size(), CL_Sized::CL_Sized(), CL_Sizef::CL_Sizef(), CL_Sizex< int >::CL_Sizex(), CL_Sizex< int >::operator!=(), CL_Sizex< int >::operator+(), CL_Sizex< int >::operator+=(), CL_Sizex< int >::operator-(), CL_Sizex< int >::operator-=(), CL_Sizex< int >::operator==(), and CL_Rectx< int >::set_size().