aboutsummaryrefslogtreecommitdiffstats
path: root/env.go
diff options
context:
space:
mode:
Diffstat (limited to 'env.go')
-rw-r--r--env.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/env.go b/env.go
index cd71b5b..c1800d6 100644
--- a/env.go
+++ b/env.go
@@ -5,7 +5,7 @@ import (
"image/draw"
)
-type Env struct {
- Events <-chan Event
- Draw chan<- func(draw.Image) image.Rectangle
+type Env interface {
+ Events() <-chan Event
+ Draw() chan<- func(draw.Image) image.Rectangle
}