summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2021-07-26 12:36:13 -0700
committerLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2021-07-26 12:36:13 -0700
commit81eb3c276d2aa5490173b22318be5fc045270109 (patch)
tree2177ed7d58a2b80b30f59f1ed470d170b23e37b4 /native
parentdc0b96ce407283f2ffd9add5ad339f89097555d3 (diff)
downloadiced-81eb3c276d2aa5490173b22318be5fc045270109.tar.gz
iced-81eb3c276d2aa5490173b22318be5fc045270109.tar.bz2
iced-81eb3c276d2aa5490173b22318be5fc045270109.zip
Add window::Event::Moved
Diffstat (limited to 'native')
-rw-r--r--native/src/window/event.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/native/src/window/event.rs b/native/src/window/event.rs
index 3aa1ab0b..64f2b8d8 100644
--- a/native/src/window/event.rs
+++ b/native/src/window/event.rs
@@ -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)