blob: a50ee9aedd75b84b67d5e496e491d156e115c56b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package gui
import "log"
import toolkit "git.wit.org/wit/gui/toolkit/andlabs"
func (n *Node) NewSlider(name string, x int, y int) *Node {
var newT *toolkit.Toolkit
var sNode *Node
log.Println("toolkit.NewSlider() START", name)
n.verify()
// make a *Node with a *toolkit.Group
sNode = n.New(name + " part1")
newT = n.toolkit.NewSlider(name, x, y)
newT.Name = name
sNode.custom = n.custom
newT.Custom = func () {
commonCallback(sNode)
}
sNode.toolkit = newT
sNode.Dump()
// panic("checking Custom()")
return sNode
}
|