diff options
| author | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-01 11:35:36 -0600 |
| commit | 8dbf5a09097b7868e9218bf98716c57eac998a10 (patch) | |
| tree | ab3bdfeaf5a59a55de9d2a6661d2d824090491e5 /structs.go | |
| parent | f3bb68396afa7452ecf1c8d4744c825a9d81057c (diff) | |
lots cleaner code between the pluginv0.6.1
Queue() around SetText is helping userspace crashing
merge forceDump(bool) into Dump()
debugging output configuration is pretty clean
keep cutting down duplicate things
--gui-verbose flag works
make label "standard" code
add debug.FreeOSMemory()
move the GO language internals to display in the GUI
update push to do tags and go to github.com/wit-go/
remove the other license file
it might be confusing golang.org and github
proper WidgetType
added a Quit() button
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -25,8 +25,11 @@ var Config GuiConfig type GuiArgs struct { Toolkit []string `arg:"--toolkit" help:"The order to attempt loading plugins [gocui,andlabs,gtk,qt]"` GuiDebug bool `arg:"--gui-debug" help:"debug the GUI"` + GuiVerbose bool `arg:"--gui-verbose" help:"enable all GUI flags"` } +// var verbose GuiArgs.GuiDebug + type GuiConfig struct { // This is the master node. The Binary Tree starts here master *Node @@ -41,6 +44,9 @@ type GuiConfig struct { depth int counter int // used to make unique ID's prefix string + + ActionCh1 chan int + ActionCh2 chan int } // The Node is a binary tree. This is how all GUI elements are stored @@ -48,7 +54,7 @@ type GuiConfig struct { type Node struct { id int - Widget toolkit.Widget + widget toolkit.Widget // deprecate these and use toolkit.Widget Name string @@ -56,16 +62,15 @@ type Node struct { Height int // this function is run when there are mouse or keyboard events - OnChanged func(*Node) + Custom func() parent *Node children []*Node // is keeping // deprecate these things if they don't really need to exist - custom func() - checked bool - text string + // checked bool + // text string } func (n *Node) Parent() *Node { |
