字体选择对话框
Definition FontDialog.h:150
virtual int ShowDialog(Window *owner=nullptr) override
显示对话框,并指定所有者窗口
const Property< Color > SelectedColor
选择的颜色
Definition FontDialog.h:196
const Property< sw::Font > Font
选择的字体
Definition FontDialog.h:171
virtual int ShowDialog(Window &owner)
显示对话框,并指定所有者窗口
const Property< sw::FontWeight > FontWeight
选择的字体粗细
Definition FontDialog.h:186
const Property< std::wstring > FontName
选择的字体名称
Definition FontDialog.h:176
FontDialog()
初始化FontDialog
virtual void Close() override
FontDialog默认不支持该函数,调用该函数不会执行任何操作
const Property< FontDialogFlags > Flags
对话框的配置标志
Definition FontDialog.h:166
const Property< bool > ShowEffects
是否显示效果选项(下划线、删除线、颜色)
Definition FontDialog.h:191
CHOOSEFONTW * GetChooseFontStruct()
获取选择字体对话框的配置结构体
virtual void Show() override
FontDialog默认不支持该函数,调用该函数不会执行任何操作
const Property< double > FontSize
选择的字体大小
Definition FontDialog.h:181
对话框接口
Definition IDialog.h:11
值转换器接口
Definition IValueConverter.h:14
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。
Definition Alignment.h:4
FontDialogFlags
https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-choosefonta
Definition FontDialog.h:14
@ FixedPitchOnly
ChooseFont should enumerate and allow selection of only fixed-pitch fonts.
@ NoSimulations
ChooseFont should not display or allow selection of font simulations.
@ LimitSize
ChooseFont should select only font sizes within the range specified by the nSizeMin and nSizeMax memb...
@ NoVectorFonts
ChooseFont should not allow vector font selections.
@ NoVertFonts
Causes the Font dialog box to list only horizontally oriented fonts.
@ InitToLogFontStruct
ChooseFont should use the structure pointed to by the lpLogFont member to initialize the dialog box c...
@ NoOemFonts
Same as the CF_NOVECTORFONTS flag.
@ TrueTypeOnly
指示字体映射器仅从 TrueType 字体中进行选择。 如果系统中没有安装 TrueType 字体,字体映射器将返回到默认行为。