bkobj

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: 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
}

BkObj 背景对象.

func NewByBkm added in v1.3.352

func NewByBkm(bkm *bkmanager.BkManager, id int32) *BkObj

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

bkm: 背景管理器对象.

id: 背景对象ID.

func NewByBkmHandle added in v1.3.352

func NewByBkmHandle(hBkm int, id int32) *BkObj

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

hBkm: 背景管理器句柄.

id: 背景对象ID.

func NewByHandle added in v1.3.352

func NewByHandle(handle int) *BkObj

NewByHandle 从BkObj句柄创建BkObj对象.

func (*BkObj) EnableBorder

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

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

bEnable: 是否启用.

func (*BkObj) EnableFill

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

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

bEnable: 是否启用.

func (*BkObj) GetAlign

func (b *BkObj) GetAlign() xcc.BkObject_Align_Flag_

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

func (*BkObj) GetBorderColor

func (b *BkObj) GetBorderColor() int

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

func (*BkObj) GetBorderWidth

func (b *BkObj) GetBorderWidth() *BkObj

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

func (*BkObj) GetFillColor

func (b *BkObj) GetFillColor() int

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

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

背景对象_取外间距.

pMargin: 接收返回外间距.

func (*BkObj) GetRectRoundAngle

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

背景对象_取矩形圆角.

pRect: 接收返回圆角大小.

func (*BkObj) GetRotate

func (b *BkObj) GetRotate() *BkObj

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

func (*BkObj) GetText

func (b *BkObj) GetText() string

背景对象_取文本.

func (*BkObj) GetTextAlign

func (b *BkObj) GetTextAlign() xcc.TextFormatFlag_

背景对象_取文本对齐, 返回文本对齐方式: xcc.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_) *BkObj

背景对象_置对齐.

nFlags: 对齐方式: xcc.BkObject_Align_Flag_.

func (*BkObj) SetBorderColor

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

背景对象_置边框颜色.

color: xc.ARGB 颜色值.

func (*BkObj) SetBorderWidth

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

背景对象_置边框宽度.

width: 宽度.

func (*BkObj) SetFillColor

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

背景对象_置填充颜色.

color: ARGB 颜色值.

func (*BkObj) SetFont

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

背景对象_置字体.

hFont: 字体句柄.

func (*BkObj) SetImage

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

背景对象_置图片.

hImage: 图片句柄.

func (*BkObj) SetMargin

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

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

left: 左边间距.

top: 顶部间距.

right: 右边间距.

bottom: 底部间距.

func (*BkObj) SetRectRoundAngle

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

背景对象_置矩形圆角.

leftTop: 左上角.

leftBottom: 左下角.

rightTop: 右上角.

rightBottom: 右下角.

func (*BkObj) SetRotate

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

背景对象_置旋转.

angle: 旋转角度.

func (*BkObj) SetText

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

背景对象_置文本.

pText: 文本字符串.

func (*BkObj) SetTextAlign

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

背景对象_置文本对齐.

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

Jump to

Keyboard shortcuts

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