summaryrefslogtreecommitdiff
path: root/group.go
blob: fb7ee47acec7ba9de5d60fe1ab078a5ada96e325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package gui

import (
	"git.wit.org/wit/gui/toolkit"
)

// TODO: which name is better. AddGroup or NewGroup ?
// first reaction is NewGroup
func (n *Node) NewGroup(name string) *Node {
	var newNode *Node
	newNode = n.New(name, toolkit.Group, nil)
	send(n, newNode)
	return newNode
}