AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzTextSprite Class Reference

#include <CzTextSprite.h>

Inheritance diagram for CzTextSprite:
CzSprite

List of all members.

Public Member Functions

void setText (const char *text)
CzStringgetText ()
void setRect (const CzIRect &rect)
CzIRectgetRect ()
void setFont (CzFont *font)
CzFontgetFont ()
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
CzFontFont
bool TextDirty
eCzFontFlags Flags
eCzAlignH AlignH
eCzAlignV AlignV
CzFontPreparedText PreparedText

Constructor & Destructor Documentation


Member Function Documentation

void CzTextSprite::Draw ( ) [virtual]

Implements CzSprite.

void CzTextSprite::Init ( int  vertex_count = 4) [virtual]

Initialises the sprite.

Parameters:
vertex_countNumber of vertices that the sprite is made up from.

Reimplemented from CzSprite.

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]

Member Data Documentation

CzFont* CzTextSprite::Font [protected]
bool CzTextSprite::TextDirty [protected]

The documentation for this class was generated from the following files: