summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin.go b/plugin.go
index cfa1fb4..1498880 100644
--- a/plugin.go
+++ b/plugin.go
@@ -16,6 +16,11 @@ import (
)
// searches the binary tree for a WidgetId
+func FindWidgetId(id int) *Node {
+ return treeRoot.FindWidgetId(id)
+}
+
+// searches the binary tree for a WidgetId
func (n *Node) FindWidgetId(id int) *Node {
if n == nil {
return nil