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

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

func (n *Node) NewLabel(text string) *Node {
	newNode := n.New(text, toolkit.Label, nil)

	var a toolkit.Action
	a.Type = toolkit.Add
	newaction(&a, newNode, n)

	return newNode
}