logo
#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.