bkobj

package
v1.3.399 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MIT Imports: 5 Imported by: 1

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 NewByHandle added in v1.3.352

func NewByHandle(handle int) *BkObj

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

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() uint32

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

func (*BkObj) GetBorderWidth

func (b *BkObj) GetBorderWidth() *BkObj

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

func (*BkObj) GetFillColor

func (b *BkObj) GetFillColor() uint32

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

func (*BkObj) GetFont

func (b *BkObj) GetFont() int

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

func (*BkObj) GetFontObj added in v1.3.399

func (b *BkObj) GetFontObj() *font.Font

背景对象_取字体对象, 返回字体对象, 失败返回 nil.

func (*BkObj) GetImage

func (b *BkObj) GetImage() int

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

func (*BkObj) GetImageObj added in v1.3.399

func (b *BkObj) GetImageObj() *imagex.Image

背景对象_取图片对象, 返回图片对象, 失败返回 nil.

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

背景对象_置边框颜色.

color: xc.RGBA 颜色值.

func (*BkObj) SetBorderWidth

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

背景对象_置边框宽度.

width: 宽度.

func (*BkObj) SetFillColor

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

背景对象_置填充颜色.

color: xc.RGBA 颜色值.

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(text string) *BkObj

背景对象_置文本.

text: 文本字符串.

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