Documentation ¶
Overview ¶
Package bkobj 背景对象.
Index ¶
- type BkObj
- func (b *BkObj) EnableBorder(bEnable bool) *BkObj
- func (b *BkObj) EnableFill(bEnable bool) *BkObj
- func (b *BkObj) GetAlign() xcc.BkObject_Align_Flag_
- func (b *BkObj) GetBorderColor() int
- func (b *BkObj) GetBorderWidth() *BkObj
- func (b *BkObj) GetFillColor() int
- func (b *BkObj) GetFont() int
- func (b *BkObj) GetImage() int
- func (b *BkObj) GetMargin(pMargin *xc.RECT) *BkObj
- func (b *BkObj) GetRectRoundAngle(pRect *xc.RECT) *BkObj
- func (b *BkObj) GetRotate() *BkObj
- func (b *BkObj) GetText() string
- func (b *BkObj) GetTextAlign() xcc.TextFormatFlag_
- func (b *BkObj) IsBorder() bool
- func (b *BkObj) IsFill() bool
- func (b *BkObj) SetAlign(nFlags xcc.BkObject_Align_Flag_) *BkObj
- func (b *BkObj) SetBorderColor(color int) *BkObj
- func (b *BkObj) SetBorderWidth(width int32) *BkObj
- func (b *BkObj) SetFillColor(color int) *BkObj
- func (b *BkObj) SetFont(hFont int) *BkObj
- func (b *BkObj) SetImage(hImage int) *BkObj
- func (b *BkObj) SetMargin(left, top, right, bottom int32) *BkObj
- func (b *BkObj) SetRectRoundAngle(leftTop, leftBottom, rightTop, rightBottom int32) *BkObj
- func (b *BkObj) SetRotate(angle float32) *BkObj
- func (b *BkObj) SetText(pText string) *BkObj
- func (b *BkObj) SetTextAlign(nAlign xcc.TextFormatFlag_) *BkObj
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
NewByBkm 从BkManager对象创建BkObj对象, 失败返回nil.
bkm: 背景管理器对象.
id: 背景对象ID.
func NewByBkmHandle ¶ added in v1.3.352
NewByBkmHandle 从BkManager句柄创建BkObj对象, 失败返回nil.
hBkm: 背景管理器句柄.
id: 背景对象ID.
func NewByHandle ¶ added in v1.3.352
NewByHandle 从BkObj句柄创建BkObj对象.
func (*BkObj) GetAlign ¶
func (b *BkObj) GetAlign() xcc.BkObject_Align_Flag_
背景对象_取对齐, 返回对齐标识: xcc.BkObject_Align_Flag_.
func (*BkObj) GetTextAlign ¶
func (b *BkObj) GetTextAlign() xcc.TextFormatFlag_
背景对象_取文本对齐, 返回文本对齐方式: xcc.TextFormatFlag_.
func (*BkObj) SetAlign ¶
func (b *BkObj) SetAlign(nFlags xcc.BkObject_Align_Flag_) *BkObj
背景对象_置对齐.
nFlags: 对齐方式: xcc.BkObject_Align_Flag_.
func (*BkObj) SetMargin ¶
背景对象_置外间距, 外间距与对齐标识(BkObject_Align_Flag_)互相依赖.
left: 左边间距.
top: 顶部间距.
right: 右边间距.
bottom: 底部间距.
func (*BkObj) SetRectRoundAngle ¶
背景对象_置矩形圆角.
leftTop: 左上角.
leftBottom: 左下角.
rightTop: 右上角.
rightBottom: 右下角.
func (*BkObj) SetTextAlign ¶
func (b *BkObj) SetTextAlign(nAlign xcc.TextFormatFlag_) *BkObj
背景对象_置文本对齐.
nAlign: 文本对齐方式: xcc.TextFormatFlag_, xcc.TextAlignFlag_, xcc.TextTrimming_.
Click to show internal directories.
Click to hide internal directories.