summaryrefslogtreecommitdiff
path: root/nocui/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 21:31:49 -0600
committerJeff Carr <[email protected]>2024-01-17 21:31:49 -0600
commit841e6252c95244f0ee7faf2c01d33f69a8ab483a (patch)
treeef400228622b87611168db2227269ba7fd56625d /nocui/structs.go
parentba95c13799740b5f55541fc5e8ab9f1d34f7e421 (diff)
common tree package for toolkitsv0.12.4
This update provides *lots* of toolkit updates. This will allow the next step of debugging the gocui toolkit to make it work again. There are new common routines for handling the plugin channel communication Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nocui/structs.go')
-rw-r--r--nocui/structs.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/nocui/structs.go b/nocui/structs.go
index 888bcb5..c8a7cb4 100644
--- a/nocui/structs.go
+++ b/nocui/structs.go
@@ -1,17 +1,22 @@
package main
+import (
+ "go.wit.com/gui/toolkits/tree"
+)
+
// stores the raw toolkit internals
type guiWidget struct {
Width int
Height int
c int
- val map[int]string
+ val map[string]int
}
// It's probably a terrible idea to call this 'me'
var me config
type config struct {
- rootNode *node // the base of the binary tree. it should have id == 0
+ treeRoot *tree.Node // the base of the binary tree. it should have id == 0
+ myTree *tree.TreeInfo
}