From ec829f6e2be515b717d0ebd20b56623e44aff810 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 9 Feb 2024 10:26:42 -0600 Subject: binary tree is global Signed-off-by: Jeff Carr --- debug.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'debug.go') diff --git a/debug.go b/debug.go index f14e94c..86fa7ce 100644 --- a/debug.go +++ b/debug.go @@ -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()") -- cgit v1.2.3