mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
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:
+2
-1
@@ -5,6 +5,7 @@ package layout
|
||||
import (
|
||||
"image"
|
||||
|
||||
"gioui.org/io/event"
|
||||
"gioui.org/ui"
|
||||
)
|
||||
|
||||
@@ -51,7 +52,7 @@ type Context struct {
|
||||
Dimensions Dimensions
|
||||
|
||||
ui.Config
|
||||
ui.Queue
|
||||
event.Queue
|
||||
*ui.Ops
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import (
|
||||
"image"
|
||||
"time"
|
||||
|
||||
"gioui.org/io/event"
|
||||
"gioui.org/layout"
|
||||
"gioui.org/ui"
|
||||
)
|
||||
@@ -149,6 +150,6 @@ func (config) Px(v ui.Value) int {
|
||||
return int(v.V + .5)
|
||||
}
|
||||
|
||||
func (queue) Events(k ui.Key) []ui.Event {
|
||||
func (queue) Events(k event.Key) []event.Event {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user