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

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

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

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

	return newNode
}