introduce window::spawn and window::close

This commit is contained in:
Richard 2022-10-19 23:33:20 -03:00 committed by bungoboingo
parent 1bc0c480f9
commit f93fa02543
5 changed files with 123 additions and 71 deletions

View file

@ -675,6 +675,11 @@ pub fn run_command<A, E>(
window::Action::Drag => {
let _res = window.drag_window();
}
window::Action::Spawn { .. } | window::Action::Close => {
log::info!(
"This is only available on `multi_window::Application`"
)
}
window::Action::Resize { width, height } => {
window.set_inner_size(winit::dpi::LogicalSize {
width,