Add window::Event::Moved
This commit is contained in:
parent
dc0b96ce40
commit
81eb3c276d
2 changed files with 14 additions and 0 deletions
|
|
@ -3,6 +3,14 @@ use std::path::PathBuf;
|
|||
/// A window-related event.
|
||||
#[derive(PartialEq, Clone, Debug)]
|
||||
pub enum Event {
|
||||
/// 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,
|
||||
},
|
||||
|
||||
/// A window was resized.
|
||||
Resized {
|
||||
/// The new width of the window (in units)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue