blob: ffb041a2166055d23fd42940f189aedda6a5827d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package gui
import (
"git.wit.org/wit/gui/toolkit"
)
func (parent *Node) NewSlider(name string, x int, y int) *Node {
newNode := parent.newNode(name, toolkit.Slider)
newNode.Custom = func() {
log(debugGui, "even newer clicker() name in NewSlider name =", name)
}
newNode.X = x
newNode.Y = y
a := newAction(newNode, toolkit.Add)
a.X = x
a.Y = y
sendAction(a)
return newNode
}
|