new-gui/textbox.go

21 lines
370 B
Go

package gui
import (
"git.wit.org/wit/gui/toolkit"
)
func (n *Node) NewTextbox(name string) *Node {
newNode := n.New(name, toolkit.Textbox, func() {
log(debugGui, "NewTextbox changed =", name)
})
var a toolkit.Action
a.ActionType = toolkit.Add
// a.Widget = &newNode.widget
// a.Where = &n.widget
// action(&a)
newaction(&a, newNode, n)
return newNode
}