aboutsummaryrefslogtreecommitdiff
path: root/ui/drawable.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-02-17 16:35:36 -0500
committerDrew DeVault <sir@cmpwn.com>2018-02-17 16:35:36 -0500
commit60b351b78c930110716b0c9db2227e13704f826d (patch)
tree3d5d6f69fe416cfd4032c7d672168c965999ec4d /ui/drawable.go
parent1892d73161a006182d7ef467e2bfc03c11587cb6 (diff)
Polish up grid and add new rendering loop
Diffstat (limited to 'ui/drawable.go')
-rw-r--r--ui/drawable.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/drawable.go b/ui/drawable.go
index a61c020..ef09451 100644
--- a/ui/drawable.go
+++ b/ui/drawable.go
@@ -5,4 +5,6 @@ type Drawable interface {
Draw(ctx *Context)
// Specifies a function to call when this cell needs to be redrawn
OnInvalidate(callback func(d Drawable))
+ // Invalidates the drawable
+ Invalidate()
}