aerc/lib/ui/interactive.go

21 lines
351 B
Go
Raw Normal View History

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