summaryrefslogtreecommitdiff
path: root/spinbox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-10-20 06:55:42 -0500
committerJeff Carr <[email protected]>2022-10-20 06:55:42 -0500
commitb8ef0bb05dc14bc4291f3d156b199fa125cdb9d7 (patch)
tree71280d7f01805dfbd430f71df16858079686b8fc /spinbox.go
parentf3af1f5b7ff78b3f73d7510622fc9633dec36d35 (diff)
Squashed commit of the following:
all non binary tree structs are gone (almost all) Use names from https://en.wikipedia.org/wiki/Graphical_widget toolkit andlabs/ui is isolated from being accessable all direct references to andlabs are removed working dropdown widgets add debugging more buttons and windows
Diffstat (limited to 'spinbox.go')
-rw-r--r--spinbox.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/spinbox.go b/spinbox.go
deleted file mode 100644
index 6d87866..0000000
--- a/spinbox.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package gui
-
-import "log"
-
-import toolkit "git.wit.org/wit/gui/toolkit/andlabs"
-
-func (n *Node) NewSpinbox(name string, x int, y int) *Node {
- // make new node here
- log.Println("toolkit.NewSpinbox", x, y)
-
- newNode := n.New(name)
-
- t := toolkit.NewSpinbox(n.uiBox, name, x, y)
- t.OnChanged = func(t *toolkit.Toolkit) {
- log.Println("toolkit.NewSpinbox() value =", t.Value())
- if (newNode.OnChanged != nil) {
- newNode.OnChanged(newNode)
- }
- }
- newNode.Toolkit = t
-
- return newNode
-}