Documentation ¶
Overview ¶
Package bkmanager 背景管理器.
Index ¶
- type BkManager
- func (b *BkManager) AddBorder(nState xcc.CombinedState, color int, width, id int32) *BkManager
- func (b *BkManager) AddFill(nState xcc.CombinedState, color int, id int32) *BkManager
- func (b *BkManager) AddImage(nState xcc.CombinedState, hImage int, id int32) *BkManager
- func (b *BkManager) AddInfo(pText string) int32
- func (b *BkManager) AddRef() *BkManager
- func (b *BkManager) Clear() *BkManager
- func (b *BkManager) Destroy() *BkManager
- func (b *BkManager) Draw(nState xcc.CombinedState, hDraw int, pRect *xc.RECT) bool
- func (b *BkManager) DrawEx(nState xcc.CombinedState, hDraw int, pRect *xc.RECT, ...) bool
- func (b *BkManager) EnableAutoDestroy(bEnable bool) *BkManager
- func (b *BkManager) GetCount() int32
- func (b *BkManager) GetObject(id int32) int
- func (b *BkManager) GetRefCount() int32
- func (b *BkManager) GetStateTextColor(nState xcc.CombinedState, color *int) bool
- func (b *BkManager) Release() *BkManager
- func (b *BkManager) SetBkInfo(pText string) int32
- func (b *BkManager) SetInfo(pText string) int32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BkManager ¶
type BkManager struct {
objectbase.ObjectBase
}
BkManager 背景管理器.
func NewByHandle ¶ added in v1.3.352
NewByHandle 从句柄创建背景管理器对象.
func (*BkManager) AddBorder ¶
背景_添加边框, 添加背景内容边框.
nState: 组合状态.
color: ARGB 颜色.
width: 线宽.
id: 背景对象ID, 可忽略(填0).
func (*BkManager) DrawEx ¶
func (b *BkManager) DrawEx(nState xcc.CombinedState, hDraw int, pRect *xc.RECT, nStateEx xcc.CombinedState) bool
背景_绘制扩展, 绘制背景内容, 设置条件.
nState: 组合状态.
hDraw: 图形绘制句柄.
pRect: 区域坐标.
nStateEx: 当(nState)中包含(nStateEx)中的一个或多个状态时有效.
注解: 例如用来绘制列表项时, nState中包含项的状态(nStateEx)才会绘制, 避免列表项与元素背景叠加.
func (*BkManager) GetStateTextColor ¶ added in v1.3.330
func (b *BkManager) GetStateTextColor(nState xcc.CombinedState, color *int) bool
背景_取指定状态文本颜色.
nState: 组合状态.
color: 接收返回的ARGB 颜色.
Click to show internal directories.
Click to hide internal directories.