32 : m_Width(width), m_Height(height)
41 inline unsigned int GetWidth()
const {
return m_Width; }
48 inline unsigned int GetHeight()
const {
return m_Height; }
58 ss <<
"WindowResizeEvent: " << m_Width <<
", " << m_Height;
66 unsigned int m_Width, m_Height;
#define KARMA_API
Defining Karma's API macro for storage class information.
Definition Core.h:41
This file contains the base class Event for Karma's events.
@ EventCategoryApplication
Events belonging to application specific processes (resizing and movement for instance).
Definition Event.h:40
#define EVENT_CLASS_TYPE(type)
A macro for a template for Event based classes.
Definition Event.h:73
#define EVENT_CLASS_CATEGORY(category)
Macro for the routine category flags.
Definition Event.h:82
AppTickEvent()
A constructor.
Definition ApplicationEvent.h:100
The base class of all the events for Karma.
Definition Event.h:88
WindowCloseEvent()
A constructor.
Definition ApplicationEvent.h:81
WindowResizeEvent(unsigned int width, unsigned int height)
A constructor.
Definition ApplicationEvent.h:31
unsigned int GetWidth() const
Getter for width size.
Definition ApplicationEvent.h:41
unsigned int GetHeight() const
Getter for height size.
Definition ApplicationEvent.h:48
std::string ToString() const override
String representation of the event.
Definition ApplicationEvent.h:55