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

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

	xc.XBtnSetCheck(b.hEle, xc.BoolToBOOL(checked))
}