From 8d8aabd1c86399603347d24f9060ed311d66153c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 27 Apr 2023 09:06:57 -0500 Subject: andlabs: window and tab now in binary tree Signed-off-by: Jeff Carr --- toolkit/andlabs/structs.go | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'toolkit/andlabs/structs.go') diff --git a/toolkit/andlabs/structs.go b/toolkit/andlabs/structs.go index 60047ef..c4618b9 100644 --- a/toolkit/andlabs/structs.go +++ b/toolkit/andlabs/structs.go @@ -9,6 +9,33 @@ var andlabs map[int]*andlabsT // var callback func(int) bool var callback chan toolkit.Action +type node struct { + parent *node + children []*node + + WidgetId int // widget ID + WidgetType toolkit.WidgetType + ParentId int // parent ID + + Name string + Text string + + // This is how the values are passed back and forth + // values from things like checkboxes & dropdown's + B bool + I int + S string + + A any // switch to this or deprecate this? pros/cons? + + // This is used for things like a slider(0,100) + X int + Y int + + // the internal plugin toolkit structure + tk *andlabsT +} + // stores the raw toolkit internals type andlabsT struct { wId int // widget ID @@ -22,7 +49,7 @@ type andlabsT struct { // tw *toolkit.Widget parent *andlabsT - a toolkit.Action + children []*andlabsT uiControl ui.Control -- cgit v1.2.3