objectbase

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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

炫彩对象_取类型, 获取对象最终类型, 返回对象类型: 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() int

炫彩对象_取类型扩展, 获取对象扩展类型, 返回对象扩展类型: button_type_ , element_type_ , xc_ex_error

func (*ObjectBase) SetHandle

func (w *ObjectBase) SetHandle(handle int)

给本类的Handle赋值

type UI

type UI struct {
	ObjectBase
}

可视对象

func (*UI) EnableCSS

func (u *UI) EnableCSS(bEnable bool) int

可视对象_启用CSS, 启用或禁用样式 bEnable: 是否启用.

func (*UI) GetCssName

func (u *UI) GetCssName() string

可视对象_取CSS名称, 获取CSS样式名称

func (*UI) GetStyle

func (u *UI) GetStyle() int

可视对象_取样式, 获取UI对象样式, 返回: Button_Style_ , FrameWnd_Style_ , ToolBar_Style_ , ListBox_Style_

func (*UI) SetCssName

func (u *UI) SetCssName(pName string) int

可视对象_置CSS名称, 设置CSS[套用样式]名称 pName: 套用样式名称.

func (*UI) SetStyle

func (u *UI) SetStyle(nStyle int) int

可视对象_置样式, 设置UI对象样式 nStyle: 样式值: Button_Style_ , FrameWnd_Style_ , ToolBar_Style_ , ListBox_Style_

type Widget

type Widget struct {
	UI
}

窗口组件

func (*Widget) EnableLayoutControl

func (w *Widget) EnableLayoutControl(bEnable bool) int

窗口组件_启用布局控制 bEnable:

func (*Widget) GetHWINDOW

func (w *Widget) GetHWINDOW() int

窗口组件_取HWINDOW

func (*Widget) GetHWND

func (w *Widget) GetHWND() int

窗口组件_取HWND

func (*Widget) GetParent

func (w *Widget) GetParent() int

窗口组件_取父对象, 获取父对象, 父可能是元素或窗口, 通过此函数可以检查是否有父

func (*Widget) GetParentEle

func (w *Widget) GetParentEle() int

窗口组件_取父元素

func (*Widget) IsLayoutControl

func (w *Widget) IsLayoutControl() bool

窗口组件_是否布局控制

func (*Widget) IsShow

func (w *Widget) IsShow() bool

窗口组件_判断显示, 判断UI对象是否显示

func (*Widget) LayoutItem_EnableFloat

func (w *Widget) LayoutItem_EnableFloat(bFloat bool) int

窗口组件_布局项_启用浮动, 向反方向对齐 bFloat: 是否浮动

func (*Widget) LayoutItem_EnableSwap

func (w *Widget) LayoutItem_EnableSwap(bEnable bool) int

窗口组件_布局项_启用交换, 根据水平垂直布局变换, 交换属性(宽度,高度,最小宽度,最小高度) bEnable: 是否启用

func (*Widget) LayoutItem_EnableWrap

func (w *Widget) LayoutItem_EnableWrap(bWrap bool) int

窗口组件_布局项_启用换行, 强制换行 bWrap: 是否换行

func (*Widget) LayoutItem_GetHeight

func (w *Widget) LayoutItem_GetHeight(pType, pHeight *int) int

窗口组件_布局项_取高度 pType: 返回类型 pHeight: 返回高度

func (*Widget) LayoutItem_GetMargin

func (w *Widget) LayoutItem_GetMargin(pMargin *xc.RECT) int

窗口组件_布局项_置对齐 pMargin: 接收返回

func (*Widget) LayoutItem_GetWidth

func (w *Widget) LayoutItem_GetWidth(pType, pWidth *int) int

窗口组件_布局项_取宽度 pType: 返回类型 pWidth: 返回宽度

func (*Widget) LayoutItem_SetAlign

func (w *Widget) LayoutItem_SetAlign(nAlign int) int

窗口组件_布局项_置对齐, 根据水平垂直轴变化对齐 nAlign: 对齐方式, Layout_Align_Axis_

func (*Widget) LayoutItem_SetHeight

func (w *Widget) LayoutItem_SetHeight(nType, nHeight int) int

窗口组件_布局项_置高度 nType: 类型, Layout_Size_ nHeight: 高度

func (*Widget) LayoutItem_SetMargin

func (w *Widget) LayoutItem_SetMargin(left, top, right, bottom int) int

窗口组件_布局项_置外间距

func (*Widget) LayoutItem_SetMinSize

func (w *Widget) LayoutItem_SetMinSize(width, height int) int

窗口组件_布局项_置最小大小, 限制大小仅针对缩放有效(自动, 填充父, 比例, 百分比) width: 最小宽度 height: 最小高度

func (*Widget) LayoutItem_SetPosition

func (w *Widget) LayoutItem_SetPosition(left, top, right, bottom int) int

窗口组件_布局项_置位置, 相对位置, 值大于等于0有效 left: 左边距离 top: 上边距离 right: 右边距离 bottom: 下边距离

func (*Widget) LayoutItem_SetWidth

func (w *Widget) LayoutItem_SetWidth(nType, nWidth int) int

窗口组件_布局项_置宽度 nType: 类型, Layout_Size_ nWidth: 宽度

func (*Widget) Show

func (w *Widget) Show(bShow bool) int

窗口组件_显示 bShow: 是否显示

Jump to

Keyboard shortcuts

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