21 lines
357 B
Go
21 lines
357 B
Go
package gui
|
|
|
|
import (
|
|
"go.wit.com/gui/toolkit"
|
|
)
|
|
|
|
func (parent *Node) NewSpinner(name string, x int, y int) *Node {
|
|
newNode := parent.newNode(name, toolkit.Spinner)
|
|
|
|
newNode.Custom = func() {
|
|
log(debugChange, "default NewSpinner() change", name)
|
|
}
|
|
|
|
newNode.X = x
|
|
newNode.Y = y
|
|
|
|
a := newAction(newNode, toolkit.Add)
|
|
sendAction(a)
|
|
return newNode
|
|
}
|