mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-02 16:06:19 +00:00
ui: change events to have "Event" suffixed, not prefixed
Match the Go error naming convention (FooError). Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-3
@@ -240,16 +240,16 @@ func (w *Window) event(e Event) {
|
||||
switch e := e.(type) {
|
||||
case input.Event:
|
||||
needRedraw = true
|
||||
case *Command:
|
||||
case *CommandEvent:
|
||||
needAck = true
|
||||
needRedraw = true
|
||||
case ChangeStage:
|
||||
case StageEvent:
|
||||
w.stage = e.Stage
|
||||
if w.stage > StageDead {
|
||||
needAck = true
|
||||
w.syncGPU = true
|
||||
}
|
||||
case Draw:
|
||||
case DrawEvent:
|
||||
if e.Size == (image.Point{}) {
|
||||
panic(errors.New("internal error: zero-sized Draw"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user