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

// import "errors"
// import "regexp"

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

	for _, aplug := range allPlugins {
		log(debugGui, "gui.NewLabel() aplug =", aplug.name, "name =", newNode.Widget.Name)
		if (aplug.NewLabel == nil) {
			log(debugGui, "\tgui.NewLabel() aplug.NewLabel = nil", aplug.name)
			continue
		}
		aplug.NewLabel(&n.Widget, &newNode.Widget)
	}

	return newNode
}