diff options
| author | Jeff Carr <[email protected]> | 2025-03-05 03:00:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-05 03:00:21 -0600 |
| commit | 15100aad3ee4294fc22bbeb697e6c6b88228a0ca (patch) | |
| tree | 1b0c8f73b86e9d28b0bc682d35b5e5e6bde00265 /structs.go | |
| parent | 975c2d31020540dd4a67fd049aab565bb168ae21 (diff) | |
func shouldn't have been globalv0.22.22
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 45 |
1 files changed, 22 insertions, 23 deletions
@@ -20,29 +20,28 @@ import ( var treeRoot *Node type TreeInfo struct { - sync.Mutex // a lock around the tree to serialize access - ok bool // indicates the plugin actually initialized - PluginName string // used to identify the plugin - config *ToolkitConfigs // protobuf of plugin settings - callback chan widget.Action // mouse clicks or keyboard events back to the program - pluginChan chan widget.Action // this is the channel we get requests to make widgets - frozenChan chan widget.Action // expirement to get fyne to work - Add func(*Node) // add a new widget - AddText func(*Node, string) // add a string to a dropdown widget - SetText func(*Node, string) // set the text of a widget - SetTitle func(*Node, string) // update the title of a window or tab - SetLabel func(*Node, string) // update the "label" (aka "Name") for a widget - SetChecked func(*Node, bool) // set the state of a checkbox - ToolkitInit func() // init the plugin - ToolkitClose func() // shutdown and unload the plugin - Show func(*Node) // show a widget - Hide func(*Node) // hide a widget - Enable func(*Node) // enable a widget - Disable func(*Node) // disable a widget - ShowTable func(*guipb.Table) // attempt at sending a whole table - // NodeI interface{} // is an interface useful here? - // NodeAction func(*Node, widget.ActionType) // deprecate - currentTables []*guipb.Table + sync.Mutex // a lock around the tree to serialize access + ok bool // indicates the plugin actually initialized + PluginName string // used to identify the plugin + config *ToolkitConfigs // protobuf of plugin settings + callback chan widget.Action // mouse clicks or keyboard events back to the program + pluginChan chan widget.Action // this is the channel we get requests to make widgets + frozenChan chan widget.Action // expirement to get fyne to work + Add func(*Node) // add a new widget + AddText func(*Node, string) // add a string to a dropdown widget + SetText func(*Node, string) // set the text of a widget + SetTitle func(*Node, string) // update the title of a window or tab + SetLabel func(*Node, string) // update the "label" (aka "Name") for a widget + SetChecked func(*Node, bool) // set the state of a checkbox + ToolkitInit func() // init the plugin + ToolkitClose func() // shutdown and unload the plugin + Show func(*Node) // show a widget + Hide func(*Node) // hide a widget + Enable func(*Node) // enable a widget + Disable func(*Node) // disable a widget + ShowTable func(*guipb.Table) // attempt at sending a whole table + currentTables []*guipb.Table // track the list of tables? + Root *guipb.Tree // this is the future of this system } type Node struct { |
