1.8 |
A single event that has information about the event and state for the event. More...
Public Member Functions | |
constexpr | Event () noexcept=default |
constexpr | Event (EventId id) noexcept |
constexpr | Event (EventId id, const Key &key) noexcept |
constexpr | Event (EventId id, const Pointer &pointer) noexcept |
void | grab (Widget *widget) |
Grab any related following events to this one. More... | |
EGT_NODISCARD const EventId & | id () const noexcept |
Get the id of the event. More... | |
void | id (EventId id) |
Change the id of the event. More... | |
Key & | key () |
Get the Key event data. More... | |
EGT_NODISCARD const Key & | key () const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
Pointer & | pointer () |
Get the Pointer event data. More... | |
EGT_NODISCARD const Pointer & | pointer () const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
Public Member Functions inherited from EventArg | |
EGT_NODISCARD bool | quit () const |
Was the event stopped from propagating? More... | |
void | stop () |
Stop the event from propagating. More... | |
Protected Attributes | |
EventId | m_id {EventId::none} |
The EventId. More... | |
Key | m_key |
Key event data. More... | |
Pointer | m_pointer |
Pointer event data. More... | |
Protected Attributes inherited from EventArg | |
bool | m_stop {false} |
Is the event stopped. More... | |
A single event that has information about the event and state for the event.
|
constexprdefaultnoexcept |
void grab | ( | Widget * | widget | ) |
|
inlinenoexcept |
Get the id of the event.
|
inline |
Change the id of the event.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
protected |
The EventId.