Merge pull request #1738 from nicoburns/update-winit-0.28
Update to winit 0.28
This commit is contained in:
commit
c61a4cc21c
11 changed files with 78 additions and 45 deletions
|
|
@ -140,6 +140,19 @@ pub fn window_event(
|
|||
}
|
||||
}
|
||||
|
||||
/// Converts a [`window::Level`] to a [`winit`] window level.
|
||||
///
|
||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||
pub fn window_level(level: window::Level) -> winit::window::WindowLevel {
|
||||
match level {
|
||||
window::Level::Normal => winit::window::WindowLevel::Normal,
|
||||
window::Level::AlwaysOnBottom => {
|
||||
winit::window::WindowLevel::AlwaysOnBottom
|
||||
}
|
||||
window::Level::AlwaysOnTop => winit::window::WindowLevel::AlwaysOnTop,
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts a [`Position`] to a [`winit`] logical position for a given monitor.
|
||||
///
|
||||
/// [`winit`]: https://github.com/rust-windowing/winit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue