pub enum MultiContact {
First,
All,
}Expand description
How many simultaneous contacts a node handles.
The default, First, is what every widget written before the
touch programme assumes: one press at a time. Under it a second contact
arriving on the node is terminated there — neither delivered to the node nor
bubbled to an ancestor — which is what stops two fingers landing on a button
inside a scroll area from starting a pan with the second finger.
Variants§
First
Serve the first contact; refuse any other while it is live.
All
Serve every contact, each with its own live arena. What a multi-touch surface (a pinch-zoom canvas, a piano keyboard) declares.
Trait Implementations§
Source§impl Clone for MultiContact
impl Clone for MultiContact
Source§fn clone(&self) -> MultiContact
fn clone(&self) -> MultiContact
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 moreimpl Copy for MultiContact
Source§impl Debug for MultiContact
impl Debug for MultiContact
Source§impl Default for MultiContact
impl Default for MultiContact
Source§fn default() -> MultiContact
fn default() -> MultiContact
Returns the “default value” for a type. Read more
impl Eq for MultiContact
Source§impl PartialEq for MultiContact
impl PartialEq for MultiContact
impl StructuralPartialEq for MultiContact
Auto Trait Implementations§
impl Freeze for MultiContact
impl RefUnwindSafe for MultiContact
impl Send for MultiContact
impl Sync for MultiContact
impl Unpin for MultiContact
impl UnsafeUnpin for MultiContact
impl UnwindSafe for MultiContact
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