Expand description
The input system: input elements, routed input events, input devices and focus.
Re-exports§
pub use navigation::XYFocus;
Modules§
- gesture_
recognizers - Gesture recognizers: objects attached to an input element that turn pointer input into higher-level gestures.
- navigation
- Keyboard navigation: tab navigation and directional (XY) focus.
- platform
- Platform-dependent input configuration.
- raw
- Raw input events: input as reported by the platform, before it is turned into routed events by the input devices.
- text_
input - Text input methods (IME): the contract between text editing controls and the input method of the platform.
Structs§
- Access
KeyEvent Args - Information pertaining to when the access key associated with an element is pressed.
- Access
KeyHandler - Handles access keys for a window.
- Access
KeyPressed Event Args - The inputs to an access key pressed event: raised on an element to ask which element an access key should target.
- Access
KeyRegistration - An access key registered for an element.
- Async
Data Transfer Items - The items of an asynchronous data transfer that support a format, in order.
- Context
Requested Event Args - Provides event data for the context requested event.
- Cursor
- Represents a mouse cursor.
- Data
Format - Represents a format usable with the clipboard and drag-and-drop.
- Data
Format Of - Represents a format usable with the clipboard and drag-and-drop, with a data type.
- Data
Transfer - A mutable implementation of
IDataTransferandIAsyncDataTransfer. - Data
Transfer Item - A mutable implementation of
IDataTransferItemandIAsyncDataTransferItem. This type also provides several functions to easily create aDataTransferItemfor common usages. - Data
Transfer Items - The items of a data transfer that support a format, in order.
- Drag
Drop - Defines the attached property and the routed events of drag-and-drop, and starts drag-and-drop operations.
- Drag
Drop Device - The input device that turns the raw drag events of the platform into
the routed drag-and-drop events of
DragDrop. - Drag
Drop Effects - The effects of a drag-and-drop operation.
- Drag
Event Args - Provides data for the drag-and-drop events.
- Find
Next Element Options - Provides options to customize the behavior when identifying the next element to focus during a navigation operation.
- Focus
Changed Event Args - Holds arguments for the
GotFocusandLostFocusevents. - Focus
Changing Event Args - Provides data for focus changing: the
GettingFocusandLosingFocusevents, which can cancel or redirect a focus change. - Focus
Manager - Manages focus for the application.
- Gestures
- Synthesizes the tapped, double-tapped, right-tapped and holding gestures from pointer events.
- Holding
Routed Event Args - Provides data for the holding event.
- Input
Element - Implements input-related functionality for a control.
- Input
ElementV Table - The virtual table of the class.
- Input
Manager - Receives input from the windowing subsystem and dispatches it to interested parties for processing.
- Input
Method - Defines the attached property and the routed event that connect an input element to the input method of the platform.
- KeyBinding
- Binds a key gesture to a command.
- KeyEvent
Args - Provides information specific to a keyboard event.
- KeyGesture
- Defines a keyboard input combination.
- KeyModifiers
- Defines the keyboard modifier keys.
- KeyStates
- Defines the state of a key.
- KeySymbol
Helper - Helpers for key symbols reported by platform backends.
- Keyboard
Device - Represents the keyboard: turns raw key and text input into routed events on the focused element, and is the source of truth about which element has keyboard focus.
- Keyboard
Navigation - Defines attached properties that control keyboard navigation behaviour for a container.
- Keyboard
Navigation Handler - Handles keyboard navigation for a window.
- Mouse
Device - Represents a mouse device: turns raw pointer events into routed pointer events on the element under the pointer or capturing it.
- Parse
Cursor Error - The error returned when a string does not name a standard cursor type.
- Parse
KeyError - The error returned when a string does not name a
Key. - Parse
KeyModifiers Error - The error returned when a string does not name keyboard modifiers.
- Parse
Physical KeyError - The error returned when a string does not name a
PhysicalKey. - PenDevice
- Represents a pen/stylus device.
- Pinch
Ended Event Args - Provides data for the pinch ended event.
- Pinch
Event Args - Provides data for the pinch gesture event.
- Pointer
- Identifies a specific input pointer and tracks the element that captures it.
- Pointer
Capture Changing Event Args - Provides data for the pointer capture changing event: raised before the capture of a pointer changes; marking it handled cancels the change.
- Pointer
Capture Lost Event Args - Provides data for the pointer capture lost event.
- Pointer
Delta Event Args - Provides data for the touchpad gesture events (magnify, rotate, swipe).
- Pointer
Event Args - Provides data for pointer events.
- Pointer
Over PreProcessor - Tracks which element the pointer is over for one input root, raising the pointer entered and exited events as it changes.
- Pointer
Point - Provides basic properties for the input pointer associated with a single mouse, pen/stylus, or touch contact.
- Pointer
Point Properties - Provides extended properties for a pointer point.
- Pointer
Pressed Event Args - Provides data for the pointer pressed event.
- Pointer
Released Event Args - Provides data for the pointer released event.
- Pointer
Wheel Event Args - Provides data for the pointer wheel changed event.
- Pull
Gesture Ended Event Args - Provides data for the pull gesture ended event.
- Pull
Gesture Event Args - Provides data for the pull gesture event.
- RawInput
Modifiers - The modifier keys and pointer buttons reported by the platform with a raw input event.
- Scroll
Gesture Ended Event Args - Provides data for the scroll gesture ended event.
- Scroll
Gesture Event Args - Provides data for the scroll gesture event.
- Scroll
Gesture Inertia Starting Event Args - Provides data for the scroll gesture inertia starting event.
- Swipe
Gesture Ended Event Args - Provides data for the swipe gesture ended event.
- Swipe
Gesture Event Args - Provides data for swipe gesture events.
- Tapped
Event Args - Provides data for the tapped, double-tapped and right-tapped events.
- Text
Input Event Args - Provides information specific to a text input event.
- Touch
Device - Handles raw touch events.
- Vector
Event Args - Provides a vector with a routed event.
Enums§
- Capture
Source - What requested a change of pointer capture.
- Data
Format Kind - Represents the kind of a
DataFormat. - Holding
State - The state of a holding gesture.
- Key
- Defines the keys available on a keyboard.
- KeyDevice
Type - Enumerates key device types.
- Keyboard
Navigation Mode - Describes how focus should be moved by directional or tab keys.
- Mouse
Button - Enumerates the mouse buttons.
- Navigation
Direction - Describes how focus should be moved by directional or tab keys.
- Navigation
Method - Defines the method by which focus was changed.
- Physical
Key - Represents a keyboard physical key.
- Pointer
Type - Enumerates the types of pointer devices.
- Pointer
Update Kind - The kind of state change of a pointer.
- Pull
Direction - The direction of a pull gesture.
- Standard
Cursor Type - Defines the standard cursor types.
- Swipe
Direction - Specifies the direction of a swipe gesture.
- Window
Decorations Element Role - Defines the cross-platform role of a visual element for non-client hit-testing. Used to mark elements as titlebar drag areas, resize grips, etc.
Traits§
- Async
Data Transfer Extensions - Contains extension methods for
IAsyncDataTransfer. - Async
Data Transfer Item Extensions - Contains extension methods for
IAsyncDataTransferItem. - Data
Transfer Extensions - Contains extension methods for
IDataTransfer. - Data
Transfer Item Extensions - Contains extension methods for
IDataTransferItem. - IAccess
KeyHandler - Defines the interface for classes that handle access keys for a window.
- IAsync
Data Transfer - Represents an object providing a list of
IAsyncDataTransferItemusable by the clipboard. - IAsync
Data Transfer Item - Represent an item inside a
IAsyncDataTransfer. An item may support several formats and can return the value of a given format on demand. - IClickable
Control - A control that can be clicked: what the access key and hot key handling needs from a button-like control.
- ICloseable
- Something that tells when it has been closed.
- ICommand
- Defines a command.
- ICommand
Source - An interface for classes that know how to invoke a command.
- ICustom
Keyboard Navigation - Designates a control as handling its own keyboard navigation.
- IData
Transfer - Represents an object providing a list of
IDataTransferItemusable during a drag and drop operation. - IData
Transfer Item - Represent an item inside a
IDataTransfer. An item may support several formats and can return the value of a given format on demand. - IFocus
Manager - Manages focus for the application.
- IFocus
Scope - Marks an input element as a focus scope: an element that remembers which of its descendants was focused last.
- IInput
Device - Represents an input device: the object that turns the raw input events of the platform into routed events.
- IInput
Element - Defines input-related functionality for a control.
- IInput
Manager - Receives input from the windowing subsystem and dispatches it to interested parties for processing.
- IInput
Root - Defines the interface for top-level input elements: the part of a presentation source that input is delivered through.
- IKey
Modifiers Event Args - Implemented by event args that carry the state of the keyboard modifier keys at the time the event occurred.
- IKeyboard
Device - Represents a keyboard device.
- IKeyboard
Navigation Handler - Defines the interface for classes that handle keyboard navigation for a window.
- IMain
Menu - Defines the interface for a top-level menu.
- IMouse
Device - Represents a mouse device.
- INavigable
Container - Defines a container in which the child controls can be navigated by keyboard.
- IPen
Device - Represents a pen/stylus device.
- IPointer
- Identifies a specific input pointer, e.g. a mouse, a touch contact or a pen.
- IPointer
Device - Represents a pointer device: a mouse, a touch surface or a pen.
- IScrollable
- Interface implemented by scrollable controls.
- Input
Element Impl - The overridable members introduced by the class.
- Input
Element Impl Ext - Access to the base implementations of the overridable members.
Type Aliases§
- Intermediate
Points - The lazily computed intermediate points of a pointer move: the positions the platform coalesced into one event.
- Local
BoxFuture - The result of an asynchronous operation of the input system: a future
that is polled on the dispatcher thread (for instance from a future
started with
Dispatcher::invoke_async_task_local).