mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 08:55:35 +00:00
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:
+3
-3
@@ -13,9 +13,9 @@ import (
|
||||
"gioui.org/ui"
|
||||
)
|
||||
|
||||
// DrawEvent is sent when a Window's Draw
|
||||
// UpdateEvent is sent when a Window's Update
|
||||
// method must be called.
|
||||
type DrawEvent struct {
|
||||
type UpdateEvent struct {
|
||||
Config Config
|
||||
Size image.Point
|
||||
Insets Insets
|
||||
@@ -178,7 +178,7 @@ func newWindowRendezvous() *windowRendezvous {
|
||||
return wr
|
||||
}
|
||||
|
||||
func (_ DrawEvent) ImplementsEvent() {}
|
||||
func (_ UpdateEvent) ImplementsEvent() {}
|
||||
func (_ StageEvent) ImplementsEvent() {}
|
||||
func (_ *CommandEvent) ImplementsEvent() {}
|
||||
func (_ DestroyEvent) ImplementsEvent() {}
|
||||
|
||||
Reference in New Issue
Block a user