diff options
Diffstat (limited to 'lib/ui/interfaces.go')
-rw-r--r-- | lib/ui/interfaces.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ui/interfaces.go b/lib/ui/interfaces.go index 0cdffc1e..9008ea72 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) +} |