summaryrefslogtreecommitdiff
path: root/group.go
blob: e7eb31bda4ac2246511b588a0cfae908ad704c28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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.label = name

	// inform the toolkits
	sendAction(newNode, widget.Add)
	return newNode
}