#include <Geometry.h>
Public Member Functions | |
const T | GetHeight () const |
const T | GetWidth () const |
kt_bool | operator!= (const Size2 &rOther) const |
Size2 & | operator= (const Size2 &rOther) |
kt_bool | operator== (const Size2 &rOther) const |
void | SetHeight (T height) |
void | SetWidth (T width) |
Size2 () | |
Size2 (T width, T height) | |
Size2 (const Size2 &rOther) | |
const karto::String | ToString () const |
Private Attributes | |
T | m_Height |
T | m_Width |
Friends | |
KARTO_FORCEINLINE std::ostream & | operator<< (std::ostream &rStream, const Size2 &rSize) |
A 2-dimensional size (width, height)
Definition at line 43 of file Geometry.h.
karto::Size2< T >::Size2 | ( | ) | [inline] |
A size with a width and height of 0
Definition at line 49 of file Geometry.h.
karto::Size2< T >::Size2 | ( | T | width, |
T | height | ||
) | [inline] |
A size with the given width and height
width | width |
height | height |
Definition at line 60 of file Geometry.h.
karto::Size2< T >::Size2 | ( | const Size2< T > & | rOther | ) | [inline] |
Copy constructor
Definition at line 69 of file Geometry.h.
const T karto::Size2< T >::GetHeight | ( | ) | const [inline] |
const T karto::Size2< T >::GetWidth | ( | ) | const [inline] |
kt_bool karto::Size2< T >::operator!= | ( | const Size2< T > & | rOther | ) | const [inline] |
Inequality operator
Definition at line 148 of file Geometry.h.
Size2& karto::Size2< T >::operator= | ( | const Size2< T > & | rOther | ) | [inline] |
Assignment operator
Definition at line 129 of file Geometry.h.
kt_bool karto::Size2< T >::operator== | ( | const Size2< T > & | rOther | ) | const [inline] |
Equality operator
Definition at line 140 of file Geometry.h.
void karto::Size2< T >::SetHeight | ( | T | height | ) | [inline] |
void karto::Size2< T >::SetWidth | ( | T | width | ) | [inline] |
const karto::String karto::Size2< T >::ToString | ( | ) | const [inline] |
Returns a string representation of this size
Definition at line 116 of file Geometry.h.
KARTO_FORCEINLINE std::ostream& operator<< | ( | std::ostream & | rStream, |
const Size2< T > & | rSize | ||
) | [friend] |
Write size onto output stream
Definition at line 156 of file Geometry.h.
T karto::Size2< T >::m_Height [private] |
Definition at line 164 of file Geometry.h.
T karto::Size2< T >::m_Width [private] |
Definition at line 163 of file Geometry.h.