17 lines
321 B
Go
17 lines
321 B
Go
package gui
|
|
|
|
import (
|
|
"git.wit.org/wit/gui/toolkit"
|
|
)
|
|
|
|
func (n *Node) NewSlider(name string, x int, y int) *Node {
|
|
newNode := n.New(name, toolkit.Slider, func() {
|
|
log(debugGui, "even newer clicker() name in NewSlider name =", name)
|
|
})
|
|
newNode.widget.X = x
|
|
newNode.widget.Y = y
|
|
|
|
send(n, newNode)
|
|
return newNode
|
|
}
|