window task for setting resize increments
This commit is contained in:
parent
f5f075e5cd
commit
00b60d819b
2 changed files with 22 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue