diff options
Diffstat (limited to 'ui/drawable.go')
-rw-r--r-- | ui/drawable.go | 8 |
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)) +} |