bkmanager

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

背景管理器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BkManager

type BkManager struct {
	Handle int // HBKM
}

背景管理器

func NewBkManager

func NewBkManager() *BkManager

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

func NewBkManagerByHandle added in v1.0.1

func NewBkManagerByHandle(handle int) *BkManager

从句柄创建对象

func NewBkManagerByName added in v1.0.1

func NewBkManagerByName(name string) *BkManager

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

func (*BkManager) AddBorder

func (b *BkManager) AddBorder(nState int, color int, alpha uint8, width int) int

背景_添加边框, 添加背景内容边框 nState: 组合状态 color: RGB颜色. alpha: 透明度. width: 线宽.

func (*BkManager) AddFill

func (b *BkManager) AddFill(nState int, color int, alpha uint8) int

背景_添加填充, 添加背景内容填充 nState: 组合状态, Window_State_Flag_ color: RGB颜色. alpha: 透明度.

func (*BkManager) AddImage

func (b *BkManager) AddImage(nState int, hImage int) int

背景_添加图片, 添加背景内容图片 nState: 组合状态 hImage: 图片句柄.

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 int, hDraw int, pRect *xc.RECT) bool

背景_绘制, 绘制背景内容 nState: 组合状态 hDraw: 图形绘制句柄. pRect: 区域坐标.

func (*BkManager) DrawEx

func (b *BkManager) DrawEx(nState int, hDraw int, pRect *xc.RECT, nStateEx int) 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) GetRefCount

func (b *BkManager) GetRefCount() int

背景_取引用计数

func (*BkManager) Release

func (b *BkManager) Release() int

背景_释放引用计数

func (*BkManager) SetBkInfo

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

背景_置内容, 设置背景内容, 返回设置的背景对象数量 pText: 背景内容字符串.

func (*BkManager) SetHandle added in v1.0.1

func (b *BkManager) SetHandle(hBkm int)

给本类的HBKM赋值

Jump to

Keyboard shortcuts

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