cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Public 成员函数 - 图1 Public 成员函数 - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Public 成员函数 | Protected 成员函数 | Protected 属性 | 静态 Protected 属性 | 所有成员列表

Font类 参考abstract

#include

类 Font 继承关系图:

Public 成员函数 - 图3 Ref FontCharMap FontFNT FontFreeType

## Public 成员函数
virtual FontAtlas createFontAtlas ()=0
virtual int getHorizontalKerningForTextUTF16 (const std::u16string &text, int &outNumLetters) const =0
virtual const char getCurrentGlyphCollection () const
virtual int getFontMaxHeight () const
- Public 成员函数 继承自 Ref
void retain ()
保留所有权. 更多…
void release ()
立即释放所有权. 更多…
Ref autorelease ()
自动释放所有权在不久的将来. 更多…
unsigned int getReferenceCount () const
返回Ref对象当前的引用计数. 更多…
virtual ~Ref ()
NA NA 更多…
## Protected 成员函数
Font ()
virtual ~Font ()
NA NA 更多…
void setCurrentGlyphCollection (GlyphCollection glyphs, const char customGlyphs=0)
const char getGlyphCollection (GlyphCollection glyphs) const
- Protected 成员函数 继承自 Ref
Ref ()
构造函数 更多…
## Protected 属性
GlyphCollection _usedGlyphs
char * _customGlyphs
- Protected 属性 继承自 Ref
unsigned int _referenceCount
引用计数 更多…
## 静态 Protected 属性
static const char _glyphASCII
static const char _glyphNEHE

构造及析构函数说明

Font ( )

protected

virtual ~Font ( )

inlineprotectedvirtual

NA NA

成员函数说明

virtual FontAtlas* createFontAtlas ( )

pure virtual

FontFreeType, FontFNT , 以及 FontCharMap 内被实现.

virtual const char* getCurrentGlyphCollection ( ) const

virtual

virtual int getFontMaxHeight ( ) const

inlinevirtual

FontFreeType 重载.

const char* getGlyphCollection ( GlyphCollection glyphs) const

protected

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

pure virtual

FontFreeType, FontFNT , 以及 FontCharMap 内被实现.

void setCurrentGlyphCollection ( GlyphCollection glyphs,
const char * customGlyphs = 0
)

protected

类成员变量说明

char* _customGlyphs

protected

const char* _glyphASCII

staticprotected

const char* _glyphNEHE

staticprotected

GlyphCollection _usedGlyphs

protected


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/2d/CCFont.h
  • cocos2d
  • Font
  • 生成于 2014年 五月 29日 星期四 09:41:46 , 为 cocos2d-x使用 doxygen 1.8.6