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
bool
bool IsControlPressed()
Return whether Control key is pressed.
Return
bool
bool IsAltPressed()
Return whether Alt key is pressed.
Return
bool
bool IsMetaPressed()
Return whether Win or Command key is pressed.
Return
bool
PointF GetMouseLocation()
Return current mouse location in screen.
Return
PointF
Properties
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.