Documentation ¶
Overview ¶
字体
Index ¶
- type FontX
- func NewFontX(size int) *FontX
- func NewFontX2(pName string, size int, style int) *FontX
- func NewFontX3(pInfo *xc.Font_Info_) *FontX
- func NewFontXByHandle(handle int) *FontX
- func NewFontXByName(name string) *FontX
- func NewFontXEx(pFontInfo *xc.LOGFONTW) *FontX
- func NewFontXFromFile(pFontFile string, size int, style int) *FontX
- func NewFontXFromFont(pFont int) *FontX
- func NewFontXFromHFONT(hFont int) *FontX
- func (f *FontX) AddRef() int
- func (f *FontX) Destroy() int
- func (f *FontX) EnableAutoDestroy(bEnable bool) int
- func (f *FontX) GetFont() int
- func (f *FontX) GetFontInfo(pInfo *xc.Font_Info_) int
- func (f *FontX) GetLOGFONTW(hdc int, pOut *xc.LOGFONTW) bool
- func (f *FontX) GetRefCount() int
- func (f *FontX) Release() int
- func (f *FontX) SetHandle(hFontX int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FontX ¶
type FontX struct {
Handle int // HFONTX
}
字体
func NewFontXByName ¶ added in v1.0.1
根据资源文件中的name创建对象, 失败返回nil
func NewFontXFromFile ¶
字体_创建从文件, 创建字体从文件 pFontFile: 字体文件名. size: 字体大小. style: 样式, FontStyle_
func NewFontXFromFont ¶
字体_创建从Font, 创建炫彩字体从GDI+字体(Font) pFont: GDI+字体指针(Font*).
func NewFontXFromHFONT ¶
字体_创建从HFONT, 创建炫彩字体从现有HFONT字体 hFont: 字体句柄.
func (*FontX) EnableAutoDestroy ¶
字体_启用自动销毁, 是否自动销毁 bEnable: 是否启用.
func (*FontX) GetFontInfo ¶
func (f *FontX) GetFontInfo(pInfo *xc.Font_Info_) int
字体_取信息, 获取字体信息. pInfo: 接收返回的字体信息.
func (*FontX) GetLOGFONTW ¶
字体_取LOGFONTW, 获取字体LOGFONTW hdc: hdc句柄 pOut: 接收返回信息
Click to show internal directories.
Click to hide internal directories.