1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00
aerc/ui/drawable.go
2018-02-17 16:35:36 -05:00

11 lines
263 B
Go

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))
// Invalidates the drawable
Invalidate()
}