new-gui/group.go

20 lines
417 B
Go
Raw Normal View History

package gui
import (
"go.wit.com/gui/widget"
)
// TODO: make a "Group" a "Grid" ?
// probably since right now group is just a
// pre-canned andlabs/ui gtk,macos,windows thing
func (parent *Node) NewGroup(name string) *Node {
var newNode *Node
newNode = parent.newNode(name, widget.Group)
newNode.progname = name
newNode.value = name
// inform the toolkits
sendAction(newNode, widget.Add)
return newNode
}