summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 10:26:42 -0600
committerJeff Carr <[email protected]>2024-02-09 10:26:42 -0600
commitec829f6e2be515b717d0ebd20b56623e44aff810 (patch)
tree77551f22d4ffcdbdc54d10ee94e1c1230eec5693 /debug.go
parent12829e6e1c193bf7e98d9b13129d16c862995491 (diff)
binary tree is global
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go8
1 files changed, 8 insertions, 0 deletions
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()")