summaryrefslogtreecommitdiff
path: root/int.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 /int.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 'int.go')
-rw-r--r--int.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/int.go b/int.go
index 4a32c52..d2409da 100644
--- a/int.go
+++ b/int.go
@@ -20,12 +20,12 @@ func (n *Node) Int() int {
scs.Dump(n)
}
- if (n.Toolkit == nil) {
+ if (n.toolkit == nil) {
log.Println("gui.Node.Int() for toolkit struct = nil")
return 0
}
- i := n.Toolkit.Value()
+ i := n.toolkit.Value()
return i
}
@@ -36,11 +36,11 @@ func (n *Node) Value() int {
func (n *Node) SetValue(i int) {
log.Println("gui.SetValue() START")
- if (n.Toolkit == nil) {
+ if (n.toolkit == nil) {
log.Println("gui.Node.SetValue() for toolkit struct = nil")
panic("SetValue failed")
}
n.Dump()
- n.Toolkit.Dump()
- n.Toolkit.SetValue(i)
+ n.toolkit.Dump()
+ n.toolkit.SetValue(i)
}