aboutsummaryrefslogblamecommitdiffstats
path: root/lib/ui/interactive.go
blob: efab8282e02ae6b1d99c77a9b9ac933cd5550fbf (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                  




                                                          




                                    
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
}

type Simulator interface {
	// Queues up the given input events for simulation
	Simulate(events []tb.Event)
}

type DrawableInteractive interface {
	Drawable
	Interactive
}