pub struct TopLayerPress {
pub outcome: PressOutcome,
pub dismiss_from: usize,
pub modal_barrier: bool,
}Expand description
The decision of top_layer_press over one overlays slice.
Fields§
§outcome: PressOutcome§dismiss_from: usizePressOutcome::LightDismiss: paint index of the backmost overlay to close.
modal_barrier: boolThe press must not reach anything below (a modal stopped the walk).
Implementations§
Source§impl TopLayerPress
impl TopLayerPress
Sourcepub fn light_dismissed<'a>(
&self,
overlays: &'a [ResolvedOverlay],
) -> impl Iterator<Item = NodeId> + 'a
pub fn light_dismissed<'a>( &self, overlays: &'a [ResolvedOverlay], ) -> impl Iterator<Item = NodeId> + 'a
The overlays to close, front to back (children before the overlays they opened from): every
light_dismiss overlay of the decided overlays from Self::dismiss_from up.
Trait Implementations§
Source§impl Clone for TopLayerPress
impl Clone for TopLayerPress
impl Copy for TopLayerPress
Source§impl Debug for TopLayerPress
impl Debug for TopLayerPress
impl Eq for TopLayerPress
Source§impl PartialEq for TopLayerPress
impl PartialEq for TopLayerPress
impl StructuralPartialEq for TopLayerPress
Auto Trait Implementations§
impl Forget for TopLayerPress
impl Freeze for TopLayerPress
impl Move for TopLayerPress
impl RefUnwindSafe for TopLayerPress
impl Send for TopLayerPress
impl Sync for TopLayerPress
impl Unpin for TopLayerPress
impl UnsafeUnpin for TopLayerPress
impl UnwindSafe for TopLayerPress
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