bkobj

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 bkobj 背景对象.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BkObj

type BkObj struct {
	objectbase.ObjectBase
}

背景对象.

func NewBkObjByBkManager

func NewBkObjByBkManager(bkm *bkmanager.BkManager, id int) *BkObj

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

bkm: 背景管理器对象.

id: 背景对象ID.

func NewBkObjByBkManagerHandle

func NewBkObjByBkManagerHandle(hBkm, id int) *BkObj

从BkManager句柄创建BkObj对象, 失败返回nil.

hBkm: 背景管理器句柄.

id: 背景对象ID.

func NewBkObjByHandle

func NewBkObjByHandle(handle int) *BkObj

从BkObj句柄创建BkObj对象.

func (*BkObj) EnableBorder

func (b *BkObj) EnableBorder(bEnable bool) int

背景对象_启用边框, 启用绘制边框.

bEnable: 是否启用.

func (*BkObj) EnableFill

func (b *BkObj) EnableFill(bEnable bool) int

背景对象_启用填充, 启用绘制填充.

bEnable: 是否启用.

func (*BkObj) GetAlign

func (b *BkObj) GetAlign() int

背景对象_取对齐, 返回对齐标识, BkObject_Align_Flag_.

func (*BkObj) GetBorderColor

func (b *BkObj) GetBorderColor() int

背景对象_取边框色, 返回ABGR边框色.

func (*BkObj) GetBorderWidth

func (b *BkObj) GetBorderWidth() int

背景对象_取边框宽度, 返回边框宽度.

func (*BkObj) GetFillColor

func (b *BkObj) GetFillColor() int

背景对象_取填充色, 返回ABGR填充色.

func (*BkObj) GetFont

func (b *BkObj) GetFont() int

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

func (*BkObj) GetImage

func (b *BkObj) GetImage() int

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

func (*BkObj) GetMargin

func (b *BkObj) GetMargin(pMargin *xc.RECT) int

背景对象_取外间距.

pMargin: 接收返回外间距.

func (*BkObj) GetRectRoundAngle

func (b *BkObj) GetRectRoundAngle(pRect *xc.RECT) int

背景对象_取矩形圆角.

pRect: 接收返回圆角大小.

func (*BkObj) GetRotate

func (b *BkObj) GetRotate() int

背景对象_取旋转角度, 返回旋转角度.

func (*BkObj) GetText

func (b *BkObj) GetText() string

背景对象_取文本.

func (*BkObj) GetTextAlign

func (b *BkObj) GetTextAlign() int

背景对象_取文本对齐, 返回文本对齐方式, TextFormatFlag_.

func (*BkObj) IsBorder

func (b *BkObj) IsBorder() bool

背景对象_是否边框.

func (*BkObj) IsFill

func (b *BkObj) IsFill() bool

背景对象_是否填充.

func (*BkObj) SetAlign

func (b *BkObj) SetAlign(nFlags xcc.BkObject_Align_Flag_) int

背景对象_置对齐.

nFlags: 对齐方式, BkObject_Align_Flag_.

func (*BkObj) SetBorderColor

func (b *BkObj) SetBorderColor(color int) int

背景对象_置边框颜色.

color: ABGR颜色值.

func (*BkObj) SetBorderWidth

func (b *BkObj) SetBorderWidth(width int) int

背景对象_置边框宽度.

width: 宽度.

func (*BkObj) SetFillColor

func (b *BkObj) SetFillColor(color int) int

背景对象_置填充颜色.

color: ABGR颜色值.

func (*BkObj) SetFont

func (b *BkObj) SetFont(hFont int) int

背景对象_置字体.

hFont: 字体句柄.

func (*BkObj) SetImage

func (b *BkObj) SetImage(hImage int) int

背景对象_置图片.

hImage: 图片句柄.

func (*BkObj) SetMargin

func (b *BkObj) SetMargin(left int, top int, right int, bottom int) int

背景对象_置外间距, 外间距与对齐标识(BkObject_Align_Flag_)互相依赖.

left: 左边间距.

top: 顶部间距.

right: 右边间距.

bottom: 底部间距.

func (*BkObj) SetRectRoundAngle

func (b *BkObj) SetRectRoundAngle(leftTop int, leftBottom int, rightTop int, rightBottom int) int

背景对象_置矩形圆角.

leftTop: 左上角.

leftBottom: 左下角.

rightTop: 右上角.

rightBottom: 右下角.

func (*BkObj) SetRotate

func (b *BkObj) SetRotate(angle float32) int

背景对象_置旋转.

angle: 旋转角度.

func (*BkObj) SetText

func (b *BkObj) SetText(pText string) int

背景对象_置文本.

pText: 文本字符串.

func (*BkObj) SetTextAlign

func (b *BkObj) SetTextAlign(nAlign xcc.TextFormatFlag_) int

背景对象_置文本对齐.

nAlign: 文本对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_.

Jump to

Keyboard shortcuts

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