summaryrefslogtreecommitdiff
path: root/widget.common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-04-30 14:41:14 -0500
committerJeff Carr <[email protected]>2025-04-30 14:41:14 -0500
commiteb37c0b44927ba539c763ea55c9be95a0b1ec27f (patch)
treea3134bb07a707568fb4d76f21553147b2cd28524 /widget.common.go
parent91ff254e254ae833aa5db6df800f8451a2d269e8 (diff)
attempt sending a protobuf treev0.0.14v0.0.13v0.0.12v0.0.11
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
+}