aboutsummaryrefslogtreecommitdiff
path: root/ui/drawable.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-16 00:05:07 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-16 00:09:25 -0500
commit8c8c21f3ffef1a7083405c45221576858d1af5d5 (patch)
treeedc159a57ecd6eb68fe9bdc0e724810bc76f96bb /ui/drawable.go
parent18493180bdbbdadfe415d68c3a04a13b946fff43 (diff)
Initial pass on new frontend design
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 0000000..eb60463
--- /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))
+}