diff options
| author | Jeff Carr <[email protected]> | 2024-02-09 10:26:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-09 10:26:42 -0600 |
| commit | ec829f6e2be515b717d0ebd20b56623e44aff810 (patch) | |
| tree | 77551f22d4ffcdbdc54d10ee94e1c1230eec5693 /debug.go | |
| parent | 12829e6e1c193bf7e98d9b13129d16c862995491 (diff) | |
binary tree is global
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -5,6 +5,10 @@ import ( "go.wit.com/widget" ) +func ShowButtons() { + treeRoot.ShowButtons() +} + func (n *Node) ShowButtons() { if n.WidgetType == widget.Button { n.DumpWidget("Button:") @@ -21,6 +25,10 @@ func (n *Node) DumpWidget(pad string) { var depth int = 0 +func ListWidgets() { + treeRoot.ListWidgets() +} + func (n *Node) ListWidgets() { if n == nil { log.Log(TREEWARN, "ERRRORRRR: n == nil in ListWidgets()") |
