Module sixtyfps_corelib::input[][src]

Module handling mouse events

Structs

KeyEvent

Represents a key event sent by the windowing system.

KeyboardModifiers

KeyboardModifier provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc.

MouseEvent

Structur representing a mouse event

MouseInputState

The state which a window should hold for the mouse input

TextCursorBlinkerFieldsOffsets

Helper struct containing the offsets of the fields of the struct TextCursorBlinker

Enums

FocusEvent

This event is sent to a component and items when they receive or loose the keyboard focus.

InputEventFilterResult

This value is returned by the input_event_filter_before_children function, which can specify how to further process the event. See [ItemVTable::input_event_filter_before_children].

InputEventResult

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. See [ItemVTable::input_event].

InternalKeyCode

InternalKeyCode is used to certain keys to unicode characters, since our public key event only exposes a string. This enum captures this mapping.

KeyEventResult

Represents how an item’s key_event handler dealt with a key event. An accepted event results in no further event propagation.

KeyEventType

This enum defines the different kinds of key events that can happen.

MouseEventType

The type of a MouseEvent

Functions

process_mouse_input

Process the mouse_event on the component, the mouse_grabber_stack is the prebious stack of mouse grabber. Returns a new mouse grabber stack.