2023-04-23 14:35:32 -05:00
|
|
|
package gui
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.wit.org/wit/gui/toolkit"
|
|
|
|
)
|
|
|
|
|
2023-05-09 18:50:16 -05:00
|
|
|
func (parent *Node) NewBox(name string, b bool) *Node {
|
2023-05-09 20:25:37 -05:00
|
|
|
newNode := parent.newNode(name, toolkit.Box)
|
2023-04-23 14:35:32 -05:00
|
|
|
newNode.B = b
|
|
|
|
|
2023-05-09 18:50:16 -05:00
|
|
|
a := newAction(newNode, toolkit.Add)
|
2023-05-09 18:53:31 -05:00
|
|
|
sendAction(a)
|
2023-04-23 14:35:32 -05:00
|
|
|
return newNode
|
|
|
|
}
|