YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
字型家族 (Typeface Family) 标识。 更多...
#include <Font.h>
Public 类型 | |
using | FaceMap = map< const StyleName, Typeface * > |
字型组索引类型。 更多... | |
Public 成员函数 | |
FontFamily (FontCache &, const FamilyName &) | |
使用字体缓存引用和名称构造字型家族。 更多... | |
void | operator+= (Typeface &) |
向字型组和字型组索引添加字型对象。 更多... | |
bool | operator-= (Typeface &) |
从字型组和字型组索引中移除指定字型对象。 更多... | |
DefGetter (const ynothrow, const FamilyName &, FamilyName, family_name) Typeface *GetTypefacePtr(FontStyle) const | |
取指定样式的字型指针。 更多... | |
Typeface * | GetTypefacePtr (const StyleName &) const |
取指定样式名称的字型指针。 更多... | |
Typeface & | GetTypefaceRef (FontStyle) const |
Typeface & | GetTypefaceRef (const StyleName &) const |
Public 属性 | |
FontCache & | Cache |
Protected 属性 | |
FaceMap | mFaces |
字型组索引类型。 更多... | |
Private 属性 | |
FamilyName | family_name |
额外继承的成员函数 | |
![]() | |
noncopyable (const noncopyable &)=delete | |
禁止复制构造。 更多... | |
noncopyable & | operator= (const noncopyable &)=delete |
禁止赋值复制。 更多... | |
noncopyable ()=default | |
protected 构造:默认实现。 更多... | |
~noncopyable ()=default | |
protected 析构:默认实现。 更多... | |
using YSLib::Drawing::FontFamily::FaceMap = map<const StyleName, Typeface*> |
YSLib::Drawing::FontFamily::FontFamily | ( | FontCache & | cache, |
const FamilyName & | name | ||
) |
YSLib::Drawing::FontFamily::DefGetter | ( | const ynothrow | , |
const FamilyName & | , | ||
FamilyName | , | ||
family_name | |||
) | const |
取指定样式的字型指针。
void YSLib::Drawing::FontFamily::operator+= | ( | Typeface & | face | ) |
bool YSLib::Drawing::FontFamily::operator-= | ( | Typeface & | face | ) |
|
private |
|
protected |