Event
Generic input event type.
| Header | #include "nativeui/events/event.h" |
| Namespace | namespace nu |
| Type | struct |
Class methods
bool IsShiftPressed()
Return whether Shift key is pressed.
Return
boolbool IsControlPressed()
Return whether Control key is pressed.
Return
boolbool IsAltPressed()
Return whether Alt key is pressed.
Return
boolbool IsMetaPressed()
Return whether Win or Command key is pressed.
Return
boolPointF GetMouseLocation()
Return current mouse location in screen.
Return
PointFProperties
EventType type
The type of the event.
int modifiers
A bit array of keyboard modifiers of the event.
Available modifiers can be found in KeyboardModifier.
uint32_t timestamp
Time when event was created, starts from when machine was booted.
NativeEvent native_event
The underlying native event.