Contains all types used to describe the input events that
Widgets may handle.
The two primary types of this module are:
Input: conrod's input type passed by the user to
Ui::handle_eventin order to drive the
Event: enumerates all possible events interpreted by conrod that may be propagated to widgets.
Conrod's event system looks like this:
Input -> Ui -> Event -> Widget
The Ui receives Inputs such as
Release via the
It interprets these Inputs to create higher-level Events such as
WidgetCapturesKeyboard, etc. These Events are stored and then fed to each Widget when
Ui::set_widgets is called. At the end of
Ui::set_widgets the stored Events are flushed
ready for the next incoming Inputs.
Conrod uses the
Input type. There are a few reasons for this:
Inputtype already provides a number of useful variants of events that we wish to provide and handle within conrod, and we do not yet see any great need to re-write it and duplicate code.
Inputtype is already compatible with all
glutin_window. That said, co-ordinates and scroll directions may need to be translated to conrod's orientation.
pistoncore-inputcrate also provides a
GenericEventtrait which allows us to easily provide a blanket implementation of
ToRawEventfor all event types that already implement this trait.
Because we use the
Event type, we also re-export its associated data
Contains all the relevant information for a mouse click.
Contains all the relevant information for a double click.
Contains all the relevant information for a mouse drag.
Contains all relevant information for the event where a keyboard button was pressed.
Contains all relevant information for the event where a keyboard button was release.
Contains all relevant information for a Motion event.
Contains all relevant information for the event where a mouse button was pressed.
Contains all relevant information for the event where a mouse button was released.
Contains all relevant information for a Press event.
Contains all relevant information for a Release event.
Holds all the relevant information about a scroll event
All relevant information for a touch-screen tap event.
Contains all relevant information for a Text event.
The different kinds of
Enum containing all the events that the
The event type that is used by conrod to track inputs from the world. Events yielded by polling
window backends should be converted to this type. This can be thought of as the event type
which is supplied by the window backend to drive the state of the
Represents all events interpreted by the
Events that apply to a specific widget.