|
CoriEngine
|
An abstract class that is ment to be used as a template for defining events. More...
#include <Event.hpp>

Public Member Functions | |
| virtual | ~Event ()=default |
| virtual constexpr std::type_index | GetEventType () const =0 |
| Gives the return type of the Event. | |
| virtual const char * | GetName () const =0 |
| This will give you the string version of EventType. | |
| virtual uint32_t | GetCategoryFlags () const =0 |
| Gives the flags of particular Event. | |
| virtual std::string | ToString () const |
| Returns the name of the Event. | |
| bool | IsInCategory (const EventCategory category) const |
| Checks if the Event is in specific category. | |
Public Attributes | |
| bool | m_Handled = false |
Friends | |
| class | EventDispatcher |
An abstract class that is ment to be used as a template for defining events.
|
virtualdefault |
|
nodiscardpure virtual |
Gives the flags of particular Event.
Implemented in Cori::Core::KeyEvent, Cori::Core::MouseButtonEvent, Cori::Core::MouseMovedEvent, Cori::Core::MouseScrolledEvent, Cori::Core::WindowCloseEvent, and Cori::Core::WindowResizeEvent.
|
nodiscardconstexprpure virtual |
Gives the return type of the Event.
Implemented in Cori::Core::KeyPressedEvent, Cori::Core::KeyReleasedEvent, Cori::Core::MouseButtonPressedEvent, Cori::Core::MouseButtonReleasedEvent, Cori::Core::MouseMovedEvent, Cori::Core::MouseScrolledEvent, Cori::Core::WindowCloseEvent, and Cori::Core::WindowResizeEvent.
|
nodiscardpure virtual |
This will give you the string version of EventType.
Implemented in Cori::Core::KeyPressedEvent, Cori::Core::KeyReleasedEvent, Cori::Core::MouseButtonPressedEvent, Cori::Core::MouseButtonReleasedEvent, Cori::Core::MouseMovedEvent, Cori::Core::MouseScrolledEvent, Cori::Core::WindowCloseEvent, and Cori::Core::WindowResizeEvent.
|
inlinenodiscard |
|
inlinenodiscardvirtual |
Returns the name of the Event.
Reimplemented in Cori::Core::KeyPressedEvent, Cori::Core::KeyReleasedEvent, Cori::Core::MouseButtonPressedEvent, Cori::Core::MouseButtonReleasedEvent, Cori::Core::MouseMovedEvent, Cori::Core::MouseScrolledEvent, Cori::Core::WindowCloseEvent, and Cori::Core::WindowResizeEvent.
Definition at line 51 of file Event.hpp.

|
friend |