YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Drawing::FontFamily类 参考

字型家族 (Typeface Family) 标识。 更多...

#include <Font.h>

类 YSLib::Drawing::FontFamily 继承关系图:
YSLib::Drawing::FontFamily 的协作图:

Public 类型

typedef map< const StyleName,
Typeface * > 
FaceMap
 字型组索引类型。
 

Public 成员函数

 FontFamily (FontCache &, const FamilyName &)
 使用字体缓存引用和名称构造字型家族。
 
void operator+= (Typeface &)
 向字型组和字型组索引添加字型对象。
 
bool operator-= (Typeface &)
 从字型组和字型组索引中移除指定字型对象。
 
const FamilyNameGetFamilyName () const ynothrow
 
TypefaceGetTypefacePtr (FontStyle) const
 取指定样式的字型指针。
 
TypefaceGetTypefacePtr (const StyleName &) const
 取指定样式名称的字型指针。
 

Public 属性

FontCacheCache
 

Protected 属性

FaceMap mFaces
 字型组索引类型。
 

Private 属性

FamilyName family_name
 

额外继承的成员函数

- Private 成员函数 继承自 ystdex::noncopyable
 noncopyable (const noncopyable &)=delete
 禁止复制构造。
 
noncopyableoperator= (const noncopyable &)=delete
 禁止赋值复制。
 
 noncopyable ()=default
 protected 构造:默认实现。
 
 ~noncopyable ()=default
 protected 析构:默认实现。
 

详细描述

字型家族 (Typeface Family) 标识。

警告
非虚析构。
自从
build 145

在文件 Font.h112 行定义.

成员类型定义说明

字型组索引类型。

在文件 Font.h115 行定义.

构造及析构函数说明

FontFamily::FontFamily ( FontCache cache,
const FamilyName name 
)

使用字体缓存引用和名称构造字型家族。

在文件 Font.cpp104 行定义.

成员函数说明

const FamilyName& YSLib::Drawing::FontFamily::GetFamilyName ( ) const
inline

在文件 Font.h144 行定义.

Typeface* YSLib::Drawing::FontFamily::GetTypefacePtr ( FontStyle  ) const

取指定样式的字型指针。

注解
若非 Regular 样式失败则尝试取 Regular 样式的字型指针。

参考自 YSLib::Drawing::FontCache::GetTypefacePtr() , 以及 style().

这是这个函数的调用关系图:

Typeface* YSLib::Drawing::FontFamily::GetTypefacePtr ( const StyleName ) const

取指定样式名称的字型指针。

void FontFamily::operator+= ( Typeface face)

向字型组和字型组索引添加字型对象。

自从
build 277

在文件 Font.cpp109 行定义.

参考 YSLib::Drawing::Typeface::GetStyleName() , 以及 mFaces.

函数调用图:

bool FontFamily::operator-= ( Typeface face)

从字型组和字型组索引中移除指定字型对象。

自从
build 277

在文件 Font.cpp115 行定义.

参考 YSLib::Drawing::Typeface::GetStyleName() , 以及 mFaces.

函数调用图:

类成员变量说明

FontCache& YSLib::Drawing::FontFamily::Cache

在文件 Font.h117 行定义.

FamilyName YSLib::Drawing::FontFamily::family_name
private

在文件 Font.h120 行定义.

FaceMap YSLib::Drawing::FontFamily::mFaces
protected

字型组索引类型。

在文件 Font.h123 行定义.

参考自 operator+=() , 以及 operator-=().


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