Documentation
¶
Overview ¶
程序
Index ¶
- type App
- func (a *App) AddFileSearchPath(pPath string) int
- func (a *App) Alert(pText string, pTitle string) int
- func (a *App) CallUiThread(pCall func(data int) int, data int) int
- func (a *App) CombineRect(pDest *xc.RECT, pSrc1 *xc.RECT, pSrc2 *xc.RECT) int
- func (a *App) DebugToFileInfo(pInfo string) int
- func (a *App) EnableAutoExitApp(bEnabel bool) int
- func (a *App) EnableDebugFile(bEnable bool) int
- func (a *App) EnableErrorMessageBox(bEnabel bool) int
- func (a *App) EnableGdiDrawText(bEnable bool) int
- func (a *App) EnableResMonitor(bEnable bool) int
- func (a *App) Exit() int
- func (a *App) Free(p int) int
- func (a *App) FreeLibrary(hModule int) bool
- func (a *App) GetDefaultFont() int
- func (a *App) GetObjectByID(hWindow int, nID int) int
- func (a *App) GetObjectByIDName(hWindow int, pName string) int
- func (a *App) GetObjectByName(pName string) int
- func (a *App) GetObjectByUID(nUID int) int
- func (a *App) GetObjectByUIDName(pName string) int
- func (a *App) GetObjectType(hXCGUI int) int
- func (a *App) GetProcAddress(hModule int, lpProcName string) int
- func (a *App) GetProperty(hXCGUI int, pName string) string
- func (a *App) GetTextShowRect(pString string, length int, hFontX int, width int, pOutSize *xc.SIZE) int
- func (a *App) GetTextShowSize(pString string, length int, hFontX int, pOutSize *xc.SIZE) int
- func (a *App) GetTextShowSizeEx(pString string, length int, hFontX int, nTextAlign int, pOutSize *xc.SIZE) int
- func (a *App) GetTextSize(pString string, length int, hFontX int, pOutSize *xc.SIZE) int
- func (a *App) HWindowFromHWnd(hWnd int) int
- func (a *App) InitFont(pFont *xc.LOGFONTW, pName string, size int, bBold bool, bItalic bool, ...) int
- func (a *App) IsHELE(hEle int) bool
- func (a *App) IsHWINDOW(hWindow int) bool
- func (a *App) IsHXCGUI(hXCGUI int, nType int) bool
- func (a *App) IsSViewExtend(hEle int) bool
- func (a *App) IsShape(hShape int) bool
- func (a *App) LoadDll(pDllFileName string) int
- func (a *App) LoadLayout(pFileName string, hParent int) int
- func (a *App) LoadLayoutFromString(pStringXML string, hParent int) int
- func (a *App) LoadLayoutFromStringUtf8(pStringXML string, hParent int) int
- func (a *App) LoadLayoutZip(pZipFileName string, pFileName string, pPassword string, hParent int) int
- func (a *App) LoadLayoutZipMem(data int, length int, pFileName string, pPassword string, hParent int) int
- func (a *App) LoadLibrary(lpFileName string) int
- func (a *App) LoadResource(pFileName string) bool
- func (a *App) LoadResourceFromString(pStringXML string, pFileName string) bool
- func (a *App) LoadResourceFromStringUtf8(pStringXML string, pFileName string) bool
- func (a *App) LoadResourceZip(pZipFileName string, pFileName string, pPassword string) bool
- func (a *App) LoadResourceZipMem(data int, length int, pFileName string, pPassword string) bool
- func (a *App) LoadStyle(pFileName string) bool
- func (a *App) LoadStyleFromString(pFileName string, pString string) bool
- func (a *App) LoadStyleZip(pZipFile string, pFileName string, pPassword string) bool
- func (a *App) LoadStyleZipMem(data int, length int, pFileName string, pPassword string) bool
- func (a *App) Malloc(size int) int
- func (a *App) MessageBox(hWindow int, pText string, pCaption string, nFlags int) int
- func (a *App) PostMessage(hWindow int, msg int, wParam int, lParam int) bool
- func (a *App) PostQuitMessage(nExitCode int) int
- func (a *App) RectInRect(pRect1 *xc.RECT, pRect2 *xc.RECT) bool
- func (a *App) RegisterWindowClassName(pClassName string) bool
- func (a *App) Run() int
- func (a *App) SendMessage(hWindow int, msg int, wParam int, lParam int) int
- func (a *App) SetActivateTopWindow() bool
- func (a *App) SetDefaultFont(hFontX int) int
- func (a *App) SetLayoutFrameColor(color int) int
- func (a *App) SetPaintFrequency(nMilliseconds int) int
- func (a *App) SetProperty(hXCGUI int, pName string, pValue string) bool
- func (a *App) SetTextRenderingHint(nType int) int
- func (a *App) ShowLayoutFrame(bShow bool) int
- func (a *App) Sys_ShellExecute(hwnd int, lpOperation string, lpFile string, lpParameters string, ...) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
}
程序
func (*App) AddFileSearchPath ¶
炫彩_添加搜索路径, 添加文件搜索路径, 默认路径为exe目录和程序当前运行目录 pPath: 文件夹
func (*App) CallUiThread ¶
炫彩_调用界面线程, 调用UI线程, 设置回调函数, 在回调函数里操作UI pCall: 回调函数 data: 用户自定义数据
func (*App) CombineRect ¶
炫彩_组合矩形, 组合两个矩形区域 pDest: 新的矩形区域. pSrc1: 源矩形1. pSrc2: 源矩形2.
func (*App) DebugToFileInfo ¶
炫彩_输出调试信息到文件, 打印调试信息到文件xcgui_debug.txt
func (*App) EnableAutoExitApp ¶
炫彩_启用自动退出程序, 启动或禁用自动退出程序, 当检测到所有用户创建的窗口都关闭时, 自动退出程序; 可调用 XC_PostQuitMessage() 手动退出程序 bEnabel: 是否启用.
func (*App) EnableDebugFile ¶
炫彩_启用debug文件 bEnable: 是否启用.
func (*App) EnableErrorMessageBox ¶
炫彩_启用错误弹窗, 启用错误弹出, 通过该接口可以设置遇到严重错误时不弹出消息提示框 bEnabel: 是否启用.
func (*App) EnableGdiDrawText ¶
炫彩_启用GDI绘制文本, 将影响到以下函数: XDraw_TextOut, XDraw_TextOutEx, XDraw_TextOutA bEnable: 是否启用
func (*App) EnableResMonitor ¶
炫彩_启用资源监视器 bEnable: 是否启用.
func (*App) FreeLibrary ¶
炫彩_释放动态库, 系统API FreeLibrary hModule: 动态库模块句柄
func (*App) GetObjectByID ¶
炫彩_取对象从ID, 通过ID获取对象句柄, 不包括窗口对象 hWindow: 所属窗口句柄 nID: ID值.
func (*App) GetObjectByIDName ¶
炫彩_取对象从ID名称, 通过ID名称获取对象句柄 hWindow: 所属窗口句柄 pName: ID名称.
func (*App) GetObjectByName ¶
炫彩_取对象从名称, 通过name获取对象句柄 pName: name名称.
func (*App) GetObjectByUID ¶
炫彩_取对象从UID, 通过UID获取对象句柄, 不包括窗口对象 nUID: UID值.
func (*App) GetObjectByUIDName ¶
炫彩_取对象从UID名称, 通过UID名称获取对象句柄 pName: UID名称.
func (*App) GetObjectType ¶
炫彩_取对象类型, 获取句柄类型, 返回: XC_OBJECT_TYPE hXCGUI: 炫彩对象句柄.
func (*App) GetProcAddress ¶
炫彩_取动态库中函数地址, 系统API GetProcAddress, 返回函数地址 hModule: 动态库模块句柄 lpProcName: 函数名
func (*App) GetProperty ¶
炫彩_取属性, 获取对象属性, 返回属性值 hXCGUI: 对象句柄. pName: 属性名.
func (*App) GetTextShowRect ¶
func (a *App) GetTextShowRect(pString string, length int, hFontX int, width int, pOutSize *xc.SIZE) int
炫彩_取文本显示矩形 pString: 字符串. length: 字符串长度 hFontX: 字体. width: 最大宽度 pOutSize: 接收返回大小.
func (*App) GetTextShowSize ¶
炫彩_取文本显示大小 pString: 字符串. length: 字符串长度 hFontX: 字体. pOutSize: 接收返回大小.
func (*App) GetTextShowSizeEx ¶
func (a *App) GetTextShowSizeEx(pString string, length int, hFontX int, nTextAlign int, pOutSize *xc.SIZE) int
炫彩_取文本显示大小扩展 pString: 字符串. length: 字符串长度 hFontX: 字体. nTextAlign: 文本对齐方式, TextFormatFlag_ pOutSize: 接收返回大小.
func (*App) GetTextSize ¶
炫彩_取文本绘制大小 pString: 字符串. length: 字符串长度 hFontX: 字体. pOutSize: 接收返回大小.
func (*App) HWindowFromHWnd ¶
炫彩_转换HWND到HWINDOW, 通过窗口HWND句柄获取HWINDOW句柄 hWnd: 窗口HWND句柄.
func (*App) InitFont ¶
func (a *App) InitFont(pFont *xc.LOGFONTW, pName string, size int, bBold bool, bItalic bool, bUnderline bool, bStrikeOut bool) int
炫彩_初始化字体, 初始化LOGFONTW结构体 pFont: LOGFONTW结构体指针. pName: 字体名称. size: 字体大小. bBold: 是否为粗体. bItalic: 是否为斜体. bUnderline: 是否有下划线. bStrikeOut: 是否有删除线.
func (*App) IsHXCGUI ¶
炫彩_判断句柄包含类型, 判断句柄是否拥有该类型 hXCGUI: 炫彩句柄. nType: 句柄类型, XC_OBJECT_TYPE, 以XC_开头的常量
func (*App) IsSViewExtend ¶
炫彩_判断滚动视图扩展元素, 判断元素是否从滚动视图元素扩展的新元素, 包含滚动视图元素 hEle: 元素句柄.
func (*App) LoadDll ¶
炫彩_加载DLL, 返回DLL模块句柄. 加载指定DLL, 并且调用DLL中函数LoadDll(), DLL中导出函数格式: int WINAPI LoadDll() pDllFileName: DLL文件名
func (*App) LoadLayout ¶ added in v0.0.3
炫彩_加载布局文件, 返回窗口句柄或布局句柄或元素句柄 pFileName: 布局文件名. hParent: 父对象句柄
func (*App) LoadLayoutFromString ¶ added in v0.0.3
炫彩_加载布局文件从字符串, 加载布局文件从内存字符串, 返回窗口句柄或布局句柄或元素句柄 pStringXML: 字符串指针. hParent: 父对象
func (*App) LoadLayoutFromStringUtf8 ¶ added in v0.0.3
炫彩_加载布局文件从字符串UTF8, 加载布局文件从内存字符串, 返回窗口句柄或布局句柄或元素句柄 pStringXML: 字符串指针. hParent: 父对象
func (*App) LoadLayoutZip ¶ added in v0.0.3
func (a *App) LoadLayoutZip(pZipFileName string, pFileName string, pPassword string, hParent int) int
炫彩_加载布局文件ZIP, 加载布局文件从zip压缩包中, 返回窗口句柄或布局句柄或元素句柄 pZipFileName: zip文件名. pFileName: 布局文件名. pPassword: zip密码. hParent: 父对象句柄
func (*App) LoadLayoutZipMem ¶ added in v0.0.3
func (a *App) LoadLayoutZipMem(data int, length int, pFileName string, pPassword string, hParent int) int
炫彩_加载布局文件内存ZIP, 加载布局文件从zip压缩包中, 返回窗口句柄或布局句柄或元素句柄 data: 内存块指针 length: 内存块大小 pFileName: 布局文件名. pPassword: zip密码. hParent: 父对象句柄
func (*App) LoadLibrary ¶
炫彩_载入动态库, 系统API LoadLibrary, 返回动态库模块句柄 lpFileName: 文件名
func (*App) LoadResource ¶ added in v0.0.3
炫彩_加载资源文件 pFileName: 资源文件名.
func (*App) LoadResourceFromString ¶ added in v0.0.3
炫彩_加载资源文件从字符串 pStringXML: 字符串指针. pFileName: 资源文件名
func (*App) LoadResourceFromStringUtf8 ¶ added in v0.0.3
炫彩_加载资源文件从字符串UTF8 pStringXML: 字符串指针. pFileName: 资源文件名
func (*App) LoadResourceZip ¶ added in v0.0.3
炫彩_加载资源文件ZIP pZipFileName: zip文件名. pFileName: 资源文件名. pPassword: zip压缩包密码.
func (*App) LoadResourceZipMem ¶ added in v0.0.3
炫彩_加载资源文件内存ZIP data: 内存块指针 length: 内存块大小 pFileName: 资源文件名 pPassword: zip压缩包密码
func (*App) LoadStyleFromString ¶ added in v0.0.5
炫彩_加载样式文件从字符串. pFileName: 样式文件名, 用于打印错误文件和定位关联资源文件位置. pString: 字符串.
func (*App) LoadStyleZip ¶ added in v0.0.3
炫彩_加载样式文件ZIP pZipFile: ZIP文件名 pFileName: 文件名 pPassword: 密码
func (*App) LoadStyleZipMem ¶ added in v0.0.3
炫彩_加载样式文件从内存ZIP data: 内存块指针 length: 内存块大小 pFileName: 文件名 pPassword: 密码
func (*App) MessageBox ¶
炫彩_消息框 hWindow: 窗口句柄 pText: 内容文本 pCaption: 标题 nFlags: 标识, MessageBox_Flag_
func (*App) PostMessage ¶
炫彩_投递窗口消息 hWindow: 窗口句柄 msg: wParam: lParam:
func (*App) PostQuitMessage ¶
炫彩_PostQuitMessage, 发送WM_QUIT消息退出消息循环 nExitCode: 退出码.
func (*App) RectInRect ¶
炫彩_判断矩形相交, 判断两个矩形是否相交及重叠 pRect1: 矩形1. pRect2: 矩形2.
func (*App) RegisterWindowClassName ¶
炫彩_注册窗口类名, 如果是在DLL中使用, 那么DLL卸载时需要注销窗口类名, 否则DLL卸载后, 类名所指向的窗口过程地址失效 pClassName: 类名.
func (*App) SendMessage ¶
炫彩_发送窗口消息 hWindow: 窗口句柄 msg: wParam: lParam:
func (*App) SetLayoutFrameColor ¶
炫彩_置布局边界颜色 color: RGB颜色值.
func (*App) SetPaintFrequency ¶
炫彩_置绘制频率, 设置UI的最小重绘频率 nMilliseconds: 重绘最小时间间隔, 单位毫秒
func (*App) SetProperty ¶
炫彩_置属性, 设置对象属性 hXCGUI: 对象句柄. pName: 属性名. pValue: 属性值.
func (*App) SetTextRenderingHint ¶
炫彩_置文本渲染质量, 设置文本渲染质量 nType: 参见GDI+ TextRenderingHint 定义.
func (*App) ShowLayoutFrame ¶
炫彩_显示布局边界, 显示布局对象边界 bShow: 是否显示.