Enum i_slint_core::input::InputEventFilterResult
source · [−]#[repr(C)]
pub enum InputEventFilterResult {
ForwardEvent,
ForwardAndIgnore,
ForwardAndInterceptGrab,
Intercept,
}
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
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
impl Copy for InputEventFilterResult
impl Eq for InputEventFilterResult
impl StructuralEq 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more