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 EventArgswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const Intercepted is !null: Freeze,
PhantomData<Intercepted>: Freeze,
impl Move for EventArgs
impl RefUnwindSafe for EventArgs
impl Send for EventArgs
impl Sync for EventArgs
impl Unpin for EventArgs
impl UnsafeUnpin for EventArgswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const Intercepted is !null: UnsafeUnpin,
PhantomData<Intercepted>: UnsafeUnpin,
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