From 60b351b78c930110716b0c9db2227e13704f826d Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 17 Feb 2018 16:35:36 -0500 Subject: Polish up grid and add new rendering loop --- ui/drawable.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/drawable.go') 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() } -- cgit v1.2.3