aerc/lib/ui/drawable.go

11 lines
263 B
Go
Raw Normal View History

2018-02-16 06:05:07 +01:00
package ui
type Drawable interface {
// Called when this renderable should draw itself
2018-02-17 21:21:22 +01:00
Draw(ctx *Context)
2018-02-16 06:05:07 +01:00
// Specifies a function to call when this cell needs to be redrawn
OnInvalidate(callback func(d Drawable))
// Invalidates the drawable
Invalidate()
2018-02-16 06:05:07 +01:00
}