diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-16 00:05:07 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-02-16 00:09:25 -0500 |
commit | 8c8c21f3ffef1a7083405c45221576858d1af5d5 (patch) | |
tree | edc159a57ecd6eb68fe9bdc0e724810bc76f96bb /ui/drawable.go | |
parent | 18493180bdbbdadfe415d68c3a04a13b946fff43 (diff) | |
download | aerc-8c8c21f3ffef1a7083405c45221576858d1af5d5.tar.gz |
Initial pass on new frontend design
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)) +} |