1 Star 1 Fork 1

wengo / windows_gui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
shapeline.go 916 Bytes
一键复制 编辑 原始数据 按行查看 历史
wengooooo 提交于 2022-04-20 11:38 . update
package xc
// 形状线_创建.
//
// x1: 坐标.
//
// y1: 坐标.
//
// x2: 坐标.
//
// y2: 坐标.
//
// hParent: 父对象句柄.
func XShapeLine_Create(x1 int, y1 int, x2 int, y2 int, hParent int) int {
r, _, _ := xShapeLine_Create.Call(uintptr(x1), uintptr(y1), uintptr(x2), uintptr(y2), uintptr(hParent))
return int(r)
}
// 形状线_置位置.
//
// hShape: 形状对象句柄.
//
// x1: 坐标.
//
// y1: 坐标.
//
// x2: 坐标.
//
// y2: 坐标.
func XShapeLine_SetPosition(hShape int, x1 int, y1 int, x2 int, y2 int) int {
r, _, _ := xShapeLine_SetPosition.Call(uintptr(hShape), uintptr(x1), uintptr(y1), uintptr(x2), uintptr(y2))
return int(r)
}
// 形状线_置颜色, 设置直线颜色.
//
// hShape: 形状对象句柄.
//
// color: ABGR颜色值.
func XShapeLine_SetColor(hShape int, color int) int {
r, _, _ := xShapeLine_SetColor.Call(uintptr(hShape), uintptr(color))
return int(r)
}
Go
1
https://gitee.com/wengo/windows_gui.git
git@gitee.com:wengo/windows_gui.git
wengo
windows_gui
windows_gui
48d22b3de18b

搜索帮助

53164aa7 5694891 3bd8fe86 5694891