#[non_exhaustive]pub struct EventContext<'dom> {
pub dom: &'dom Dom,
pub layout: &'dom LayoutDom,
pub input: &'dom InputState,
}Expand description
Information available to a widget when it has received an event.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dom: &'dom Dom§layout: &'dom LayoutDom§input: &'dom InputStateAuto Trait Implementations§
impl<'dom> Freeze for EventContext<'dom>
impl<'dom> !RefUnwindSafe for EventContext<'dom>
impl<'dom> !Send for EventContext<'dom>
impl<'dom> !Sync for EventContext<'dom>
impl<'dom> Unpin for EventContext<'dom>
impl<'dom> !UnwindSafe for EventContext<'dom>
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