diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-26 22:54:39 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-02-26 22:54:39 -0500 |
commit | 1418e1b9dc41d8f69bccb8de0fe0f1fb6835ce11 (patch) | |
tree | 4ae8b3373fdadb6dd3e7b8c8789cf938522b8f8a /lib/ui/interactive.go | |
parent | 661e3ec2a4dd97d4a8a8eab4f281b088770a6af2 (diff) | |
download | aerc-1418e1b9dc41d8f69bccb8de0fe0f1fb6835ce11.tar.gz |
Split UI library and widgets
Diffstat (limited to 'lib/ui/interactive.go')
-rw-r--r-- | lib/ui/interactive.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/ui/interactive.go b/lib/ui/interactive.go new file mode 100644 index 0000000..8bdf592 --- /dev/null +++ b/lib/ui/interactive.go @@ -0,0 +1,15 @@ +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) +} |