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

TextPageDef defines one text image page (a TextImage can have/use more than one page) More...

#include <CCTextImage.h>

Public Member Functions

 TextPageDef (int pageNum, int width, int height)
 ~TextPageDef ()
void addLine (TextLineDef *theLine)
int getNumLines () const
TextLineDefgetLineAt (int index) const
int getWidth () const
int getHeight () const
int getPageNumber () const
void setPageData (unsigned char *data)
const unsigned char * getPageData () const
Texture2DgetPageTexture ()
void preparePageTexture (bool releaseRAWData=true)

Detailed Description

TextPageDef defines one text image page (a TextImage can have/use more than one page)

collects all the TextLineDef for one page, the witdh and height of the page and the graphics (texture) for the page

Constructor & Destructor Documentation

TextPageDef ( int  pageNum,
int  width,
int  height 
)

Member Function Documentation

void addLine ( TextLineDef theLine)
inline
int getHeight ( ) const
inline
TextLineDef* getLineAt ( int  index) const
inline
int getNumLines ( ) const
inline
const unsigned char* getPageData ( ) const
inline
int getPageNumber ( ) const
inline
Texture2D* getPageTexture ( )
int getWidth ( ) const
inline
void preparePageTexture ( bool  releaseRAWData = true)
void setPageData ( unsigned char *  data)
inline

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