Documentation ¶
Index ¶
- Variables
- func ListWidgets()
- func ShowButtons()
- type Node
- func (n *Node) Bool() bool
- func (n *Node) CurrentS() string
- func (n *Node) DeleteNode()
- func (n *Node) DumpWidget(pad string)
- func (n *Node) FindWidgetId(id int) *Node
- func (n *Node) GetLabel() string
- func (n *Node) GetProgName() string
- func (n *Node) Hidden() bool
- func (n *Node) Json() []string
- func (n *Node) ListWidgets()
- func (n *Node) ProgName() string
- func (n *Node) SetCurrentS(s string)
- func (n *Node) ShowButtons()
- func (n *Node) String() string
- func (n *Node) Strings() []string
- type TreeInfo
- func (me *TreeInfo) AddNode(a *widget.Action) *Node
- func (me *TreeInfo) Callback(guiCallback chan widget.Action)
- func (me *TreeInfo) PluginChannel() chan widget.Action
- func (me *TreeInfo) SendEnableDebugger()
- func (me *TreeInfo) SendFromUser(n *Node)
- func (me *TreeInfo) SendToolkitLoad(s string)
- func (me *TreeInfo) SendToolkitPanic()
- func (me *TreeInfo) SendUserEvent(n *Node)
- func (me *TreeInfo) SendWidgetEvent(n *Node)
- func (me *TreeInfo) SendWindowCloseEvent(n *Node)
Constants ¶
This section is empty.
Variables ¶
View Source
var TREE *log.LogFlag
View Source
var TREEWARN *log.LogFlag
Functions ¶
func ListWidgets ¶ added in v0.20.2
func ListWidgets()
func ShowButtons ¶ added in v0.20.2
func ShowButtons()
Types ¶
type Node ¶
type Node struct { Parent *Node WidgetId int // widget ID WidgetType widget.WidgetType ParentId int // parent ID State widget.State // the internal plugin toolkit structure // in the gtk plugin, it has gtk things like margin & border settings // in the text console one, it has text console things like colors for menus & buttons TK any // contains filtered or unexported fields }
func FindWidgetId ¶ added in v0.20.2
searches the binary tree for a WidgetId
func (*Node) DeleteNode ¶
func (n *Node) DeleteNode()
func (*Node) DumpWidget ¶
func (*Node) FindWidgetId ¶
searches the binary tree for a WidgetId
func (*Node) GetProgName ¶
func (*Node) ListWidgets ¶
func (n *Node) ListWidgets()
func (*Node) SetCurrentS ¶ added in v0.20.0
func (*Node) ShowButtons ¶
func (n *Node) ShowButtons()
type TreeInfo ¶
type TreeInfo struct { PluginName string // ActionFromChannel func(widget.Action) NodeAction func(*Node, widget.ActionType) Add func(*Node) AddText func(*Node, string) SetText func(*Node, string) SetTitle func(*Node, string) SetLabel func(*Node, string) SetChecked func(*Node, bool) ToolkitClose func() // contains filtered or unexported fields }
func (*TreeInfo) Callback ¶
Other goroutines must use this to access the GUI
You can not acess / process the GUI thread directly from other goroutines. This is due to the nature of how Linux, MacOS and Windows work (they all work differently. suprise. surprise.)
this sets the channel to send user events back from the plugin
func (*TreeInfo) PluginChannel ¶
func (*TreeInfo) SendEnableDebugger ¶
func (me *TreeInfo) SendEnableDebugger()
func (*TreeInfo) SendFromUser ¶ added in v0.19.2
func (*TreeInfo) SendToolkitLoad ¶
func (*TreeInfo) SendToolkitPanic ¶
func (me *TreeInfo) SendToolkitPanic()
func (*TreeInfo) SendUserEvent ¶
Other goroutines must use this to access the GUI
func (*TreeInfo) SendWidgetEvent ¶ added in v0.19.2
The user clicked on something. Or typed something
func (*TreeInfo) SendWindowCloseEvent ¶
Click to show internal directories.
Click to hide internal directories.