pub enum EventArgs {
None,
Pointer(PointerEvent),
Wheel(WheelEvent),
Gesture(GestureEvent),
Swipe(SwipeEvent),
Key(KeyEvent),
Text(String),
Value(PropValue),
Intercept(Box<Intercepted>),
}Expand description
Argumentos entregues aos handlers de evento.
Um tipo só para todos os eventos simplifica o encaminhamento por nome, pela C ABI e pelo protocolo remoto.
Variants§
None
Pointer(PointerEvent)
Wheel(WheelEvent)
Gesture(GestureEvent)
Swipe(SwipeEvent)
Key(KeyEvent)
Text(String)
Value(PropValue)
Intercept(Box<Intercepted>)
O on_intercept/after_intercept de um EventInterceptor: o evento interceptado.
Implementations§
Trait Implementations§
impl StructuralPartialEq for EventArgs
Auto Trait Implementations§
impl Forget for EventArgs
impl Freeze for EventArgs
impl Move for EventArgs
impl RefUnwindSafe for EventArgs
impl Send for EventArgs
impl Sync for EventArgs
impl Unpin for EventArgs
impl UnsafeUnpin for EventArgs
impl UnwindSafe for EventArgs
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