cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TextLineDef Class Reference

TextLineDef define a line of text in a text image texture page. More...

#include <CCTextImage.h>

Public Member Functions

 TextLineDef (float x, float y, float width, float height)
float getX () const
float getY () const
float getWidth () const
float getHeight () const
void addGlyph (GlyphDef theGlyph)
int getNumGlyph () const
const GlyphDefgetGlyphAt (int index) const

Detailed Description

TextLineDef define a line of text in a text image texture page.

conllects all the GlyphDef for a text line plus line size and line position in text image space

Constructor & Destructor Documentation

TextLineDef ( float  x,
float  y,
float  width,
float  height 
)

Member Function Documentation

void addGlyph ( GlyphDef  theGlyph)
inline
const GlyphDef& getGlyphAt ( int  index) const
inline
float getHeight ( ) const
inline
int getNumGlyph ( ) const
inline
float getWidth ( ) const
inline
float getX ( ) const
inline
float getY ( ) const
inline

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