summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
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()")