pub enum Propagation {
Continue,
Stop,
}Expand description
What a Widget tells the WidgetCache after handling an input event: keep delivering it, or
stop.
Returned by Widget::handle_event. Input events
(pointer presses, releases, motion, scrolls, keys, and text) travel through three phases, see
EventPhase; returning Stop ends delivery, so no later Widget sees the event. Events that
do not propagate ignore the value.
Variants§
Continue
The event was not consumed; deliver it to the next Widget in the path.
Stop
The event was consumed; end delivery.
Trait Implementations§
Source§impl Clone for Propagation
impl Clone for Propagation
impl Copy for Propagation
Source§impl Debug for Propagation
impl Debug for Propagation
Source§impl Default for Propagation
impl Default for Propagation
impl Eq for Propagation
Source§impl PartialEq for Propagation
impl PartialEq for Propagation
impl StructuralPartialEq for Propagation
Auto Trait Implementations§
impl Freeze for Propagation
impl RefUnwindSafe for Propagation
impl Send for Propagation
impl Sync for Propagation
impl Unpin for Propagation
impl UnsafeUnpin for Propagation
impl UnwindSafe for Propagation
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