pub enum PointerEventPass {
Initial,
Main,
Final,
}Variants§
Initial
Top-down pass: ancestor → descendant. Allows ancestors to preview or intercept events before descendants see them.
Main
Bottom-up pass: descendant → ancestor. The primary pass where gesture handlers react to and consume events. A child that consumes its event prevents the parent from reacting (Compose’s requireUnconsumed).
Final
Top-down pass: ancestor → descendant. Allows descendants to learn about events consumed by ancestors during the Main pass.
Trait Implementations§
Source§impl Clone for PointerEventPass
impl Clone for PointerEventPass
Source§fn clone(&self) -> PointerEventPass
fn clone(&self) -> PointerEventPass
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 PointerEventPass
Source§impl Debug for PointerEventPass
impl Debug for PointerEventPass
impl Eq for PointerEventPass
Source§impl PartialEq for PointerEventPass
impl PartialEq for PointerEventPass
Source§fn eq(&self, other: &PointerEventPass) -> bool
fn eq(&self, other: &PointerEventPass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointerEventPass
Auto Trait Implementations§
impl Freeze for PointerEventPass
impl RefUnwindSafe for PointerEventPass
impl Send for PointerEventPass
impl Sync for PointerEventPass
impl Unpin for PointerEventPass
impl UnsafeUnpin for PointerEventPass
impl UnwindSafe for PointerEventPass
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