pub enum PanelLevel {
Normal,
Submenu,
TornOffMenu,
Floating,
ModalPanel,
Utility,
Dock,
MainMenu,
Status,
PopUpMenu,
ScreenSaver,
Custom(i32),
}
Expand description
Window level constants for NSPanel Based on NSWindow.Level constants from macOS
Variants§
Normal
Normal window level (0)
Submenu window level (3)
TornOffMenu
Torn-off menu window level (3)
Floating
Floating window level (4)
ModalPanel
Modal panel window level (8)
Utility
Utility window level (19)
Dock
Dock window level (20)
MainMenu
Main menu window level (24)
Status
Status window level (25)
PopUpMenu
Pop-up menu window level (101)
ScreenSaver
Screen saver window level (1000)
Custom(i32)
Custom level value
Implementations§
Trait Implementations§
Source§impl Clone for PanelLevel
impl Clone for PanelLevel
Source§fn clone(&self) -> PanelLevel
fn clone(&self) -> PanelLevel
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 PanelLevel
impl Debug for PanelLevel
Source§impl From<PanelLevel> for i64
impl From<PanelLevel> for i64
Source§fn from(level: PanelLevel) -> Self
fn from(level: PanelLevel) -> Self
Converts to this type from the input type.
Source§impl From<i32> for PanelLevel
impl From<i32> for PanelLevel
Source§impl From<i64> for PanelLevel
impl From<i64> for PanelLevel
Source§impl PartialEq for PanelLevel
impl PartialEq for PanelLevel
impl Copy for PanelLevel
impl StructuralPartialEq for PanelLevel
Auto Trait Implementations§
impl Freeze for PanelLevel
impl RefUnwindSafe for PanelLevel
impl Send for PanelLevel
impl Sync for PanelLevel
impl Unpin for PanelLevel
impl UnwindSafe for PanelLevel
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