slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
Public 属性 | 所有成员列表
z8::ui::TextStyle结构体 参考

#include <Theme.h>

Public 属性

DirectX::XMFLOAT4 Color
 
DirectX::XMFLOAT4 MutedColor
 
DirectX::XMFLOAT4 DisabledColor
 
std::wstring FontFamily = L"Microsoft YaHei"
 
float FontSize = 14.0f
 
float SmallFontSize = 12.0f
 
float HeadingFontSize = 15.0f
 
float LineHeight = 20.0f
 

详细描述

编辑器文字层级;字体族与尺寸集中配置,保证绘制和布局测量使用同一字形。

类成员变量说明

◆ Color

DirectX::XMFLOAT4 z8::ui::TextStyle::Color

◆ DisabledColor

DirectX::XMFLOAT4 z8::ui::TextStyle::DisabledColor

◆ FontFamily

std::wstring z8::ui::TextStyle::FontFamily = L"Microsoft YaHei"

◆ FontSize

float z8::ui::TextStyle::FontSize = 14.0f

◆ HeadingFontSize

float z8::ui::TextStyle::HeadingFontSize = 15.0f

◆ LineHeight

float z8::ui::TextStyle::LineHeight = 20.0f

◆ MutedColor

DirectX::XMFLOAT4 z8::ui::TextStyle::MutedColor

◆ SmallFontSize

float z8::ui::TextStyle::SmallFontSize = 12.0f

该结构体的文档由以下文件生成: