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 {
|
|
|
|
newNode := parent.newNode(name, toolkit.Box, nil)
|
2023-04-23 14:35:32 -05:00
|
|
|
newNode.B = b
|
|
|
|
|
2023-05-09 18:50:16 -05:00
|
|
|
a := newAction(newNode, toolkit.Add)
|
|
|
|
sendAction(a, newNode, parent)
|
2023-04-23 14:35:32 -05:00
|
|
|
return newNode
|
|
|
|
}
|