34 : m_Width(width), m_Height(height)
43 inline unsigned int GetWidth()
const {
return m_Width; }
50 inline unsigned int GetHeight()
const {
return m_Height; }
60 ss <<
"WindowResizeEvent: " << m_Width <<
", " << m_Height;
68 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:42
#define EVENT_CLASS_TYPE(type)
A macro for a template for Event based classes.
Definition Event.h:75
#define EVENT_CLASS_CATEGORY(category)
Macro for the routine category flags.
Definition Event.h:84
AppTickEvent()
A constructor.
Definition ApplicationEvent.h:102
The base class of all the events for Karma.
Definition Event.h:90
WindowCloseEvent()
A constructor.
Definition ApplicationEvent.h:83
WindowResizeEvent(unsigned int width, unsigned int height)
A constructor.
Definition ApplicationEvent.h:33
unsigned int GetWidth() const
Getter for width size.
Definition ApplicationEvent.h:43
unsigned int GetHeight() const
Getter for height size.
Definition ApplicationEvent.h:50
std::string ToString() const override
String representation of the event.
Definition ApplicationEvent.h:57