aboutsummaryrefslogtreecommitdiffstats
path: root/ui/drawable.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/drawable.go')
-rw-r--r--ui/drawable.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/drawable.go b/ui/drawable.go
new file mode 100644
index 00000000..eb60463b
--- /dev/null
+++ b/ui/drawable.go
@@ -0,0 +1,8 @@
+package ui
+
+type Drawable interface {
+ // Called when this renderable should draw itself
+ Draw(ctx Context)
+ // Specifies a function to call when this cell needs to be redrawn
+ OnInvalidate(callback func(d Drawable))
+}