pub enum EventTarget {
Widget(WidgetId),
Subtree(WidgetId),
Broadcast,
ApplicationOnly,
}Expand description
Where a CustomEvent is delivered.
Whatever the target, the application’s on_custom and on_event callbacks always receive the
event; the target only chooses which Widgets see it in handle_event. A Widget receives it
only if EventMask::CUSTOM is in its mask (and in the run loop’s mask).
Variants§
Widget(WidgetId)
One Widget.
Subtree(WidgetId)
A Widget and all of its descendants, parents before children.
Broadcast
Every visible Widget, in drawing order.
ApplicationOnly
No Widget: only the application’s callbacks receive it.
Trait Implementations§
Source§impl Clone for EventTarget
impl Clone for EventTarget
impl Copy for EventTarget
Source§impl Debug for EventTarget
impl Debug for EventTarget
impl Eq for EventTarget
Source§impl Hash for EventTarget
impl Hash for EventTarget
Source§impl PartialEq for EventTarget
impl PartialEq for EventTarget
impl StructuralPartialEq for EventTarget
Auto Trait Implementations§
impl Freeze for EventTarget
impl RefUnwindSafe for EventTarget
impl Send for EventTarget
impl Sync for EventTarget
impl Unpin for EventTarget
impl UnsafeUnpin for EventTarget
impl UnwindSafe for EventTarget
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