#include <KeosGraphicString.h>
Public Member Functions | |
| CGraphicString (const TVector2I &StringPosition, const String &strText, const CColor &StringColor, const String &strFont) | |
| Default constructor. | |
| void | Draw () const |
| Display the string on the screen. | |
| TVector2I | GetPixelSize () const |
| Return the size of the text in pixels. | |
| void | Align (ulong nMode, const CRectangle &Rect) |
| Change the alignement of the text. | |
Public Attributes | |
| TVector2I | Position |
| String | Text |
| Text position on the screen. | |
| CColor | Color |
| String. | |
| String | Font |
| Text color. | |
Definition at line 33 of file KeosGraphicString.h.
| Keos::CGraphicString::CGraphicString | ( | const TVector2I & | StringPosition, | |
| const String & | strText, | |||
| const CColor & | StringColor, | |||
| const String & | strFont | |||
| ) |
Default constructor.
| StringPosition | Text position. | |
| strText | Text. | |
| StringColor | Text color. | |
| strFont | Font name. |
Definition at line 32 of file KeosGraphicString.cpp.
| void Keos::CGraphicString::Draw | ( | ) | const |
Display the string on the screen.
Definition at line 41 of file KeosGraphicString.cpp.
References Keos::CSingleton< T >::Instance().
| TVector2I Keos::CGraphicString::GetPixelSize | ( | ) | const |
Return the size of the text in pixels.
Definition at line 47 of file KeosGraphicString.cpp.
References Keos::CSingleton< T >::Instance().
Referenced by Align().
| void Keos::CGraphicString::Align | ( | ulong | nMode, | |
| const CRectangle & | Rect | |||
| ) |
Change the alignement of the text.
| nMode | Alignement options. | |
| Rect | Rectangle used for alignement. |
Definition at line 53 of file KeosGraphicString.cpp.
References Keos::ALIGN_BOTTOM, Keos::ALIGN_HCENTER, Keos::ALIGN_RIGHT, Keos::ALIGN_VCENTER, Keos::CRectangle::Bottom(), GetPixelSize(), Keos::CRectangle::Height(), Keos::CRectangle::Left(), Position, Keos::CRectangle::Right(), Keos::CRectangle::Top(), Keos::CRectangle::Width(), Keos::CVector2< T >::x, and Keos::CVector2< T >::y.
1.5.1-p1