cocos2d-x  3.0Beta0
 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 ( local pageNum, local width, local height)
 ~TextPageDef ()
void addLine (TextLineDef *theLine)
local addLine ( local theLine)
int getNumLines () const
var getNumLines ()
local getNumLines ()
TextLineDefgetLineAt (int index) const
int getWidth () const
var getWidth ()
local getWidth ()
int getHeight () const
var getHeight ()
local getHeight ()
int getPageNumber () const
var getPageNumber ()
local getPageNumber ()
void setPageData (unsigned char *data)
var setPageData ( var data)
local setPageData ( local data)
const unsigned char * getPageData () const
Texture2DgetPageTexture ()
var getPageTexture ()
local getPageTexture ()
void preparePageTexture (bool releaseRAWData=true)
var preparePageTexture ( var true)
local preparePageTexture ( local 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 
)
local TextPageDef ( local  pageNum,
local  width,
local  height 
)

Member Function Documentation

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

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