blob: 639631d416be9d96fcd3b1382094fa34af685b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package gui
import "log"
func (n *Node) NewTextbox(name string) *Node {
newNode := n.New(name)
newNode.Widget.Custom = func() {
log.Println("even newer clicker() name in NewTextBox", newNode.Widget)
}
for _, aplug := range allPlugins {
log.Println("gui.NewTextbox() aplug =", aplug.name, "name =", newNode.Widget.Name)
if (aplug.NewTextbox == nil) {
log.Println("\tgui.NewTextbox() aplug.NewTextbox = nil", aplug.name)
continue
}
aplug.NewTextbox(&n.Widget, &newNode.Widget)
}
return newNode
}
|