1 Star 1 Fork 1

wengo / windows_gui

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
ui.go 1.59 KB
Copy Edit Raw Blame History
wengooooo authored 2022-06-06 18:11 . update
package xc
import (
"gitee.com/wengo/windows_gui/common"
"gitee.com/wengo/windows_gui/xcc"
)
// XUI_SetStyle 可视对象_置样式, 设置UI对象样式.
// @param hXCGUI 对象句柄.
// @param nStyle xcc.XC_OBJECT_STYLE, 样式值: xcc.Button_Style_ , xcc.Element_Style_ , xcc.ListBox_Style_.
// @return int
//
func XUI_SetStyle(hXCGUI int, nStyle xcc.XC_OBJECT_STYLE) int {
r, _, _ := xUI_SetStyle.Call(uintptr(hXCGUI), uintptr(nStyle))
return int(r)
}
// XUI_GetStyle 可视对象_取样式, 获取UI对象样式
// @param hXCGUI 对象句柄.
// @return xcc.XC_OBJECT_STYLE 返回: xcc.Button_Style_ , xcc.Element_Style_ , xcc.ListBox_Style_.
//
func XUI_GetStyle(hXCGUI int) xcc.XC_OBJECT_STYLE {
r, _, _ := xUI_GetStyle.Call(uintptr(hXCGUI))
return xcc.XC_OBJECT_STYLE(r)
}
// XUI_EnableCSS 可视对象_启用CSS, 启用或禁用样式.
// @param hXCGUI 对象句柄.
// @param bEnable 是否启用.
// @return int
//
func XUI_EnableCSS(hXCGUI int, bEnable bool) int {
r, _, _ := xUI_EnableCSS.Call(uintptr(hXCGUI), common.BoolPtr(bEnable))
return int(r)
}
// XUI_SetCssName 可视对象_置CSS名称, 设置CSS[套用样式]名称.
// @param hXCGUI 对象句柄.
// @param pName 套用样式名称.
// @return int
//
func XUI_SetCssName(hXCGUI int, pName string) int {
r, _, _ := xUI_SetCssName.Call(uintptr(hXCGUI), common.StrPtr(pName))
return int(r)
}
// XUI_GetCssName 可视对象_取CSS名称, 获取CSS样式名称.
// @param hXCGUI 对象句柄.
// @return string
//
func XUI_GetCssName(hXCGUI int) string {
r, _, _ := xUI_GetCssName.Call(uintptr(hXCGUI))
return common.UintPtrToString(r)
}
Go
1
https://gitee.com/wengo/windows_gui.git
git@gitee.com:wengo/windows_gui.git
wengo
windows_gui
windows_gui
48d22b3de18b

Search