pub enum OutsideTap {
Ignore,
Notify {
consume: bool,
},
}Expand description
What a registered surface wants to hear about a press that landed on nothing floated — the light-dismiss policy, a per-surface boolean everywhere this pattern exists.
Variants§
Ignore
Say nothing. A surface that dismisses some other way (a menu closed by its own item, a toolbar that follows a selection) wants this.
Notify
Deliver
OverlayEventKind::OutsideDown
to the owner on a primary press outside every registered rect.
Fields
§
consume: boolWhether the press is consumed by the notification.
true is the modal light-dismiss shape: the press closes the surface
and the main tree never sees it, so the tap that dismisses a menu
does not also activate the button under it. false is the
pass-through shape: the owner is told, and the press continues into
the main tree as usual.
Trait Implementations§
Source§impl Clone for OutsideTap
impl Clone for OutsideTap
impl Copy for OutsideTap
Source§impl Debug for OutsideTap
impl Debug for OutsideTap
impl Eq for OutsideTap
Source§impl Hash for OutsideTap
impl Hash for OutsideTap
Source§impl PartialEq for OutsideTap
impl PartialEq for OutsideTap
impl StructuralPartialEq for OutsideTap
Auto Trait Implementations§
impl Freeze for OutsideTap
impl RefUnwindSafe for OutsideTap
impl Send for OutsideTap
impl Sync for OutsideTap
impl Unpin for OutsideTap
impl UnsafeUnpin for OutsideTap
impl UnwindSafe for OutsideTap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.