From a108b2eebe210c774d07e436be5d73293dfea9eb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 13 Jul 2024 12:53:06 +0200 Subject: Add `resize_events` subscription to `window` module --- core/src/window/event.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'core/src/window') diff --git a/core/src/window/event.rs b/core/src/window/event.rs index a14d127f..c9532e0d 100644 --- a/core/src/window/event.rs +++ b/core/src/window/event.rs @@ -23,20 +23,10 @@ pub enum Event { Closed, /// A window was moved. - Moved { - /// The new logical x location of the window - x: i32, - /// The new logical y location of the window - y: i32, - }, + Moved(Point), /// A window was resized. - Resized { - /// The new logical width of the window - width: u32, - /// The new logical height of the window - height: u32, - }, + Resized(Size), /// A window redraw was requested. /// -- cgit