new-gui/group.go

21 lines
435 B
Go
Raw Normal View History

package gui
import (
"git.wit.org/wit/gui/toolkit"
)
// TODO: make a "Group" a "Grid" ?
// probably since right now group is just a
// pre-canned andlabs/ui gtk,macos,windows thing
func (n *Node) NewGroup(name string) *Node {
var newNode *Node
newNode = n.New(name, toolkit.Group, nil)
var a toolkit.Action
a.ActionType = toolkit.Add
newaction(&a, newNode, n)
newBox := newNode.NewBox("group vBox", false)
return newBox
}