KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::WindowResizeEvent Class Reference

Event triggered when Window is resized. More...

#include <ApplicationEvent.h>

Inheritance diagram for Karma::WindowResizeEvent:
Collaboration diagram for Karma::WindowResizeEvent:

Public Member Functions

 WindowResizeEvent (unsigned int width, unsigned int height)
 A constructor.
 
unsigned int GetWidth () const
 Getter for width size.
 
unsigned int GetHeight () const
 Getter for height size.
 
std::string ToString () const override
 String representation of the event.
 
- Public Member Functions inherited from Karma::Event
virtual EventType GetEventType () const =0
 Getter for event name (type)
 
virtual const char * GetName () const =0
 Getter for event type.
 
virtual int GetCategoryFlags () const =0
 Getter for category flags (enum EventCategory)
 
bool IsInCategory (EventCategory category)
 Routine to see if the category of the Event is (or a part of) given category.
 
bool IsHandled () const
 Getter for the m_Handled.
 
EventGetObjPointer ()
 Getter for the pointer to the object.
 

Additional Inherited Members

- Protected Attributes inherited from Karma::Event
bool m_Handled = false
 

Detailed Description

Event triggered when Window is resized.

Constructor & Destructor Documentation

◆ WindowResizeEvent()

Karma::WindowResizeEvent::WindowResizeEvent ( unsigned int width,
unsigned int height )
inline

A constructor.

Parameters
widthThe width size of the window after(?) the resizing
heightThe height size of the window after(?) the resizing
Note
The use of unsigned int
Since
Karma 1.0.0

Member Function Documentation

◆ GetHeight()

unsigned int Karma::WindowResizeEvent::GetHeight ( ) const
inline

Getter for height size.

Since
Karma 1.0.0

◆ GetWidth()

unsigned int Karma::WindowResizeEvent::GetWidth ( ) const
inline

Getter for width size.

Since
Karma 1.0.0

◆ ToString()

std::string Karma::WindowResizeEvent::ToString ( ) const
inlineoverridevirtual

String representation of the event.

Since
Karma 1.0.0

Reimplemented from Karma::Event.


The documentation for this class was generated from the following file: