#[non_exhaustive]pub enum WindowRole<'a> {
Toplevel,
Panel(PanelDesc<'a>),
Popup(PopupDesc),
}Expand description
What kind of window to create — see the module docs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Toplevel
An ordinary application window: decorated, in the taskbar, moved and sized by the user and the window manager.
Panel(PanelDesc<'a>)
Desktop furniture placed against a monitor’s edges — a bar, a dock, a
launcher, an overlay. See PanelDesc.
Popup(PopupDesc)
A window anchored to a rectangle of another, above it — a menu, a
tooltip, a calendar opened from a bar. See PopupDesc.
Trait Implementations§
Source§impl<'a> Clone for WindowRole<'a>
impl<'a> Clone for WindowRole<'a>
impl<'a> Copy for WindowRole<'a>
Source§impl<'a> Debug for WindowRole<'a>
impl<'a> Debug for WindowRole<'a>
Source§impl<'a> Default for WindowRole<'a>
impl<'a> Default for WindowRole<'a>
Source§impl<'a> PartialEq for WindowRole<'a>
impl<'a> PartialEq for WindowRole<'a>
impl<'a> StructuralPartialEq for WindowRole<'a>
Auto Trait Implementations§
impl<'a> Freeze for WindowRole<'a>
impl<'a> RefUnwindSafe for WindowRole<'a>
impl<'a> Send for WindowRole<'a>
impl<'a> Sync for WindowRole<'a>
impl<'a> Unpin for WindowRole<'a>
impl<'a> UnsafeUnpin for WindowRole<'a>
impl<'a> UnwindSafe for WindowRole<'a>
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