io/event: move event types from package ui to its own package

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-09-30 15:13:25 +02:00
parent 7a259e68f7
commit e7a97bf176
16 changed files with 107 additions and 94 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import (
"unicode/utf8"
"gioui.org/gesture"
"gioui.org/io/event"
"gioui.org/io/key"
"gioui.org/io/pointer"
"gioui.org/layout"
@@ -64,7 +65,7 @@ type Editor struct {
clicker gesture.Click
// events is the list of events not yet processed.
events []ui.Event
events []event.Event
}
type EditorEvent interface {