pub enum WindowLevel {
Normal,
Floating,
ModalPanel,
ScreenSaver,
AboveAll,
Custom(isize),
}Expand description
Window level determining the z-order of the overlay window.
Controls where the window appears in the window stack relative to other windows.
§Common levels
Normal(0): Standard application windowsFloating(3): Floating palettes, tool windowsModalPanel(8): Modal panels that block interactionScreenSaver(1000): Screen saver levelAboveAll(1001): Above all windows including fullscreen apps
§Example
ⓘ
use core_animation::prelude::*;
let window = WindowBuilder::new()
.size(200.0, 200.0)
.level(WindowLevel::AboveAll)
.build();Variants§
Normal
Normal window level (0), appears with regular application windows.
Floating
Floating window level (3), appears above normal windows.
ModalPanel
Modal panel level (8), appears above floating windows.
ScreenSaver
Screen saver level (1000).
AboveAll
Above all other windows (1001), including fullscreen apps and the Dock.
Custom(isize)
Custom window level value (platform-specific).
Implementations§
Trait Implementations§
Source§impl Clone for WindowLevel
impl Clone for WindowLevel
Source§fn clone(&self) -> WindowLevel
fn clone(&self) -> WindowLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowLevel
impl Debug for WindowLevel
Source§impl Default for WindowLevel
impl Default for WindowLevel
Source§fn default() -> WindowLevel
fn default() -> WindowLevel
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowLevel
impl PartialEq for WindowLevel
impl Copy for WindowLevel
impl Eq for WindowLevel
impl StructuralPartialEq for WindowLevel
Auto Trait Implementations§
impl Freeze for WindowLevel
impl RefUnwindSafe for WindowLevel
impl Send for WindowLevel
impl Sync for WindowLevel
impl Unpin for WindowLevel
impl UnwindSafe for WindowLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more