pub enum EventPhase {
Capture,
Target,
Bubble,
}Expand description
The phase of delivery an input event is in when a Widget receives it.
Delivery runs capture from the root down to the target’s parent (only Widgets whose
handles_capture is true), then target, then
bubble from the target’s parent up to the root. Read it with EventCtx::phase.
Variants§
Capture
The root-to-parent pass, before the target sees the event.
Target
The Widget the event is for: under the pointer, capturing the mouse, or focused.
Bubble
The parent-to-root pass, after the target ignored the event.
Trait Implementations§
Source§impl Clone for EventPhase
impl Clone for EventPhase
impl Copy for EventPhase
Source§impl Debug for EventPhase
impl Debug for EventPhase
Source§impl Default for EventPhase
impl Default for EventPhase
impl Eq for EventPhase
Source§impl PartialEq for EventPhase
impl PartialEq for EventPhase
impl StructuralPartialEq for EventPhase
Auto Trait Implementations§
impl Freeze for EventPhase
impl RefUnwindSafe for EventPhase
impl Send for EventPhase
impl Sync for EventPhase
impl Unpin for EventPhase
impl UnsafeUnpin for EventPhase
impl UnwindSafe for EventPhase
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