|
ClanLib
2.3.7
|
2D (width,height) size structure. More...
#include <size.h>

Public Member Functions | |
Construction | |
| CL_Sizex () | |
| Constructs a size structure. More... | |
| CL_Sizex (Type width, Type height) | |
| Constructs a size structure. More... | |
| CL_Sizex (const CL_Sizex< Type > &s) | |
| Constructs a size structure. More... | |
Operations | |
| CL_Sizex< Type > & | operator+= (const CL_Sizex< Type > &s) |
| Size += Size operator. More... | |
| CL_Sizex< Type > & | operator-= (const CL_Sizex< Type > &s) |
| Size -= Size operator. More... | |
| CL_Sizex< Type > | operator+ (const CL_Sizex< Type > &s) const |
| Size + Size operator. More... | |
| CL_Sizex< Type > | operator- (const CL_Sizex< Type > &s) const |
| Size - Size operator. More... | |
| CL_Sizex< Type > & | operator+= (const Type &s) |
| Size += operator. More... | |
| CL_Sizex< Type > & | operator-= (const Type &s) |
| Size -= operator. More... | |
| CL_Sizex< Type > & | operator*= (const Type &s) |
| Size *= operator. More... | |
| CL_Sizex< Type > & | operator/= (const Type &s) |
| Size /= operator. More... | |
| CL_Sizex< Type > | operator+ (const Type &s) const |
| Size + operator. More... | |
| CL_Sizex< Type > | operator- (const Type &s) const |
| Size - operator. More... | |
| CL_Sizex< Type > | operator* (const Type &s) const |
| Size * operator. More... | |
| CL_Sizex< Type > | operator/ (const Type &s) const |
| Size / operator. More... | |
| bool | operator== (const CL_Sizex< Type > &s) const |
| Size == Size operator (deep compare). More... | |
| bool | operator!= (const CL_Sizex< Type > &s) const |
| Size != Size operator (deep compare). More... | |
Public Attributes | |
Attributes | |
| Type | width |
| Size width. More... | |
| Type | height |
| Size height. More... | |
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. |
|
inline |
Size != Size operator (deep compare).
Size * operator.
Size *= operator.
|
inline |
Size + Size operator.
Size + operator.
|
inline |
Size += Size operator.
Size += operator.
|
inline |
Size - Size operator.
Size - operator.
|
inline |
Size -= Size operator.
Size -= operator.
Size / operator.
Size /= operator.
|
inline |
Size == Size operator (deep compare).
| Type CL_Sizex< Type >::height |
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().
| Type CL_Sizex< Type >::width |
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().
1.8.4