summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-07-27 08:40:49 +0700
committerLibravatar GitHub <noreply@github.com>2021-07-27 08:40:49 +0700
commit1cef6a2a589a0bd156553065257a2708d7bbf38b (patch)
tree2177ed7d58a2b80b30f59f1ed470d170b23e37b4 /native
parentdc0b96ce407283f2ffd9add5ad339f89097555d3 (diff)
parent81eb3c276d2aa5490173b22318be5fc045270109 (diff)
downloadiced-1cef6a2a589a0bd156553065257a2708d7bbf38b.tar.gz
iced-1cef6a2a589a0bd156553065257a2708d7bbf38b.tar.bz2
iced-1cef6a2a589a0bd156553065257a2708d7bbf38b.zip
Merge pull request #965 from tarkah/feature/window-event-moved
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)