#define CE_FLAGS_OPERATORS(Enum)
Defines global operators for a Flags<Enum, Storage> implementation.
Definition Flags.hpp:216
A variant type that can hold any UIEvent.
Definition UIEvent.hpp:217
const UIKeyEvent & asKeyEvent() const noexcept
Gets the event as a UIKeyEvent.
Definition UIEvent.hpp:228
bool isMouseEvent() const noexcept
Checks if the event is a UIMouseEvent.
Definition UIEvent.hpp:234
UIKeyEvent & asKeyEvent() noexcept
Gets the event as a UIKeyEvent.
Definition UIEvent.hpp:231
const UIMouseEvent & asMouseEvent() const noexcept
Gets the event as a UIMouseEvent.
Definition UIEvent.hpp:237
bool isKeyEvent() const noexcept
Checks if the event is a UIKeyEvent.
Definition UIEvent.hpp:225
UIMouseEvent & asMouseEvent() noexcept
Gets the event as a UIMouseEvent.
Definition UIEvent.hpp:240
A window that an app displays on the screen.
Definition UIWindow.hpp:42
Definition Variant.hpp:15
Definition Application.hpp:19
@ Super
A constant for the super modifier key, called the "windows key" on Windows PCs and "command" on Macin...
@ Shift
A constant for the shift modifier key.
@ CapsLock
A constant for the capsLock modifier key.
@ Control
A constant for the control modifier key.
@ Alt
A constant for the alt modifier key.
std::uint16_t UInt16
Definition DataTypes.hpp:20
FunctionBase< true, true, fu2::capacity_default, true, false, Signatures... > Function
An owning copyable function wrapper for arbitrary callable types.
Definition Function.hpp:54
UIModifierKey
Flags that represent key states in an event object.
Definition UIEvent.hpp:76
@ Option
The Option or Alt key has been pressed.
@ NumericPad
A key in the numeric keypad or an arrow key has been pressed.
@ Help
The Help key has been pressed.
@ Command
The Command key has been pressed.
UIEventType
The types of events handled by responder objects.
Definition UIEvent.hpp:24
@ KeyUp
The user released a key on the keyboard.
@ MouseEntered
The cursor entered a well-defined area, such as a view.
@ MouseExited
The cursor exited a well-defined area, such as a view.
@ RightMouseDown
The user pressed the right mouse button.
@ LeftMouseDown
The user pressed the left mouse button.
@ RightMouseDragged
The user moved the mouse while holding down the right mouse button.
@ OtherMouseDown
The user pressed a tertiary mouse button.
@ OtherMouseDragged
The user moved the mouse while holding down a tertiary mouse button.
@ LeftMouseDragged
The user moved the mouse while holding down the left mouse button.
@ OtherMouseUp
The user released a tertiary mouse button.
@ FlagsChanged
The event flags changed.
@ MouseMoved
The user moved the mouse in a way that caused the cursor to move onscreen.
@ ScrollWheel
The scroll wheel position changed.
@ RightMouseUp
The user released the right mouse button.
@ KeyDown
The user pressed a key on the keyboard.
@ LeftMouseUp
The user released the left mouse button.
Point2 UIPoint
A type that contains a point in a two-dimensional coordinate system.
Definition UIUtility.hpp:27
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
An object that contains information about an input action such as a mouse click or a key press.
Definition UIEvent.hpp:115
UIEventType type
The event's type.
Definition UIEvent.hpp:117
double timestamp
The time when the event occurred in seconds since system startup.
Definition UIEvent.hpp:120
UIWindow * window
The window object associated with the event.
Definition UIEvent.hpp:123
UIModifierKeys modifiers
An integer bit field indicating the event's modifier keys.
Definition UIEvent.hpp:126
Definition UIEvent.hpp:129
String characters
The characters associated with a key-up or key-down event.
Definition UIEvent.hpp:139
String charactersIgnoringModifiers
The characters generated by a key event as if no modifier key (except for Shift) applies.
Definition UIEvent.hpp:157
UInt16 keyCode
The virtual key code for the keyboard key associated with a key event.
Definition UIEvent.hpp:170
bool isRepeat
A Boolean value that indicates whether the key event is a repeat.
Definition UIEvent.hpp:164
Definition UIEvent.hpp:173
UInt32 buttonNumber
The button number for a mouse event.
Definition UIEvent.hpp:193
UInt32 clickCount
The number of mouse clicks associated with a mouse-down or mouse-up event.
Definition UIEvent.hpp:206
UIPoint locationInWindow
The receiver's location in the base coordinate system of the associated window.
Definition UIEvent.hpp:186
UIPoint delta
The mouse coordinate change for mouse-move, mouse-drag, and swipe events.
Definition UIEvent.hpp:213