pub struct DismissableLayer;Expand description
Dismissable layer rules for dialogs, popovers, and drawers.
Implementations§
Source§impl DismissableLayer
impl DismissableLayer
Sourcepub fn should_dismiss_on_escape(key: &str) -> bool
pub fn should_dismiss_on_escape(key: &str) -> bool
Checks whether an Escape key press triggers dismissal.
Sourcepub fn should_dismiss_on_outside_click(click: Point, layer_bounds: Rect) -> bool
pub fn should_dismiss_on_outside_click(click: Point, layer_bounds: Rect) -> bool
Checks whether a click at point is outside the layer bounds.
Auto Trait Implementations§
impl Forget for DismissableLayer
impl Freeze for DismissableLayer
impl Move for DismissableLayer
impl RefUnwindSafe for DismissableLayer
impl Send for DismissableLayer
impl Sync for DismissableLayer
impl Unpin for DismissableLayer
impl UnsafeUnpin for DismissableLayer
impl UnwindSafe for DismissableLayer
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