Enum i_slint_core::input::InputEventFilterResult
source · [−]#[repr(C)]
pub enum InputEventFilterResult {
ForwardEvent,
ForwardAndIgnore,
ForwardAndInterceptGrab,
Intercept,
InterceptAndDispatch(MouseEvent),
}
Expand description
This value is returned by the input_event_filter_before_children
function, which
can specify how to further process the event.
See crate::items::ItemVTable::input_event_filter_before_children
.
Variants
ForwardEvent
The event is going to be forwarded to children, then the crate::items::ItemVTable::input_event
function is called
ForwardAndIgnore
The event will be forwarded to the children, but the crate::items::ItemVTable::input_event
is not
going to be called for this item
ForwardAndInterceptGrab
Just like ForwardEvent
, but even in the case the children grabs the mouse, this function
will still be called for further event
Intercept
The event will not be forwarded to children, if a children already had the grab, the
grab will be cancelled with a MouseEvent::MouseExit
event
InterceptAndDispatch(MouseEvent)
Similar to Intercept
but the contained MouseEvent
will be forwarded to children
Trait Implementations
sourceimpl Clone for InputEventFilterResult
impl Clone for InputEventFilterResult
sourcefn clone(&self) -> InputEventFilterResult
fn clone(&self) -> InputEventFilterResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InputEventFilterResult
impl Debug for InputEventFilterResult
sourceimpl Default for InputEventFilterResult
impl Default for InputEventFilterResult
sourceimpl PartialEq<InputEventFilterResult> for InputEventFilterResult
impl PartialEq<InputEventFilterResult> for InputEventFilterResult
sourcefn eq(&self, other: &InputEventFilterResult) -> bool
fn eq(&self, other: &InputEventFilterResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InputEventFilterResult) -> bool
fn ne(&self, other: &InputEventFilterResult) -> bool
This method tests for !=
.
impl Copy for InputEventFilterResult
impl StructuralPartialEq for InputEventFilterResult
Auto Trait Implementations
impl RefUnwindSafe for InputEventFilterResult
impl Send for InputEventFilterResult
impl Sync for InputEventFilterResult
impl Unpin for InputEventFilterResult
impl UnwindSafe for InputEventFilterResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more