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

#include <CCFontCharMap.h>

Inheritance diagram for FontCharMap:
Font Ref

Public Member Functions

virtual int * getHorizontalKerningForTextUTF16 (const std::u16string &text, int &outNumLetters) const override
var getHorizontalKerningForTextUTF16 ( var text, var outNumLetters)
local getHorizontalKerningForTextUTF16 ( local text, local outNumLetters)
virtual FontAtlascreateFontAtlas () override
var createFontAtlas ()
local createFontAtlas ()
- Public Member Functions inherited from Font
virtual const char * getCurrentGlyphCollection () const
var getCurrentGlyphCollection ()
local getCurrentGlyphCollection ()
virtual int getFontMaxHeight () const
local getFontMaxHeight ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static FontCharMapcreate (const std::string &charMapFile, int itemWidth, int itemHeight, int startCharMap)
var create ( var charMapFile, var itemWidth, var itemHeight, var startCharMap)
local create ( local charMapFile, local itemWidth, local itemHeight, local startCharMap)
static FontCharMapcreate (Texture2D *texture, int itemWidth, int itemHeight, int startCharMap)
static FontCharMapcreate (const std::string &plistFile)

Protected Member Functions

 FontCharMap (Texture2D *texture, int itemWidth, int itemHeight, int startCharMap)
 FontCharMap ( var texture, var itemWidth, var itemHeight, var startCharMap)
 FontCharMap ( local texture, local itemWidth, local itemHeight, local startCharMap)
virtual ~FontCharMap ()
- Protected Member Functions inherited from Font
 Font ()
 Font ()
 Font ()
virtual ~Font ()
void setCurrentGlyphCollection (GlyphCollection glyphs, const char *customGlyphs=0)
var setCurrentGlyphCollection ( var glyphs, var 0)
local setCurrentGlyphCollection ( local glyphs, local 0)
const char * getGlyphCollection (GlyphCollection glyphs) const
var getGlyphCollection ( var glyphs)
local getGlyphCollection ( local glyphs)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from Font
GlyphCollection _usedGlyphs
char * _customGlyphs
var _customGlyphs
local _customGlyphs
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 
- Static Protected Attributes inherited from Font
static const char * _glyphASCII
var _glyphASCII
local _glyphASCII
static const char * _glyphNEHE
var _glyphNEHE
local _glyphNEHE

Constructor & Destructor Documentation

FontCharMap ( Texture2D texture,
int  itemWidth,
int  itemHeight,
int  startCharMap 
)
inlineprotected
var FontCharMap ( var  texture,
var  itemWidth,
var  itemHeight,
var  startCharMap 
)
inlineprotected
local FontCharMap ( local  texture,
local  itemWidth,
local  itemHeight,
local  startCharMap 
)
inlineprotected
virtual ~FontCharMap ( )
protectedvirtual

Member Function Documentation

static FontCharMap* create ( const std::string &  charMapFile,
int  itemWidth,
int  itemHeight,
int  startCharMap 
)
static
var create ( var  charMapFile,
var  itemWidth,
var  itemHeight,
var  startCharMap 
)
static
local create ( local  charMapFile,
local  itemWidth,
local  itemHeight,
local  startCharMap 
)
static
static FontCharMap* create ( Texture2D texture,
int  itemWidth,
int  itemHeight,
int  startCharMap 
)
static
var create ( var  texture,
var  itemWidth,
var  itemHeight,
var  startCharMap 
)
static
local create ( local  texture,
local  itemWidth,
local  itemHeight,
local  startCharMap 
)
static
static FontCharMap* create ( const std::string &  plistFile)
static
var create ( var  plistFile)
static
local create ( local  plistFile)
static
virtual FontAtlas* createFontAtlas ( )
overridevirtual

Implements Font.

var createFontAtlas ( )
overridevirtual

Implements Font.

local createFontAtlas ( )
overridevirtual

Implements Font.

virtual int*
getHorizontalKerningForTextUTF16
( const std::u16string &  text,
int &  outNumLetters 
) const
overridevirtual

Implements Font.

var
getHorizontalKerningForTextUTF16
( var  text,
var  outNumLetters 
)
overridevirtual

Implements Font.

local
getHorizontalKerningForTextUTF16
( local  text,
local  outNumLetters 
)
overridevirtual

Implements Font.


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