2D (width,height) size structure. More...
#include <size.h>
Public Member Functions | |
Sizex () | |
Constructs a size structure. More... | |
Sizex (Type width, Type height) | |
Constructs a size structure. More... | |
Sizex (const Sizex< Type > &s) | |
Constructs a size structure. More... | |
operator Vec2< Type > () const | |
bool | operator!= (const Sizex< Type > &s) const |
Size != Size operator (deep compare). More... | |
Sizex< Type > | operator* (const Type &s) const |
Size * operator. More... | |
Sizex< Type > & | operator*= (const Type &s) |
Size *= operator. More... | |
Sizex< Type > | operator+ (const Sizex< Type > &s) const |
Size + Size operator. More... | |
Sizex< Type > | operator+ (const Type &s) const |
Size + operator. More... | |
Sizex< Type > & | operator+= (const Sizex< Type > &s) |
Size += Size operator. More... | |
Sizex< Type > & | operator+= (const Type &s) |
Size += operator. More... | |
Sizex< Type > | operator- (const Sizex< Type > &s) const |
Size - Size operator. More... | |
Sizex< Type > | operator- (const Type &s) const |
Size - operator. More... | |
Sizex< Type > & | operator-= (const Sizex< Type > &s) |
Size -= Size operator. More... | |
Sizex< Type > & | operator-= (const Type &s) |
Size -= operator. More... | |
Sizex< Type > | operator/ (const Type &s) const |
Size / operator. More... | |
Sizex< Type > & | operator/= (const Type &s) |
Size /= operator. More... | |
bool | operator== (const Sizex< Type > &s) const |
Size == Size operator (deep compare). More... | |
Public Attributes | |
Type | height |
Size height. More... | |
Type | width |
Size width. More... | |
2D (width,height) size structure.
These line templates are defined for: int (Size), float (Sizef), double (Sized)
|
inline |
Constructs a size structure.
|
inline |
Constructs a size structure.
width | Initial width of size structure. |
height | Initial height of size structure. |
|
inline |
Constructs a size structure.
s | = Size structure to construct this one from. |
|
inline |
References uicore::Sizex< Type >::height, and uicore::Sizex< Type >::width.
|
inline |
|
inline |
Size * operator.
|
inline |
Size *= operator.
|
inline |
|
inline |
Size + operator.
|
inline |
|
inline |
Size += operator.
|
inline |
|
inline |
Size - operator.
|
inline |
|
inline |
Size -= operator.
|
inline |
Size / operator.
|
inline |
Size /= operator.
|
inline |
Type uicore::Sizex< Type >::height |
Size height.
Referenced by uicore::GraphicContext::height(), uicore::Sizex< Type >::operator Vec2< Type >(), uicore::Sizex< int >::operator!=(), uicore::Sizex< int >::operator+(), uicore::Sizex< int >::operator+=(), uicore::Sizex< int >::operator-(), uicore::Sizex< int >::operator-=(), uicore::Sizex< int >::operator==(), uicore::Rectx< int >::set_size(), uicore::Size::Size(), uicore::Sized::Sized(), uicore::Sizef::Sizef(), uicore::Rectx< int >::translate(), uicore::Rectx< int >::wh(), and uicore::Rectx< int >::xywh().
Type uicore::Sizex< Type >::width |
Size width.
Referenced by uicore::Sizex< Type >::operator Vec2< Type >(), uicore::Sizex< int >::operator!=(), uicore::Sizex< int >::operator+(), uicore::Sizex< int >::operator+=(), uicore::Sizex< int >::operator-(), uicore::Sizex< int >::operator-=(), uicore::Sizex< int >::operator==(), uicore::Rectx< int >::set_size(), uicore::Size::Size(), uicore::Sized::Sized(), uicore::Sizef::Sizef(), uicore::Rectx< int >::translate(), uicore::Rectx< int >::wh(), uicore::GraphicContext::width(), and uicore::Rectx< int >::xywh().