new-gui/checkbox.go

16 lines
263 B
Go

package gui
import "go.wit.com/gui/gui/toolkit"
func (n *Node) Checked() bool {
return n.B
}
func (n *Node) NewCheckbox(name string) *Node {
newNode := n.newNode(name, toolkit.Checkbox)
a := newAction(newNode, toolkit.Add)
sendAction(a)
return newNode
}