summaryrefslogtreecommitdiff
path: root/label.go
blob: 43f807380cb1f361b4c6ed96ab6dcbe61dfd7d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package gui

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

func (parent *Node) NewLabel(text string) *Node {
	newNode := parent.newNode(text, toolkit.Label, nil)
	a := newAction(newNode, toolkit.Add)
	sendAction(a, newNode, parent)
	return newNode
}