Documentation ¶
Overview ¶
Package bkmanager 背景管理器.
Index ¶
- type BkManager
- func (b *BkManager) AddBorder(nState xcc.CombinedState, color, width, id int) int
- func (b *BkManager) AddFill(nState xcc.CombinedState, color, id int) int
- func (b *BkManager) AddImage(nState xcc.CombinedState, hImage, id int) int
- func (b *BkManager) AddInfo(pText string) int
- func (b *BkManager) AddRef() int
- func (b *BkManager) Clear() int
- func (b *BkManager) Destroy() int
- 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) int
- func (b *BkManager) GetCount() int
- func (b *BkManager) GetObject(id int) int
- func (b *BkManager) GetRefCount() int
- func (b *BkManager) GetStateTextColor(nState xcc.CombinedState, color *int) bool
- func (b *BkManager) Release() int
- func (b *BkManager) SetBkInfo(pText string) int
- func (b *BkManager) SetInfo(pText string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BkManager ¶
type BkManager struct {
objectbase.ObjectBase
}
背景管理器.
func (*BkManager) AddBorder ¶
func (b *BkManager) AddBorder(nState xcc.CombinedState, color, width, id int) int
背景_添加边框, 添加背景内容边框.
nState: 组合状态.
color: ABGR颜色.
width: 线宽.
id: 背景对象ID, 可忽略(填0).
func (*BkManager) AddFill ¶
func (b *BkManager) AddFill(nState xcc.CombinedState, color, id int) int
背景_添加填充, 添加背景内容填充.
nState: 组合状态.
color: ABGR颜色.
id: 背景对象ID, 可忽略(填0).
func (*BkManager) AddImage ¶
func (b *BkManager) AddImage(nState xcc.CombinedState, hImage, id int) int
背景_添加图片, 添加背景内容图片.
nState: 组合状态.
hImage: 图片句柄.
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 ¶
func (b *BkManager) GetStateTextColor(nState xcc.CombinedState, color *int) bool
背景_取指定状态文本颜色.
nState: 组合状态.
color: 接收返回的ABGR颜色.
Click to show internal directories.
Click to hide internal directories.