cocos2d-x  3.0Beta0
 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)
 TextLineDef ( var x, var y, var width, var height)
 TextLineDef ( local x, local y, local width, local height)
float getX () const
var getX ()
local getX ()
float getY () const
var getY ()
local getY ()
float getWidth () const
var getWidth ()
local getWidth ()
float getHeight () const
var getHeight ()
local getHeight ()
void addGlyph (GlyphDef theGlyph)
var addGlyph ( var theGlyph)
local addGlyph ( local theGlyph)
int getNumGlyph () const
var getNumGlyph ()
local getNumGlyph ()
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 
)
var TextLineDef ( var  x,
var  y,
var  width,
var  height 
)
local TextLineDef ( local  x,
local  y,
local  width,
local  height 
)

Member Function Documentation

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

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