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
Event::custom("cover-hidden", "") on the node (trampoline backends send
BridgeKind::Custom with text == "cover-hidden"), 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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CoverPatch
impl Debug for CoverPatch
Source§impl PartialEq for CoverPatch
impl PartialEq for CoverPatch
Source§fn eq(&self, other: &CoverPatch) -> bool
fn eq(&self, other: &CoverPatch) -> bool
self and other values to be equal, and is used by ==.