diff options
| author | Jeff Carr <[email protected]> | 2025-02-13 17:52:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-13 17:52:43 -0600 |
| commit | a75f0be4608991a85022981b3e033970ce40abb3 (patch) | |
| tree | de3a798e66f9bb73c7736dbc4156c286df19cf8c /structs.go | |
| parent | dcfa5d03ee7127d894f38e6ec5a2a8f9ffacfc96 (diff) | |
a simpler time
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 32 |
1 files changed, 18 insertions, 14 deletions
@@ -17,21 +17,25 @@ import ( var treeRoot *Node type TreeInfo struct { - 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 - NodeAction func(*Node, widget.ActionType) // deprecate - 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 - ToolkitClose func() // shutdown and unload the plugin - ShowTable func(*Node) // attempt at sending a whole table + 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 + 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 + ToolkitClose func() // shutdown and unload the plugin + ShowTable func(*Node) // attempt at sending a whole table + Show func(*Node) // show a widget + Hide func(*Node) // hide a widget + Enable func(*Node) // enable a widget + Disable func(*Node) // disable a widget // NodeI interface{} // is an interface useful here? + // NodeAction func(*Node, widget.ActionType) // deprecate } type Node struct { |
