summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-25 08:57:01 -0500
committerJeff Carr <[email protected]>2025-03-25 13:17:00 -0500
commit308543c02c1e39ac6b9dd45ae31ab9aa596853e8 (patch)
tree16ea1bbfea26b1efa103e0e26bede1a958052d74 /find.go
parentd141b4d308f71418e8d43a58c2e04f9560db3092 (diff)
identify widgets in tables
Diffstat (limited to 'find.go')
-rw-r--r--find.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/find.go b/find.go
index 6b22ad3..a109271 100644
--- a/find.go
+++ b/find.go
@@ -10,6 +10,10 @@ func FindWidgetId(id int) *Node {
return treeRoot.FindWidgetId(id)
}
+func FindWidgetById(id int) *Node {
+ return treeRoot.FindWidgetId(id)
+}
+
// searches the binary tree for a WidgetId
func (n *Node) FindWidgetId(id int) *Node {
if n == nil {