Base type of all events.
More...
#include <Event.hpp>
|
| bool | m_handled |
| | Keeps track if event has been used already.
|
| |
Base type of all events.
Definition at line 16 of file Event.hpp.
◆ Event() [1/3]
◆ Event() [2/3]
| galaxy::Event::Event |
( |
Event && | e | ) |
|
|
noexcept |
Move constructor.
Definition at line 17 of file Event.cpp.
◆ Event() [3/3]
| galaxy::Event::Event |
( |
const Event & | e | ) |
|
|
noexcept |
Copy constructor.
Definition at line 32 of file Event.cpp.
◆ ~Event()
| galaxy::Event::~Event |
( |
| ) |
|
|
virtualnoexcept |
◆ operator=() [1/2]
Move assignment operator.
Definition at line 22 of file Event.cpp.
◆ operator=() [2/2]
| Event & galaxy::Event::operator= |
( |
const Event & | e | ) |
|
|
noexcept |
Copy assignment operator.
Definition at line 37 of file Event.cpp.
◆ consume()
| void galaxy::Event::consume |
( |
| ) |
|
|
noexcept |
Mark this event as consumed.
Definition at line 51 of file Event.cpp.
◆ consumed()
| bool galaxy::Event::consumed |
( |
| ) |
const |
|
nodiscardnoexcept |
Is this event already consumed?
- Returns
- True if this event has been handled already.
Definition at line 56 of file Event.cpp.
◆ m_handled
| bool galaxy::Event::m_handled |
|
protected |
Keeps track if event has been used already.
Definition at line 66 of file Event.hpp.
The documentation for this class was generated from the following files: