Documentation ¶
Overview ¶
Package objectbase 对象基类.
Index ¶
- type ObjectBase
- type UI
- type Widget
- func (w *Widget) EnableLayoutControl(bEnable bool) int
- func (w *Widget) GetHWINDOW() int
- func (w *Widget) GetHWND() int
- func (w *Widget) GetID() int
- func (w *Widget) GetName() string
- func (w *Widget) GetParent() int
- func (w *Widget) GetParentEle() int
- func (w *Widget) GetUID() int
- func (w *Widget) IsLayoutControl() bool
- func (w *Widget) IsShow() bool
- func (w *Widget) LayoutItem_EnableFloat(bFloat bool) int
- func (w *Widget) LayoutItem_EnableSwap(bEnable bool) int
- func (w *Widget) LayoutItem_EnableWrap(bWrap bool) int
- func (w *Widget) LayoutItem_GetHeight(pType, pHeight *int) int
- func (w *Widget) LayoutItem_GetMargin(pMargin *xc.RECT) int
- func (w *Widget) LayoutItem_GetWidth(pType, pWidth *int) int
- func (w *Widget) LayoutItem_SetAlign(nAlign xcc.Layout_Align_Axis_) int
- func (w *Widget) LayoutItem_SetHeight(nType xcc.Layout_Size_, nHeight int) int
- func (w *Widget) LayoutItem_SetMargin(left, top, right, bottom int) int
- func (w *Widget) LayoutItem_SetMinSize(width, height int) int
- func (w *Widget) LayoutItem_SetPosition(left, top, right, bottom int) int
- func (w *Widget) LayoutItem_SetWidth(nType xcc.Layout_Size_, nWidth int) int
- func (w *Widget) SetID(nID int) int
- func (w *Widget) SetName(pName string) int
- func (w *Widget) SetUID(nUID int) int
- func (w *Widget) Show(bShow bool) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectBase ¶
type ObjectBase struct {
Handle int // 句柄.
}
炫彩对象基类.
func (*ObjectBase) GetType ¶
func (o *ObjectBase) GetType() xcc.XC_OBJECT_TYPE
炫彩对象_取类型, 获取对象最终类型, 返回对象类型: XC_.
func (*ObjectBase) GetTypeBase ¶
func (o *ObjectBase) GetTypeBase() int
炫彩对象_取基础类型, 获取对象的基础类型, 返回对象类型, 以下类型之一: XC_ERROR, XC_WINDOW, XC_ELE, XC_SHAPE, XC_ADAPTER.
func (*ObjectBase) GetTypeEx ¶
func (o *ObjectBase) GetTypeEx() xcc.XC_OBJECT_TYPE_EX
炫彩对象_取类型扩展, 获取对象扩展类型, 返回对象扩展类型: button_type_ , element_type_ , xc_ex_error.
func (*ObjectBase) SetTypeEx ¶
func (o *ObjectBase) SetTypeEx(nType xcc.XC_OBJECT_TYPE_EX) int
炫彩对象_置类型扩展, 如果是按钮, 请使用按钮的增强接口 XBtn_SetTypeEx().
nType: 对象扩展类型: button_type_ , element_type_ , xc_ex_error.
type UI ¶
type UI struct {
ObjectBase
}
UI 可视对象.
func (*UI) GetStyle ¶
func (u *UI) GetStyle() xcc.XC_OBJECT_STYLE
GetStyle 可视对象_取样式, 获取UI对象样式.
@return xcc.XC_OBJECT_STYLE 返回: xcc.Button_Style_ , xcc.Element_Style_ , xcc.ListBox_Style_.
type Widget ¶
type Widget struct {
UI
}
窗口组件.
func (*Widget) LayoutItem_EnableSwap ¶
窗口组件_布局项_启用交换, 根据水平垂直布局变换, 交换属性(宽度,高度,最小宽度,最小高度).
bEnable: 是否启用.
func (*Widget) LayoutItem_SetAlign ¶
func (w *Widget) LayoutItem_SetAlign(nAlign xcc.Layout_Align_Axis_) int
窗口组件_布局项_置对齐, 根据水平垂直轴变化对齐.
nAlign: 对齐方式: xcc.Layout_Align_Axis_.
func (*Widget) LayoutItem_SetHeight ¶
func (w *Widget) LayoutItem_SetHeight(nType xcc.Layout_Size_, nHeight int) int
窗口组件_布局项_置高度.
nType: 类型: xcc.Layout_Size_.
nHeight: 高度.
func (*Widget) LayoutItem_SetMargin ¶
窗口组件_布局项_置外间距.
func (*Widget) LayoutItem_SetMinSize ¶
窗口组件_布局项_置最小大小, 限制大小仅针对缩放有效(自动, 填充父, 比例, 百分比).
width: 最小宽度.
height: 最小高度.
func (*Widget) LayoutItem_SetPosition ¶
窗口组件_布局项_置位置, 相对位置, 值大于等于0有效.
left: 左边距离.
top: 上边距离.
right: 右边距离.
bottom: 下边距离.
func (*Widget) LayoutItem_SetWidth ¶
func (w *Widget) LayoutItem_SetWidth(nType xcc.Layout_Size_, nWidth int) int
窗口组件_布局项_置宽度.
nType: 类型: xcc.Layout_Size_.
nWidth: 宽度.