#[non_exhaustive]pub enum MemberRole {
Gesture,
Pan(PanClaim),
RawDrag,
RawPreview,
}Expand description
What a member is competing as.
The role decides which threshold the member wins on and, for Pan, which
axes the frozen TouchAction has to permit.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Gesture
A node whose own gesture recognizers (on_drag / on_swipe) are
competing. This is what drag_observers used to hold, and it is what an
ancestor of the pressed control is enrolled as.
Pan(PanClaim)
A scroll container that declared a PanClaim. Only ever enrolled for
a pointer kind the claim’s devices mask admits and only when the
pointer’s profile has a pan_slop — so never for a mouse.
RawDrag
A node that took the pointer by an explicit
capture_pointer while
the sequence was undecided, and drives its interaction from
PointerMove rather than from a recognizer.
RawPreview
A node that answered Handled from the root-first preview pass. It has
already won by the time it is enrolled; the role exists so
WidgetTree::sequence_members
can report why.
Trait Implementations§
Source§impl Clone for MemberRole
impl Clone for MemberRole
Source§fn clone(&self) -> MemberRole
fn clone(&self) -> MemberRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more