summaryrefslogtreecommitdiff
path: root/widget.common.go
diff options
context:
space:
mode:
Diffstat (limited to 'widget.common.go')
-rw-r--r--widget.common.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/widget.common.go b/widget.common.go
new file mode 100644
index 0000000..e338a54
--- /dev/null
+++ b/widget.common.go
@@ -0,0 +1,10 @@
+// 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
+}