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

import (
	"go.wit.com/gui/toolkit"
)

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