diff options
Diffstat (limited to 'toolkit/nocui/structs.go')
| -rw-r--r-- | toolkit/nocui/structs.go | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/toolkit/nocui/structs.go b/toolkit/nocui/structs.go new file mode 100644 index 0000000..ed004de --- /dev/null +++ b/toolkit/nocui/structs.go @@ -0,0 +1,41 @@ +package main + +import "git.wit.org/wit/gui/toolkit" + +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 *nocuiT +} + +// stores the raw toolkit internals +type nocuiT struct { + Width int + Height int + + c int + val map[int]string +} |
