2023-04-23 14:35:32 -05:00
|
|
|
package gui
|
|
|
|
|
|
|
|
import (
|
2024-01-03 18:54:08 -06:00
|
|
|
"go.wit.com/gui/toolkits"
|
2023-04-23 14:35:32 -05:00
|
|
|
)
|
|
|
|
|
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
|
|
|
|
}
|