Documentation ¶
Overview ¶
Package font 字体.
Index ¶
- type Font
- func NewFont(size int) *Font
- func NewFontByHandle(handle int) *Font
- func NewFontByName(name string) *Font
- func NewFontEX(pName string, size int, style xcc.FontStyle_) *Font
- func NewFontFromFile(pFontFile string, size int, style xcc.FontStyle_) *Font
- func NewFontFromFont(pFont int) *Font
- func NewFontFromHFONT(hFont int) *Font
- func NewFontFromMem(data []byte, fontSize int, style xcc.FontStyle_) *Font
- func NewFontFromRes(id int, pType string, fontSize int, style xcc.FontStyle_, hModule int) *Font
- func NewFontLOGFONTW(pFontInfo *xc.LOGFONTW) *Font
- func (f *Font) AddRef() int
- func (f *Font) Destroy() int
- func (f *Font) EnableAutoDestroy(bEnable bool) int
- func (f *Font) GetFont() int
- func (f *Font) GetFontInfo(pInfo *xc.Font_Info_) int
- func (f *Font) GetLOGFONTW(hdc int, pOut *xc.LOGFONTW) bool
- func (f *Font) GetRefCount() int
- func (f *Font) Release() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Font ¶
type Font struct {
objectbase.ObjectBase
}
Font 炫彩字体.
func NewFont ¶
NewFont 字体_创建, 创建炫彩字体. 当字体句柄与元素关联后, 会自动释放.
@param size 字体大小,单位(pt,磅). @return *Font 返回字体对象.
func NewFontEX ¶
func NewFontEX(pName string, size int, style xcc.FontStyle_) *Font
NewFontEX 字体_创建扩展. 创建炫彩字体.
@param pName 字体名称. @param size 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @return *Font 返回字体对象.
func NewFontFromFile ¶
func NewFontFromFile(pFontFile string, size int, style xcc.FontStyle_) *Font
NewFontFromFile 字体_创建从文件. 创建字体从文件.
@param pFontFile 字体文件名. @param size 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @return *Font 返回字体对象.
func NewFontFromFont ¶
NewFontFromFont 字体_创建从Font. 创建炫彩字体从GDI+字体(Font).
@param pFont GDI+字体指针(Font*). @return *Font 返回字体对象.
func NewFontFromHFONT ¶
NewFontFromHFONT 字体_创建从HFONT. 创建炫彩字体从现有HFONT字体.
@param hFont 字体句柄. @return *Font 返回字体对象.
func NewFontFromMem ¶
func NewFontFromMem(data []byte, fontSize int, style xcc.FontStyle_) *Font
NewFontFromMem 字体_创建从内存. 创建炫彩字体从内存.
@param data 字体文件数据. @param fontSize 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @return *Font 返回字体对象.
func NewFontFromRes ¶
NewFontFromRes 字体_创建从资源. 创建字体从资源.
@param id xx. @param pType xx. @param fontSize 字体大小, 单位(pt,磅). @param style 字体样式, xcc.FontStyle_. @param hModule xx. @return *Font 返回字体对象.
func NewFontLOGFONTW ¶
NewFontLOGFONTW 字体_创建从LOGFONT. 创建炫彩字体.
@param pFontInfo 字体信息. @return *Font 返回字体对象.
func (*Font) EnableAutoDestroy ¶
EnableAutoDestroy 字体_启用自动销毁. 是否自动销毁.
@param bEnable 是否启用. @return int
func (*Font) GetFontInfo ¶
func (f *Font) GetFontInfo(pInfo *xc.Font_Info_) int
GetFontInfo 字体_取信息. 获取字体信息.
@param pInfo 接收返回的字体信息. @return int
func (*Font) GetLOGFONTW ¶
GetLOGFONTW 字体_取LOGFONTW. 获取字体LOGFONTW.
@param hdc hdc句柄. @param pOut 接收返回信息. @return bool
Click to show internal directories.
Click to hide internal directories.