summary refs log tree commit diff stats
path: root/lib/ui/interfaces.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/interfaces.go')
-rw-r--r--lib/ui/interfaces.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go
index 0cdffc1..9008ea7 100644
--- a/lib/ui/interfaces.go
+++ b/lib/ui/interfaces.go
@@ -40,3 +40,10 @@ type Container interface {
 	// recurse into your grandchildren).
 	Children() []Drawable
 }
+
+// A drawable that can be clicked
+type Clickable interface {
+	Drawable
+
+	MouseEvent(event tcell.Event)
+}