Base class for events.
More...
◆ Type
Defines the type of event.
Enumerator |
---|
Pointer | Pointer event type.
|
Keyboard | Keyboard event type.
|
Touch | Touch event type.
|
◆ Subtype
Defines the subtype of event.
Enumerator |
---|
Enter | Enter event subtype.
|
Leave | Leave event subtype.
|
Up | Up event subtype.
|
Down | Down event subtype.
|
Move | Move event subtype.
|
Button | Button event subtype.
|
Key | Key event subtype.
|
Modifiers | Modifiers event subtype.
|
Scroll | Scroll event subtype.
|
Frame | Frame event subtype.
|
Cancel | Cancel event subtype.
|
SwipeBegin | SwipeBegin event subtype.
|
SwipeUpdate | SwipeUpdate event subtype.
|
SwipeEnd | SwipeEnd event subtype.
|
PinchBegin | PinchBegin event subtype.
|
PinchUpdate | PinchUpdate event subtype.
|
PinchEnd | PinchEnd event subtype.
|
HoldBegin | HoldBegin event subtype.
|
HoldEnd | HoldEnd event subtype.
|
◆ ~LEvent()
◆ type()
Retrieves the type of the event.
◆ subtype()
Retrieves the subtype of the event.
◆ setSerial()
void setSerial |
( |
UInt32 |
serial | ) |
|
|
inlinenoexcept |
Sets the serial of the event.
◆ serial()
Retrieves the serial of the event.
◆ setMs()
Sets the time the event was generated in milliseconds.
◆ ms()
Retrieves the time the event was generated in milliseconds.
◆ setUs()
Sets the time the event was generated in microseconds.
◆ us()
Retrieves the time the event was generated in microseconds.
◆ copy()
Creates a deep copy of the event.
- Returns
- A pointer to the copied event.
- Note
- The returned event must be deleted when no longer used.