Beispiel #1
0
func (b *Button) SetChecked(checked bool) {
	if checked == b.Checked() {
		return
	}

	xc.XBtnSetCheck(b.hEle, xc.BoolToBOOL(checked))
}
Beispiel #2
0
func XWeb_JsBoolean(b bool) int64 {
	ret, _, _ := xWeb_JsBoolean.Call(uintptr(xc.BoolToBOOL(b)))

	return int64(ret)
}
Beispiel #3
0
func XWeb_SetCookieEnabled(hWeb xc.HWINDOW, enable bool) {
	xWeb_SetCookieEnabled.Call(
		uintptr(hWeb),
		uintptr(xc.BoolToBOOL(enable)))
}
Beispiel #4
0
func XWeb_SetEditable(hWeb xc.HWINDOW, editable bool) {
	xWeb_SetEditable.Call(
		uintptr(hWeb),
		uintptr(xc.BoolToBOOL(editable)))
}
Beispiel #5
0
func (b *Button) EnableAnimation(bEnable, bLoopPlay bool) {
	xc.XBtnEnableAnimation(b.hEle, xc.BoolToBOOL(bEnable), xc.BoolToBOOL(bLoopPlay))
}