bkmanager

package
v0.0.0-...-48d22b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package bkmanager 背景管理器.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BkManager

type BkManager struct {
	objectbase.ObjectBase
}

背景管理器.

func NewBkManager

func NewBkManager() *BkManager

背景_创建, 创建背景管理器.

func NewBkManagerByHandle

func NewBkManagerByHandle(handle int) *BkManager

从句柄创建对象.

func NewBkManagerByName

func NewBkManagerByName(name string) *BkManager

从name创建对象, 失败返回nil.

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) AddInfo

func (b *BkManager) AddInfo(pText string) int

背景_添加内容, 添加背景内容, 返回添加的背景对象数量.

pText: 背景内容字符串.

func (*BkManager) AddRef

func (b *BkManager) AddRef() int

背景_增加引用计数.

func (*BkManager) Clear

func (b *BkManager) Clear() int

背景_清空, 清空背景内容.

func (*BkManager) Destroy

func (b *BkManager) Destroy() int

背景_销毁.

func (*BkManager) Draw

func (b *BkManager) Draw(nState xcc.CombinedState, hDraw int, pRect *xc.RECT) bool

背景_绘制, 绘制背景内容.

nState: 组合状态.

hDraw: 图形绘制句柄.

pRect: 区域坐标.

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) EnableAutoDestroy

func (b *BkManager) EnableAutoDestroy(bEnable bool) int

背景_启用自动销毁, 是否自动销毁.

bEnable: 是否启用.

func (*BkManager) GetCount

func (b *BkManager) GetCount() int

背景_取数量, 获取背景内容数量.

func (*BkManager) GetObject

func (b *BkManager) GetObject(id int) int

背景_取背景对象, 返回BkObj对象句柄.

id: 背景对象ID.

func (*BkManager) GetRefCount

func (b *BkManager) GetRefCount() int

背景_取引用计数.

func (*BkManager) GetStateTextColor

func (b *BkManager) GetStateTextColor(nState xcc.CombinedState, color *int) bool

背景_取指定状态文本颜色.

nState: 组合状态.

color: 接收返回的ABGR颜色.

func (*BkManager) Release

func (b *BkManager) Release() int

背景_释放引用计数.

func (*BkManager) SetBkInfo

func (b *BkManager) SetBkInfo(pText string) int

!废弃函数, 保留为了兼容旧版; 请使用SetInfo().

背景_置内容, 设置背景内容, 返回设置的背景对象数量.

pText: 背景内容字符串.

func (*BkManager) SetInfo

func (b *BkManager) SetInfo(pText string) int

背景_取引用计数, 设置背景内容, 返回设置的背景对象数量.

pText: 背景内容字符串.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL