ui/app: rename DrawEvent to UpdateEvent and Window.Draw to Window.Update

Window.Draw is not the right name for a method that does more than
just drawing. Rename to Update instead, and rename the DrawEvent
accordingly for symmetry.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-08-07 20:35:37 +02:00
parent 3d519c5a37
commit 4e005f2bfa
8 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -420,7 +420,7 @@ func (w *window) draw(sync bool) {
w.height = int(r.bottom - r.top)
cfg := configForDC(w.hdc)
cfg.now = time.Now()
w.w.event(DrawEvent{
w.w.event(UpdateEvent{
Size: image.Point{
X: w.width,
Y: w.height,