2022-10-17 22:39:03 -05:00
|
|
|
package gui
|
|
|
|
|
2023-03-01 11:35:36 -06:00
|
|
|
import (
|
2024-01-05 13:18:44 -06:00
|
|
|
"go.wit.com/gui/widget"
|
2023-03-01 11:35:36 -06:00
|
|
|
)
|
|
|
|
|
2023-03-23 12:35:12 -05:00
|
|
|
// TODO: make a "Group" a "Grid" ?
|
|
|
|
// probably since right now group is just a
|
|
|
|
// pre-canned andlabs/ui gtk,macos,windows thing
|
2023-05-09 18:50:16 -05:00
|
|
|
func (parent *Node) NewGroup(name string) *Node {
|
2022-11-13 08:53:03 -06:00
|
|
|
var newNode *Node
|
2024-01-05 13:18:44 -06:00
|
|
|
newNode = parent.newNode(name, widget.Group)
|
2024-01-11 19:32:40 -06:00
|
|
|
newNode.progname = name
|
|
|
|
newNode.value = name
|
2023-03-23 12:35:12 -05:00
|
|
|
|
2024-01-13 22:02:12 -06:00
|
|
|
// inform the toolkits
|
|
|
|
sendAction(newNode, widget.Add)
|
2024-01-08 13:49:18 -06:00
|
|
|
return newNode
|
2022-10-17 22:39:03 -05:00
|
|
|
}
|