summaryrefslogtreecommitdiff
path: root/textbox.go
blob: 61c9a5d3f039d0859e20a4babbe9a48d398f5a4b (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 (parent *Node) NewTextbox(name string) *Node {
	newNode := parent.newNode(name, toolkit.Textbox, func() {
		log(debugGui, "NewTextbox changed =", name)
	})

	a := newAction(newNode, toolkit.Add)
	sendAction(a, newNode, parent)
	return newNode
}