Add window::Event::Resized to iced_native
This commit is contained in:
parent
0a83024505
commit
7ab6ed7ef9
4 changed files with 24 additions and 1 deletions
12
native/src/window/event.rs
Normal file
12
native/src/window/event.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/// A window-related event.
|
||||
#[derive(PartialEq, Clone, Copy, Debug)]
|
||||
pub enum Event {
|
||||
/// A window was resized
|
||||
Resized {
|
||||
/// The new width of the window (in units)
|
||||
width: u32,
|
||||
|
||||
/// The new height of the window (in units)
|
||||
height: u32,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue