pub enum EventResult {
Propagate,
PreventDefault,
}Expand description
Returned by callbacks passed to Window::on_winit_window_event
to determine if winit events should propagate to the Slint event loop.
Variants§
Propagate
The winit event should propagate normally.
PreventDefault
The winit event shouldn’t be processed further.
Auto Trait Implementations§
impl Freeze for EventResult
impl RefUnwindSafe for EventResult
impl Send for EventResult
impl Sync for EventResult
impl Unpin for EventResult
impl UnsafeUnpin for EventResult
impl UnwindSafe for EventResult
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