2022-10-21 11:40:08 -05:00
|
|
|
package gui
|
|
|
|
|
2023-03-01 11:35:36 -06:00
|
|
|
import "git.wit.org/wit/gui/toolkit"
|
|
|
|
|
2022-10-21 11:40:08 -05:00
|
|
|
func (n *Node) Checked() bool {
|
|
|
|
n.Dump()
|
2023-03-01 11:35:36 -06:00
|
|
|
return n.widget.B
|
2022-10-21 11:40:08 -05:00
|
|
|
}
|
|
|
|
|
2022-11-13 08:53:03 -06:00
|
|
|
func (n *Node) NewCheckbox(name string) *Node {
|
2023-03-01 11:35:36 -06:00
|
|
|
newNode := n.New(name, toolkit.Checkbox, nil)
|
|
|
|
send(n, newNode)
|
|
|
|
return newNode
|
|
|
|
}
|