Expand description
Module handling mouse events
Re-exports§
pub use crate::items::PointerEventButton;
pub use crate::items::KeyEvent;
pub use crate::items::KeyboardModifiers;
Modules§
- This module contains the constant character code used to represent the keys.
Structs§
- This state is used to count the clicks separated by
crate::platform::Platform::click_interval
- The state which a window should hold for the mouse input
Enums§
- This event is sent to a component and items when they receive or loose the keyboard focus.
- Represents how an item’s focus_event handler dealt with a focus event. An accepted event results in no further event propagation.
- This value is returned by the
input_event_filter_before_children
function, which can specify how to further process the event. Seecrate::items::ItemVTable::input_event_filter_before_children
. - This value is returned by the
input_event
function of an Item to notify the run-time about how the event was handled and what the next steps are. Seecrate::items::ItemVTable::input_event
. - Represents how an item’s key_event handler dealt with a key event. An accepted event results in no further event propagation.
- This enum defines the different kinds of key events that can happen.
- A mouse or touch event
- Represents a non context specific shortcut.
- Shortcuts that are used when editing text
Functions§
- Process the
mouse_event
on thecomponent
, themouse_grabber_stack
is the previous stack of mouse grabber. Returns a new mouse grabber stack.