aerc/lib/ui/interactive.go

21 lines
349 B
Go
Raw Normal View History

package ui
import (
tb "github.com/nsf/termbox-go"
)
type Interactive interface {
// Returns true if the event was handled by this component
Event(event tb.Event) bool
}
2018-02-27 04:54:39 +01:00
type Simulator interface {
// Queues up the given input events for simulation
Simulate(events []tb.Event)
}
2018-02-28 03:17:26 +01:00
type DrawableInteractive interface {
Drawable
Interactive
}