bkmanager

package
v1.3.390 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 4 Imported by: 1

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
}

BkManager 背景管理器.

func New added in v1.3.352

func New() *BkManager

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

func NewByHandle added in v1.3.352

func NewByHandle(handle int) *BkManager

NewByHandle 从句柄创建背景管理器对象.

func NewByName added in v1.3.352

func NewByName(name string) *BkManager

NewByName 从name创建背景管理器对象, 失败返回nil.

func (*BkManager) AddBorder

func (b *BkManager) AddBorder(nState xcc.CombinedState, color int, width, id int32) *BkManager

背景_添加边框, 添加背景内容边框.

nState: 组合状态.

color: ARGB 颜色.

width: 线宽.

id: 背景对象ID, 可忽略(填0).

func (*BkManager) AddFill

func (b *BkManager) AddFill(nState xcc.CombinedState, color int, id int32) *BkManager

背景_添加填充, 添加背景内容填充.

nState: 组合状态.

color: ARGB 颜色.

id: 背景对象ID, 可忽略(填0).

func (*BkManager) AddImage

func (b *BkManager) AddImage(nState xcc.CombinedState, hImage int, id int32) *BkManager

背景_添加图片, 添加背景内容图片.

nState: 组合状态.

hImage: 图片句柄.

id: 背景对象ID, 可忽略(填0).

func (*BkManager) AddInfo

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

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

pText: 背景内容字符串.

func (*BkManager) AddRef

func (b *BkManager) AddRef() *BkManager

背景_增加引用计数.

func (*BkManager) Clear

func (b *BkManager) Clear() *BkManager

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

func (*BkManager) Destroy

func (b *BkManager) Destroy() *BkManager

背景_销毁.

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) *BkManager

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

bEnable: 是否启用.

func (*BkManager) GetCount

func (b *BkManager) GetCount() int32

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

func (*BkManager) GetObject added in v1.3.330

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

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

id: 背景对象ID.

func (*BkManager) GetRefCount

func (b *BkManager) GetRefCount() int32

背景_取引用计数.

func (*BkManager) GetStateTextColor added in v1.3.330

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

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

nState: 组合状态.

color: 接收返回的ARGB 颜色.

func (*BkManager) Release

func (b *BkManager) Release() *BkManager

背景_释放引用计数.

func (*BkManager) SetBkInfo

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

Deprecated

!这是旧版函数, 请使用 SetInfo

func (*BkManager) SetInfo added in v1.3.320

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

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

pText: 背景内容字符串.

Jump to

Keyboard shortcuts

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