summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-07-13 13:01:56 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-13 13:01:56 +0200
commita3d9cf2a6471b715f74bc8f8f0b0c93250fac4dd (patch)
tree6adfe63a00c1a8757060a25888cdd3f8070a8ece /core
parent1eabd3821928f47451363f7bca3757701182a4c1 (diff)
parenta108b2eebe210c774d07e436be5d73293dfea9eb (diff)
downloadiced-a3d9cf2a6471b715f74bc8f8f0b0c93250fac4dd.tar.gz
iced-a3d9cf2a6471b715f74bc8f8f0b0c93250fac4dd.tar.bz2
iced-a3d9cf2a6471b715f74bc8f8f0b0c93250fac4dd.zip
Merge pull request #2505 from iced-rs/window-resize-events
Add `resize_events` subscription to `window` module
Diffstat (limited to 'core')
-rw-r--r--core/src/window/event.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/core/src/window/event.rs b/core/src/window/event.rs
index a14d127f..c9532e0d 100644
--- a/core/src/window/event.rs
+++ b/core/src/window/event.rs
@@ -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.
///