GraceFt v2.3
开源图形引擎 EGE(Easy Graphics Engine) 的高层封装库
 
载入中...
搜索中...
未找到
GFt::TextSet类 参考

文本环境设置类, 更多...

#include <TextSet.h>

Public 成员函数

 TextSet (const Color &color, const Font &font=Font(L"宋体"))
 构造函数
 
 TextSet (const TextSet &other)=default
 
 TextSet (TextSet &&other)=default
 
Fontfont ()
 字体设置
 
const Fontfont () const
 
Color getColor () const
 获取颜色
 
bool isTransparent () const
 获取文本背景模式
 
TextSetoperator= (const TextSet &other)=default
 
TextSetoperator= (TextSet &&other)=default
 
void setColor (const Color &color)
 设置颜色
 
void setTransparent (bool transparent)
 设置文本背景模式
 

友元

class Graphics
 

详细描述

文本环境设置类,

用于设置字体、颜色、透明度等属性

构造及析构函数说明

◆ TextSet() [1/3]

GFt::TextSet::TextSet ( const Color & color,
const Font & font = Font(L"宋体") )

构造函数

参数
color文本颜色
font字体

◆ TextSet() [2/3]

GFt::TextSet::TextSet ( const TextSet & other)
default

◆ TextSet() [3/3]

GFt::TextSet::TextSet ( TextSet && other)
default

成员函数说明

◆ font() [1/2]

Font & GFt::TextSet::font ( )

字体设置

返回
保有的字体对象

◆ font() [2/2]

const Font & GFt::TextSet::font ( ) const

◆ getColor()

Color GFt::TextSet::getColor ( ) const

获取颜色

返回
颜色

◆ isTransparent()

bool GFt::TextSet::isTransparent ( ) const

获取文本背景模式

返回
是否为透明

◆ operator=() [1/2]

TextSet & GFt::TextSet::operator= ( const TextSet & other)
default

◆ operator=() [2/2]

TextSet & GFt::TextSet::operator= ( TextSet && other)
default

◆ setColor()

void GFt::TextSet::setColor ( const Color & color)

设置颜色

参数
color颜色

◆ setTransparent()

void GFt::TextSet::setTransparent ( bool transparent)

设置文本背景模式

参数
transparent是否透明

友元及相关符号说明

◆ Graphics

friend class Graphics
friend