Documentation
¶
Index ¶
- type Shape
- func (s *Shape) AdjustLayout() int
- func (s *Shape) Destroy() int
- func (s *Shape) GetContentSize(pSize *xc.SIZE) int
- func (s *Shape) GetHWINDOW() int
- func (s *Shape) GetHeight() int
- func (s *Shape) GetID() int
- func (s *Shape) GetName() string
- func (s *Shape) GetParent() int
- func (s *Shape) GetRect(pRect *xc.RECT) int
- func (s *Shape) GetRectLogic(pRect *xc.RECT) int
- func (s *Shape) GetUID() int
- func (s *Shape) GetWidth() int
- func (s *Shape) GetWndClientRect(pRect *xc.RECT) int
- func (s *Shape) GetZOrder() int
- func (s *Shape) Move(x int, y int) int
- func (s *Shape) Redraw() int
- func (s *Shape) RemoveShape() int
- func (s *Shape) SetHXCGUI(h int)
- func (s *Shape) SetID(nID int) int
- func (s *Shape) SetName(pName string) int
- func (s *Shape) SetRect(pRect *xc.RECT) int
- func (s *Shape) SetRectLogic(pRect *xc.RECT, bRedraw bool) bool
- func (s *Shape) SetUID(nUID int) int
- func (s *Shape) ShowLayout(bShow bool) int
- type ShapeEllipse
- type ShapeGif
- type ShapeGroupBox
- func (s *ShapeGroupBox) EnableRoundAngle(bEnable bool) int
- func (s *ShapeGroupBox) GetRoundAngle(pWidth *int, pHeight *int) int
- func (s *ShapeGroupBox) GetTextOffset(pOffsetX *int, pOffsetY *int) int
- func (s *ShapeGroupBox) SetBorderColor(color int, alpha uint8) int
- func (s *ShapeGroupBox) SetFontX(hFontX int) int
- func (s *ShapeGroupBox) SetRoundAngle(nWidth int, nHeight int) int
- func (s *ShapeGroupBox) SetText(pText string) int
- func (s *ShapeGroupBox) SetTextColor(color int, alpha uint8) int
- func (s *ShapeGroupBox) SetTextOffset(offsetX int, offsetY int) int
- type ShapeLine
- type ShapePicture
- type ShapeRect
- func (s *ShapeRect) EnableBorder(bEnable bool) int
- func (s *ShapeRect) EnableFill(bEnable bool) int
- func (s *ShapeRect) EnableRoundAngle(bEnable bool) int
- func (s *ShapeRect) GetRoundAngle(pWidth *int, pHeight *int) int
- func (s *ShapeRect) SetBorderColor(color int, alpha uint8) int
- func (s *ShapeRect) SetFillColor(color int, alpha uint8) int
- func (s *ShapeRect) SetRoundAngle(nWidth int, nHeight int) int
- type ShapeText
- func (s *ShapeText) GetFont() int
- func (s *ShapeText) GetText() string
- func (s *ShapeText) GetTextColor() int
- func (s *ShapeText) GetTextLength() int
- func (s *ShapeText) SetFont(hFontx int) int
- func (s *ShapeText) SetOffset(x int, y int) int
- func (s *ShapeText) SetText(pName string) int
- func (s *ShapeText) SetTextAlign(align int) int
- func (s *ShapeText) SetTextColor(color int, alpha uint8) int
- type Table
- func (t *Table) ComboCol(iRow int, iCol int, count int) int
- func (t *Table) ComboRow(iRow int, iCol int, count int) int
- func (t *Table) GetItemRect(iRow int, iCol int, pRect *xc.RECT) bool
- func (t *Table) Reset(nRow int, nCol int) int
- func (t *Table) SetBorderColor(color int) int
- func (t *Table) SetColWidth(iCol int, width int) int
- func (t *Table) SetFont(hFont int) int
- func (t *Table) SetItemBkColor(iRow int, iCol int, color int, bColor bool) int
- func (t *Table) SetItemFlag(iRow int, iCol int, flag int) int
- func (t *Table) SetItemFont(iRow int, iCol int, hFont int) int
- func (t *Table) SetItemLine(iRow1 int, iCol1 int, iRow2 int, iCol2 int, nFlag int, color int) int
- func (t *Table) SetItemPadding(leftSize int, topSize int, rightSize int, bottomSize int) int
- func (t *Table) SetItemText(iRow int, iCol int, pText string) int
- func (t *Table) SetItemTextAlign(iRow int, iCol int, nAlign int) int
- func (t *Table) SetItemTextColor(iRow int, iCol int, color int, bColor bool) int
- func (t *Table) SetRowHeight(iRow int, height int) int
- func (t *Table) SetTextColor(color int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shape ¶
type Shape struct {
HXCGUI int
}
func (*Shape) GetContentSize ¶
形状_取内容大小 ,仅计算有效内容, 填充父, 权重依赖父级所以无法计算 pSize: 接收返回内容大小值.
func (*Shape) GetRectLogic ¶
形状_取逻辑坐标, 获取元素坐标, 逻辑坐标, 包含滚动视图偏移 pRect: 坐标.
func (*Shape) GetWndClientRect ¶
形状_取基于窗口客户区坐标, 基于窗口客户区坐标 pRect: 坐标.
func (*Shape) SetRectLogic ¶
形状_置逻辑坐标, 设置元素坐标, 逻辑坐标, 包含滚动视图偏移 pRect: 坐标. bRedraw: 是否重绘.
func (*Shape) ShowLayout ¶
形状_显示布局边界, 是否显示布局边界. bShow: 是否显示.
type ShapeEllipse ¶
type ShapeEllipse struct {
Shape
}
func NewShapeEllipse ¶
形状圆_创建, 创建圆形形状对象, 返回句柄 x: X坐标. y: Y坐标. cx: 宽度. cy: 高度. hParent: 父对象句柄.
func (*ShapeEllipse) EnableBorder ¶
func (s *ShapeEllipse) EnableBorder(bEnable bool) int
形状圆_启用边框, 启用绘制圆边框 bEnable: 是否启用.
func (*ShapeEllipse) EnableFill ¶
func (s *ShapeEllipse) EnableFill(bEnable bool) int
形状圆_启用填充, 启用填充圆 bEnable: 是否启用.
func (*ShapeEllipse) SetBorderColor ¶
func (s *ShapeEllipse) SetBorderColor(color int, alpha uint8) int
形状圆_置边框色 color: RGB颜色值. alpha: 透明度.
func (*ShapeEllipse) SetFillColor ¶
func (s *ShapeEllipse) SetFillColor(color int, alpha uint8) int
形状圆_置填充色 color: RGB颜色值. alpha: 透明度.
type ShapeGif ¶
type ShapeGif struct {
Shape
}
func NewShapeGif ¶
形状GIF_创建, 创建形状对象GIF, 成功返回形状对象GIF句柄, 否则返回NULL x: X坐标. y: Y坐标. cx: 宽度. cy: 高度. hParent: 父对象句柄.
type ShapeGroupBox ¶
type ShapeGroupBox struct {
Shape
}
func NewShapeGroupBox ¶
形状组框_创建, 创建组框形状对象, 返回句柄 x: X坐标. y: Y坐标. cx: 宽度. cy: 高度. pName: 名称. hParent: 父对象句柄.
func (*ShapeGroupBox) EnableRoundAngle ¶
func (s *ShapeGroupBox) EnableRoundAngle(bEnable bool) int
形状组框_启用圆角 bEnable: 是否启用.
func (*ShapeGroupBox) GetRoundAngle ¶
func (s *ShapeGroupBox) GetRoundAngle(pWidth *int, pHeight *int) int
形状组框_取圆角大小 pWidth: 返回圆角宽度. pHeight: 返回圆角高度.
func (*ShapeGroupBox) GetTextOffset ¶
func (s *ShapeGroupBox) GetTextOffset(pOffsetX *int, pOffsetY *int) int
形状组框_取文本偏移, 获取文本偏移量 pOffsetX: X坐标偏移量. pOffsetY: Y坐标偏移量.
func (*ShapeGroupBox) SetBorderColor ¶
func (s *ShapeGroupBox) SetBorderColor(color int, alpha uint8) int
形状组框_置边框颜色 color: RGB颜色值. alpha: 透明度.
func (*ShapeGroupBox) SetFontX ¶
func (s *ShapeGroupBox) SetFontX(hFontX int) int
形状组框_置字体 hFontX: 炫彩字体.
func (*ShapeGroupBox) SetRoundAngle ¶
func (s *ShapeGroupBox) SetRoundAngle(nWidth int, nHeight int) int
形状组框_置圆角大小 nWidth: 圆角宽度. nHeight: 圆角高度.
func (*ShapeGroupBox) SetText ¶
func (s *ShapeGroupBox) SetText(pText string) int
形状组框_置文本 pText: 文本内容.
func (*ShapeGroupBox) SetTextColor ¶
func (s *ShapeGroupBox) SetTextColor(color int, alpha uint8) int
形状组框_置文本颜色 color: RGB颜色值. alpha: 透明度.
func (*ShapeGroupBox) SetTextOffset ¶
func (s *ShapeGroupBox) SetTextOffset(offsetX int, offsetY int) int
形状组框_置文本偏移, 设置文本偏移量 offsetX: 水平偏移. offsetY: 垂直偏移.
type ShapeLine ¶
type ShapeLine struct {
Shape
}
func NewShapeLine ¶
形状线_创建 x1: 坐标. y1: 坐标. x2: 坐标. y2: 坐标. hParent: 父对象句柄.
type ShapePicture ¶
type ShapePicture struct {
Shape
}
func NewShapePicture ¶
形状图片_创建, 创建形状对象-图片, 成功返回图片对象句柄, 否则返回NULL x: x坐标. y: y坐标. cx: 宽度. cy: 高度. hParent: 父对象句柄.
func (*ShapePicture) SetImage ¶
func (s *ShapePicture) SetImage(hImage int) int
形状图片_置图片, 设置图片 hImage: 图片句柄.
type ShapeRect ¶
type ShapeRect struct {
Shape
}
func NewShapeRect ¶
形状矩形_创建, 创建矩形形状对象, 返回句柄 x: X坐标. y: Y坐标. cx: 宽度. cy: 高度. hParent: 父对象句柄.
func (*ShapeRect) EnableBorder ¶
形状矩形_启用边框, 启用绘制矩形边框 bEnable: 是否启用.
func (*ShapeRect) EnableFill ¶
形状矩形_启用填充, 启用填充矩形 bEnable: 是否启用.
func (*ShapeRect) EnableRoundAngle ¶
形状矩形_启用圆角 bEnable: 是否启用.
func (*ShapeRect) GetRoundAngle ¶
形状矩形_取圆角大小, 获取圆角大小 pWidth: 圆角宽度. pHeight: 圆角高度.
func (*ShapeRect) SetBorderColor ¶
形状矩形_置边框色, 设置边框颜色 color: RGB颜色值. alpha: 透明度.
func (*ShapeRect) SetFillColor ¶
形状矩形_置填充色, 设置填充颜色 color: RGB颜色值. alpha: 透明度.
type ShapeText ¶
type ShapeText struct {
Shape
}
func NewShapeText ¶
形状文本_创建, 创建形状对象文本 x: X坐标. y: Y坐标. cx: 宽度. cy: 高度. pName: 文本内容. hParent: 父对象句柄.
func (*ShapeText) SetTextAlign ¶
形状文本_置文本对齐 align: 文本对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_
type Table ¶
type Table struct {
Shape
}
func (*Table) GetItemRect ¶
表格_取项坐标 iRow: 行索引 iCol: 列索引 pRect: 接收返回坐标
func (*Table) SetColWidth ¶
表格_置列宽 iCol: 列索引 width: 宽度
func (*Table) SetItemBkColor ¶
表格_置项背景色 iRow: 行索引 iCol: 列索引 color: 颜色 bColor: 是否使用
func (*Table) SetItemFlag ¶
表格_置项标识 iRow: 行索引 iCol: 列索引 flag: 标识, Table_Flag_
func (*Table) SetItemFont ¶
表格_置项字体 iRow: 行索引 iCol: 列索引 hFont: 字体句柄
func (*Table) SetItemLine ¶
表格_置项线 iRow1: 行索引1 iCol1: 列索引1 iRow2: 行索引2 iCol2: 列索引2 nFlag: 标识, Table_Line_Flag_, 暂时没有, 填0 color: 颜色
func (*Table) SetItemPadding ¶
表格_置项内填充 leftSize: 内填充大小 topSize: 内填充大小 rightSize: 内填充大小 bottomSize: 内填充大小
func (*Table) SetItemText ¶
表格_置项文本 iRow: 行索引 iCol: 列索引 pText: 文本
func (*Table) SetItemTextAlign ¶
表格_置项文本对齐 iRow: 行索引 iCol: 列索引 nAlign: 对齐方式, TextFormatFlag_, TextAlignFlag_, TextTrimming_
func (*Table) SetItemTextColor ¶
表格_置项文本色 iRow: 行索引 iCol: 列索引 color: 颜色 bColor: 是否使用
func (*Table) SetRowHeight ¶
表格_置行高 iRow: 行索引 height: 高度