2022-10-16 08:07:13 -05:00
|
|
|
package gui
|
|
|
|
|
2023-03-01 11:35:36 -06:00
|
|
|
import (
|
|
|
|
"git.wit.org/wit/gui/toolkit"
|
|
|
|
)
|
2022-10-16 08:07:13 -05:00
|
|
|
|
2023-03-01 11:35:36 -06:00
|
|
|
func (n *Node) NewSlider(name string, x int, y int) *Node {
|
2023-04-08 11:06:50 -05:00
|
|
|
newNode := n.newNode(name, toolkit.Slider, func() {
|
2023-03-01 11:35:36 -06:00
|
|
|
log(debugGui, "even newer clicker() name in NewSlider name =", name)
|
|
|
|
})
|
2022-10-19 13:23:22 -05:00
|
|
|
|
2023-03-23 12:35:12 -05:00
|
|
|
var a toolkit.Action
|
2023-03-29 23:03:04 -05:00
|
|
|
a.ActionType = toolkit.Add
|
2023-03-23 12:35:12 -05:00
|
|
|
a.X = x
|
|
|
|
a.Y = y
|
2023-04-03 16:32:01 -05:00
|
|
|
a.Name = name
|
|
|
|
a.Text = name
|
2023-03-23 12:35:12 -05:00
|
|
|
newaction(&a, newNode, n)
|
|
|
|
|
2022-11-13 08:53:03 -06:00
|
|
|
return newNode
|
2022-10-16 08:07:13 -05:00
|
|
|
}
|