summaryrefslogtreecommitdiff
path: root/src/pkg/exp/draw/event.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/exp/draw/event.go')
-rw-r--r--src/pkg/exp/draw/event.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/pkg/exp/draw/event.go b/src/pkg/exp/draw/event.go
index 155922d1c..29cdb5f2f 100644
--- a/src/pkg/exp/draw/event.go
+++ b/src/pkg/exp/draw/event.go
@@ -4,6 +4,10 @@
package draw
+import (
+ "image"
+)
+
// A Context represents a single graphics window.
type Context interface {
// Screen returns an editable Image of window.
@@ -40,7 +44,7 @@ type Context interface {
// A Mouse represents the state of the mouse.
type Mouse struct {
- Buttons int // bit mask of buttons: 1<<0 is left, 1<<1 middle, 1<<2 right
- Point // location of cursor
- Nsec int64 // time stamp
+ Buttons int // bit mask of buttons: 1<<0 is left, 1<<1 middle, 1<<2 right
+ image.Point // location of cursor
+ Nsec int64 // time stamp
}