new-gui/button.go

10 lines
196 B
Go

package gui
import "git.wit.org/wit/gui/toolkit"
func (n *Node) NewButton(name string, custom func()) *Node {
newNode := n.New(name, toolkit.Button, custom)
send(n, newNode)
return newNode
}