|
Muto 0.0.1
|
Abstract base class for all events. More...
#include <Event.h>
Public Member Functions | |
| virtual int | GetCategoryFlags () const =0 |
| Get the category flags of the event. | |
| virtual EventType | GetEventType () const =0 |
| Get the type of the event. | |
| virtual const char * | GetName () const =0 |
| Get the name of the event. | |
| bool | IsInCategory (EventCategory category) |
| Check if the event is in a specific category. | |
| virtual std::string | ToString () const |
| Convert the event to a string representation. | |
| virtual | ~Event ()=default |
Public Attributes | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Friends | |
| class | EventDispatcher |
Abstract base class for all events.
|
virtualdefault |
Get the category flags of the event.
Referenced by IsInCategory().
Get the type of the event.
Referenced by Muto::EventDispatcher::Dispatch().
Get the name of the event.
Referenced by ToString().
|
inline |
Check if the event is in a specific category.
References GetCategoryFlags().
Referenced by Muto::ImGuiLayer::OnEvent().
|
inlinevirtual |
Convert the event to a string representation.
Reimplemented in Muto::WindowResizeEvent, Muto::KeyPressedEvent, Muto::KeyReleasedEvent, Muto::KeyTypedEvent, Muto::MouseMovedEvent, Muto::MouseScrolledEvent, Muto::MouseButtonPressedEvent, and Muto::MouseButtonReleasedEvent.
References GetName().
Referenced by Muto::format_as().
|
friend |
Indicates whether the event has been handled.
Referenced by Muto::EventDispatcher::Dispatch(), Muto::Application::OnEvent(), and Muto::ImGuiLayer::OnEvent().