20 lines
324 B
Go
20 lines
324 B
Go
package gui
|
|
|
|
import "git.wit.org/wit/gui/toolkit"
|
|
|
|
func (n *Node) Checked() bool {
|
|
return n.B
|
|
}
|
|
|
|
func (n *Node) NewCheckbox(name string) *Node {
|
|
newNode := n.newNode(name, toolkit.Checkbox, nil)
|
|
|
|
var a toolkit.Action
|
|
a.ActionType = toolkit.Add
|
|
a.Name = name
|
|
a.Text = name
|
|
newaction(&a, newNode, n)
|
|
|
|
return newNode
|
|
}
|