pub enum Modality {
Window,
Application,
}Expand description
What a modal Window blocks while it’s open, shown each platform’s way.
Variants§
Window
The window it belongs to (the one it’s declared in): a sheet on
that window on macOS, Qt’s WindowModal, an owned IsModal window
on WinUI. GTK’s modal windows block the whole app.
Application
Every other window of the app: a window in AppKit’s modal loop,
Qt’s ApplicationModal, a modal window on GTK, and on WinUI an
owned IsModal window that also disables the app’s other windows.
Trait Implementations§
impl Copy for Modality
impl Eq for Modality
impl StructuralPartialEq for Modality
Auto Trait Implementations§
impl Forget for Modality
impl Freeze for Modality
impl RefUnwindSafe for Modality
impl Send for Modality
impl Sync for Modality
impl Unpin for Modality
impl UnsafeUnpin for Modality
impl UnwindSafe for Modality
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