|  | 1.11 | 
A single event that has information about the event and state for the event. More...
#include <event.h>

| 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. | |
| EGT_NODISCARD const EventId & | id () const noexcept | 
| Get the id of the event. | |
| void | id (EventId id) | 
| Change the id of the event. | |
| Key & | key () | 
| Get the Key event data. | |
| 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. | |
| Pointer & | pointer () | 
| Get the Pointer event data. | |
| 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. | |
| void | postpone_stop () | 
| Stop the event from propagating but only after the current handle() completes. | |
| EGT_NODISCARD bool | postponed_quit () const | 
| Was the event scheduled to be stopped just after the latest handle() completes? | |
|  Public Member Functions inherited from EventArg | |
| EGT_NODISCARD bool | quit () const | 
| Was the event stopped from propagating? | |
| void | stop () | 
| Stop the event from propagating. | |
| Protected Attributes | |
| EventId | m_id {EventId::none} | 
| The EventId. | |
| Key | m_key | 
| Key event data. | |
| Pointer | m_pointer | 
| Pointer event data. | |
| bool | m_postponed_stop {false} | 
| Stop has be rescheduled for after handle() completes. | |
|  Protected Attributes inherited from EventArg | |
| bool | m_stop {false} | 
| Is the event stopped. | |
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.
| 
 | inline | 
Stop the event from propagating but only after the current handle() completes.
| 
 | inline | 
Was the event scheduled to be stopped just after the latest handle() completes?
| 
 | protected | 
The EventId.
| 
 | protected | 
Stop has be rescheduled for after handle() completes.