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