pub enum CoverPatch {
Present {
background: Option<Color>,
dismiss_disabled: bool,
},
DismissDisabled(bool),
Dismiss,
}Expand description
Applied to a kinds::COVER node as its bound signal opens and closes it.
Variants§
Present
Present the cover fullscreen (slide up where the platform animates modals).
background paints the whole surface edge-to-edge (under the status bar / home
indicator); the content container is inset to the safe area within it.
dismiss_disabled = the user must not be able to dismiss it interactively
(system back / sheet gestures); programmatic dismissal still works.
DismissDisabled(bool)
The interactive_dismiss_disabled state changed while presented.
Dismiss
Dismiss the cover. When the hide transition finishes the backend emits
crate::Event::CoverHidden on the node (trampoline backends send
BridgeKind::CoverHidden), letting the piece dispose the content only after it
left the screen.
Trait Implementations§
Source§impl Clone for CoverPatch
impl Clone for CoverPatch
Source§fn clone(&self) -> CoverPatch
fn clone(&self) -> CoverPatch
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 moreSource§impl Debug for CoverPatch
impl Debug for CoverPatch
Source§impl PartialEq for CoverPatch
impl PartialEq for CoverPatch
impl StructuralPartialEq for CoverPatch
Auto Trait Implementations§
impl Freeze for CoverPatch
impl RefUnwindSafe for CoverPatch
impl Send for CoverPatch
impl Sync for CoverPatch
impl Unpin for CoverPatch
impl UnsafeUnpin for CoverPatch
impl UnwindSafe for CoverPatch
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