Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::WindowResizeEvent Class Reference

Event triggered when the main window is resized. More...

#include <WindowEvent.h>

Inheritance diagram for Raven::WindowResizeEvent:
Raven::Event

Public Member Functions

 WindowResizeEvent (unsigned int width, unsigned int height)
unsigned int GetWidth () const
unsigned int GetHeight () const
std::string ToString () const override
 Converts the event to a string for logging or debugging.
Public Member Functions inherited from Raven::Event
virtual ~Event ()=default
virtual EventType GetEventType () const =0
 Returns the runtime event type.
virtual const char * GetName () const =0
 Returns the name of the event.
virtual EventCategory GetCategoryFlags () const =0
 Returns the category flags of the event.
bool IsInCategory (EventCategory category) const
 Checks if the event belongs to the specified category.

Additional Inherited Members

Public Attributes inherited from Raven::Event
bool Handled = false
 Indicates whether the event has been handled.

Detailed Description

Event triggered when the main window is resized.

Carries the new width and height. Used to update rendering viewport or UI layout logic.

Constructor & Destructor Documentation

◆ WindowResizeEvent()

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

Member Function Documentation

◆ GetHeight()

unsigned int Raven::WindowResizeEvent::GetHeight ( ) const
inlinenodiscard

◆ GetWidth()

unsigned int Raven::WindowResizeEvent::GetWidth ( ) const
inlinenodiscard

◆ ToString()

std::string Raven::WindowResizeEvent::ToString ( ) const
inlinenodiscardoverridevirtual

Converts the event to a string for logging or debugging.

Returns
A string representation (defaults to event name).

Reimplemented from Raven::Event.


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