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

GlyphDef defines one single glyph (character) in a text image. More...

#include <CCTextImage.h>

Public Member Functions

 GlyphDef ()
 GlyphDef (unsigned short int letterUTF8, const Rect &rect)
 GlyphDef ( var letterUTF8, var rect)
 GlyphDef ( local letterUTF8, local rect)
void setUTF16Letter (unsigned short int letterUTF8)
void setRect (const Rect &theRect)
unsigned short int getUTF8Letter ()
const RectgetRect () const
void setPadding (float padding)
float getPadding ()
void setCommonHeight (float commonHeight)
local setCommonHeight ( local commonHeight)
float getCommonHeight ()
void setValid (bool isValid)
bool isValid ()

Detailed Description

GlyphDef defines one single glyph (character) in a text image.

it defines the bounding box for the glyph in the texture page, the character the padding (spacing) between characters

Constructor & Destructor Documentation

GlyphDef ( )
inline
var GlyphDef ( )
inline
local GlyphDef ( )
inline
GlyphDef ( unsigned short int  letterUTF8,
const Rect rect 
)
inline
var GlyphDef ( var  letterUTF8,
var  rect 
)
inline
local GlyphDef ( local  letterUTF8,
local  rect 
)
inline

Member Function Documentation

float getCommonHeight ( )
inline
var getCommonHeight ( )
inline
local getCommonHeight ( )
inline
float getPadding ( )
inline
var getPadding ( )
inline
local getPadding ( )
inline
const Rect& getRect ( ) const
inline
var getRect ( )
inline
local getRect ( )
inline
unsigned short int getUTF8Letter ( )
inline
var getUTF8Letter ( )
inline
local getUTF8Letter ( )
inline
bool isValid ( )
inline
var isValid ( )
inline
local isValid ( )
inline
void setCommonHeight ( float  commonHeight)
inline
var setCommonHeight ( var  commonHeight)
inline
local setCommonHeight ( local  commonHeight)
inline
void setPadding ( float  padding)
inline
var setPadding ( var  padding)
inline
local setPadding ( local  padding)
inline
void setRect ( const Rect theRect)
inline
var setRect ( var  theRect)
inline
local setRect ( local  theRect)
inline
void setUTF16Letter ( unsigned short int  letterUTF8)
inline
var setUTF16Letter ( var  letterUTF8)
inline
local setUTF16Letter ( local  letterUTF8)
inline
void setValid ( bool  isValid)
inline
var setValid ( var  isValid)
inline
local setValid ( local  isValid)
inline

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