![]() |
Deskflow 1.24.0.365
Keyboard and mouse sharing utility
|
#include <Event.h>
Classes | |
| struct | EventFlags |
Public Types | |
| using | Flags = uint32_t |
Public Member Functions | |
| Event ()=default | |
| Event (const Event &)=delete | |
| Event (Event &&other)=default | |
| Event & | operator= (const Event &)=delete |
| Event & | operator= (Event &&)=default |
| Event (EventTypes type, void *target=nullptr, void *data=nullptr, Flags flags=EventFlags::NoFlags) | |
Create Event with data (POD). | |
| Event (EventTypes type, void *target, EventData *dataObject) | |
accessors | |
| EventTypes | getType () const |
| Get event type. | |
| void * | getTarget () const |
| Get the event target. | |
| void * | getData () const |
| Get the event data (POD). | |
| EventData * | getDataObject () const |
| Get the event data (non-POD). | |
| Flags | getFlags () const |
| Get event flags. | |
manipulators | |
| void | setDataObject (EventData *dataObject) |
| Set data (non-POD). | |
| static void | deleteData (const Event &event) |
| Release event data. | |
| using Event::Flags = uint32_t |
|
default |
|
delete |
|
default |
|
inlineexplicit |
Create Event with data (POD).
The data must be POD (plain old data) allocated by malloc(), which means it cannot have a constructor, destructor or be composed of any types that do. For non-POD (normal C++ objects use setDataObject() or use appropriate constructor. target is the intended recipient of the event. flags is any combination of Flags.
|
inline |
|
inlinestatic |
Release event data.
Deletes event data for the given event (using free()).
|
inline |
Get the event data (POD).
Returns the event data (POD).
|
inline |
Get the event data (non-POD).
Returns the event data (non-POD). The difference between this and getData() is that when delete is called on this data, so non-POD (non plain old data) dtor is called.
|
inline |
Get event flags.
Returns the event flags.
|
inline |
Get the event target.
Returns the event target.
|
inline |
Get event type.
Returns the event type.
|
inline |
Set data (non-POD).
Set non-POD (non plain old data), where delete is called when the event is deleted, and the destructor is called.