summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar JL710 <76447362+JL710@users.noreply.github.com>2024-10-11 12:24:05 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-01-06 23:20:51 +0100
commit00b60d819b25abe14790a26fe0eb5818c3c6bc4f (patch)
tree48c3207e762343e7c3010450c53f5d02c345aede /winit
parentf5f075e5cdff84a58c181c498653b7ab66c9531a (diff)
downloadiced-00b60d819b25abe14790a26fe0eb5818c3c6bc4f.tar.gz
iced-00b60d819b25abe14790a26fe0eb5818c3c6bc4f.tar.bz2
iced-00b60d819b25abe14790a26fe0eb5818c3c6bc4f.zip
window task for setting resize increments
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs
index 416c8e70..58f4d96d 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -1311,6 +1311,16 @@ fn run_action<P, C>(
}));
}
}
+ window::Action::SetResizeIncrements(id, increments) => {
+ if let Some(window) = window_manager.get_mut(id) {
+ window.raw.set_resize_increments(increments.map(|x| {
+ winit::dpi::LogicalSize {
+ width: x.width,
+ height: x.height,
+ }
+ }));
+ }
+ }
window::Action::ChangeTitle(id, title) => {
if let Some(window) = window_manager.get_mut(id) {
window.raw.set_title(&title);