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:
Elias Naur
2019-06-21 17:08:34 +02:00
parent de5d5e19f5
commit 0b6dd4efd9
12 changed files with 64 additions and 64 deletions
+3 -3
View File
@@ -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"))
}