pub enum DialogPresentation {
Modal,
NonModal,
FullPage,
}Expand description
How a Dialog presents when emitted as an overlay (D115/Phase 32 Step 1).
Variants§
Modal
Centered card over a dimmed barrier. Input to the content below is blocked, Tab focus is trapped inside, and a tap on the barrier (or Escape) dismisses. The default.
NonModal
Centered card with NO barrier — the content below stays fully interactive (inspector-panel / tool-palette style). Clicks on the card itself are absorbed; everything else falls through. Dismissal is the dialog’s own responsibility (an action button).
FullPage
Fills the entire window, like a pushed page — the Material full-screen dialog. Input below is blocked and focus is trapped; Escape still dismisses (via an invisible barrier), but there is no outside area to tap.
Trait Implementations§
Source§impl Clone for DialogPresentation
impl Clone for DialogPresentation
Source§fn clone(&self) -> DialogPresentation
fn clone(&self) -> DialogPresentation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DialogPresentation
Source§impl Debug for DialogPresentation
impl Debug for DialogPresentation
Source§impl Default for DialogPresentation
impl Default for DialogPresentation
Source§fn default() -> DialogPresentation
fn default() -> DialogPresentation
Returns the “default value” for a type. Read more
impl Eq for DialogPresentation
Source§impl PartialEq for DialogPresentation
impl PartialEq for DialogPresentation
impl StructuralPartialEq for DialogPresentation
Auto Trait Implementations§
impl Freeze for DialogPresentation
impl RefUnwindSafe for DialogPresentation
impl Send for DialogPresentation
impl Sync for DialogPresentation
impl Unpin for DialogPresentation
impl UnsafeUnpin for DialogPresentation
impl UnwindSafe for DialogPresentation
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