From 8c8c21f3ffef1a7083405c45221576858d1af5d5 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 16 Feb 2018 00:05:07 -0500 Subject: Initial pass on new frontend design --- ui/drawable.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ui/drawable.go (limited to 'ui/drawable.go') 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)) +} -- cgit v1.2.3