예제 #1
0
파일: button.go 프로젝트: henrylee2cn/xcgui
func (b *Button) SetChecked(checked bool) {
	if checked == b.Checked() {
		return
	}

	xc.XBtnSetCheck(b.hEle, xc.BoolToBOOL(checked))
}
예제 #2
0
파일: wke.go 프로젝트: CodyGuo/xcgui
func XWeb_JsBoolean(b bool) int64 {
	ret, _, _ := xWeb_JsBoolean.Call(uintptr(xc.BoolToBOOL(b)))

	return int64(ret)
}
예제 #3
0
파일: wke.go 프로젝트: CodyGuo/xcgui
func XWeb_SetCookieEnabled(hWeb xc.HWINDOW, enable bool) {
	xWeb_SetCookieEnabled.Call(
		uintptr(hWeb),
		uintptr(xc.BoolToBOOL(enable)))
}
예제 #4
0
파일: wke.go 프로젝트: CodyGuo/xcgui
func XWeb_SetEditable(hWeb xc.HWINDOW, editable bool) {
	xWeb_SetEditable.Call(
		uintptr(hWeb),
		uintptr(xc.BoolToBOOL(editable)))
}
예제 #5
0
파일: button.go 프로젝트: henrylee2cn/xcgui
func (b *Button) EnableAnimation(bEnable, bLoopPlay bool) {
	xc.XBtnEnableAnimation(b.hEle, xc.BoolToBOOL(bEnable), xc.BoolToBOOL(bLoopPlay))
}