Add resize_events subscription to window module

This commit is contained in:
Héctor Ramón Jiménez 2024-07-13 12:53:06 +02:00
parent 1eabd38219
commit a108b2eebe
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 16 additions and 15 deletions

View file

@ -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.
///