#[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
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
Mutably borrows from an owned value. Read more