summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/common.go b/common.go
new file mode 100644
index 0000000..acd0084
--- /dev/null
+++ b/common.go
@@ -0,0 +1,14 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+package guipb
+
+func (x *Widget) IsButton() bool {
+ if _, ok := x.GetType().(*Widget_Button); ok {
+ return true
+ }
+ return false
+}
+
+//func Init() bool {
+// return true
+//}