aboutsummaryrefslogtreecommitdiffstats
path: root/layout/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'layout/interface.go')
-rw-r--r--layout/interface.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/layout/interface.go b/layout/interface.go
deleted file mode 100644
index 28b6a01..0000000
--- a/layout/interface.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package layout
-
-import (
- "fmt"
- "image"
- "image/draw"
-)
-
-type EventDrawer interface {
- Event() <-chan Event
- Draw() chan<- func(draw.Image) image.Rectangle
-}
-
-type Event string
-
-func Eventf(format string, a ...interface{}) Event {
- return Event(fmt.Sprintf(format, a...))
-}
-
-func (e Event) Matches(format string, a ...interface{}) bool {
- _, err := fmt.Sscanf(string(e), format, a...)
- return err == nil
-}