blob: ef094519c4da71e5211362de5886f2589eb397bd (
plain)
1
2
3
4
5
6
7
8
9
10
|
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()
}
|