AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
#include <CzTextSprite.h>
Public Member Functions | |
void | setText (const char *text) |
CzString & | getText () |
void | setRect (const CzIRect &rect) |
CzIRect & | getRect () |
void | setFont (CzFont *font) |
CzFont * | getFont () |
void | setFlags (eCzFontFlags flags) |
void | setAlignH (eCzAlignH align) |
void | setAlignV (eCzAlignV align) |
CzFontPreparedText | getPreparedData () |
CzTextSprite () | |
virtual | ~CzTextSprite () |
void | Init (int vertex_count=4) |
Initialises the sprite. | |
void | Draw () |
void | RebuildText () |
Protected Member Functions | |
void | RebuildTransform () |
Rebuilds the display transform. | |
void | UpdateBindings () |
void | TransformVertices () |
Builds a list of transformed vertices. | |
Protected Attributes | |
CzString | Text |
CzIRect | Rect |
CzFont * | Font |
bool | TextDirty |
eCzFontFlags | Flags |
eCzAlignH | AlignH |
eCzAlignV | AlignV |
CzFontPreparedText | PreparedText |
CzTextSprite::CzTextSprite | ( | ) | [inline] |
CzTextSprite::~CzTextSprite | ( | ) | [virtual] |
void CzTextSprite::Draw | ( | ) | [virtual] |
Implements CzSprite.
CzFont* CzTextSprite::getFont | ( | ) | [inline] |
CzFontPreparedText CzTextSprite::getPreparedData | ( | ) | [inline] |
CzIRect& CzTextSprite::getRect | ( | ) | [inline] |
CzString& CzTextSprite::getText | ( | ) | [inline] |
void CzTextSprite::Init | ( | int | vertex_count = 4 | ) | [virtual] |
Initialises the sprite.
vertex_count | Number of vertices that the sprite is made up from. |
Reimplemented from CzSprite.
void CzTextSprite::RebuildText | ( | ) |
void CzTextSprite::RebuildTransform | ( | ) | [protected, virtual] |
Rebuilds the display transform.
Rebuilds the sprites display transform.
Reimplemented from CzSprite.
void CzTextSprite::setAlignH | ( | eCzAlignH | align | ) | [inline] |
void CzTextSprite::setAlignV | ( | eCzAlignV | align | ) | [inline] |
void CzTextSprite::setFlags | ( | eCzFontFlags | flags | ) | [inline] |
void CzTextSprite::setFont | ( | CzFont * | font | ) | [inline] |
void CzTextSprite::setRect | ( | const CzIRect & | rect | ) | [inline] |
void CzTextSprite::setText | ( | const char * | text | ) | [inline] |
void CzTextSprite::TransformVertices | ( | ) | [protected, virtual] |
Builds a list of transformed vertices.
Transform sprites vertices by current sprite transform.
Reimplemented from CzSprite.
void CzTextSprite::UpdateBindings | ( | ) | [protected] |
eCzAlignH CzTextSprite::AlignH [protected] |
eCzAlignV CzTextSprite::AlignV [protected] |
eCzFontFlags CzTextSprite::Flags [protected] |
CzFont* CzTextSprite::Font [protected] |
CzFontPreparedText CzTextSprite::PreparedText [protected] |
CzIRect CzTextSprite::Rect [protected] |
CzString CzTextSprite::Text [protected] |
bool CzTextSprite::TextDirty [protected] |