Exemplo n.º 1
0
func (b *Button) SetChecked(checked bool) {
	if checked == b.Checked() {
		return
	}

	xc.XBtnSetCheck(b.hEle, xc.BoolToBOOL(checked))
}
Exemplo n.º 2
0
Arquivo: wke.go Projeto: CodyGuo/xcgui
func XWeb_JsBoolean(b bool) int64 {
	ret, _, _ := xWeb_JsBoolean.Call(uintptr(xc.BoolToBOOL(b)))

	return int64(ret)
}
Exemplo n.º 3
0
Arquivo: wke.go Projeto: CodyGuo/xcgui
func XWeb_SetCookieEnabled(hWeb xc.HWINDOW, enable bool) {
	xWeb_SetCookieEnabled.Call(
		uintptr(hWeb),
		uintptr(xc.BoolToBOOL(enable)))
}
Exemplo n.º 4
0
Arquivo: wke.go Projeto: CodyGuo/xcgui
func XWeb_SetEditable(hWeb xc.HWINDOW, editable bool) {
	xWeb_SetEditable.Call(
		uintptr(hWeb),
		uintptr(xc.BoolToBOOL(editable)))
}
Exemplo n.º 5
0
func (b *Button) EnableAnimation(bEnable, bLoopPlay bool) {
	xc.XBtnEnableAnimation(b.hEle, xc.BoolToBOOL(bEnable), xc.BoolToBOOL(bLoopPlay))
}