Elevate Engine 1
Loading...
Searching...
No Matches
Elevate::WindowResizeEvent Class Reference

#include <ApplicationEvent.h>

Inheritance diagram for Elevate::WindowResizeEvent:
Elevate::Event

Public Member Functions

 WindowResizeEvent (unsigned int width, unsigned int height)
 
unsigned int GetWidth () const
 
unsigned int GetHeight () const
 
std::string ToString () const override
 
- Public Member Functions inherited from Elevate::Event
virtual EventType GetEventType () const =0
 
virtual const char * GetName () const =0
 
virtual int GetCategoryFlags () const =0
 
bool IsInCategory (EventCategory category)
 

Additional Inherited Members

- Public Attributes inherited from Elevate::Event
bool Handled = false
 
- Protected Attributes inherited from Elevate::Event
bool m_Handled = false
 

Detailed Description

Definition at line 33 of file ApplicationEvent.h.

Constructor & Destructor Documentation

◆ WindowResizeEvent()

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

Definition at line 36 of file ApplicationEvent.h.

37 : m_Width(width), m_Height(height) {}

Member Function Documentation

◆ GetHeight()

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

Definition at line 40 of file ApplicationEvent.h.

40{ return m_Height; }

◆ GetWidth()

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

Definition at line 39 of file ApplicationEvent.h.

39{ return m_Width; }

◆ ToString()

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

Reimplemented from Elevate::Event.

Definition at line 42 of file ApplicationEvent.h.

43 {
44 std::stringstream ss;
45 ss << "WindowResizeEvent: " << m_Width << ", " << m_Height;
46 return ss.str();
47 }

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