9 : m_Width(width), m_Height(height) {}
11 [[nodiscard]] uint32_t
GetWidth()
const {
return m_Width; }
12 [[nodiscard]] uint32_t
GetHeight()
const {
return m_Height; }
14 [[nodiscard]] std::string
ToString()
const override {
15 return std::string(
"WindowResizeEvent: (") + std::to_string(m_Width) +
", " + std::to_string(m_Height) + std::string(
")");
21 uint32_t m_Width{ 0 };
22 uint32_t m_Height{ 0 };
29 [[nodiscard]] std::string
ToString()
const override {
30 return "WindowCloseEvent";
#define EVENT_CLASS_TYPE(type)
Assigns an EventType to the custom event type derived from the Event class. Use it in the public fiel...
#define EVENT_CLASS_CATEGORY(category)
Assigns an EventCategory to the custom event type derived from the Event class. Use it in the public ...
An abstract class that is ment to be used as a template for defining events.
std::string ToString() const override
Returns the name of the Event.
WindowCloseEvent()=default
uint32_t GetHeight() const
uint32_t GetWidth() const
std::string ToString() const override
Returns the name of the Event.
WindowResizeEvent(const uint32_t width, const uint32_t height)
Core systems of the engine are here.
@ EventCategoryApplication