galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::WindowResized Struct Referencefinal

New width and height of window being resized. More...

#include <WindowResized.hpp>

+ Inheritance diagram for galaxy::WindowResized:
+ Collaboration diagram for galaxy::WindowResized:

Public Member Functions

 WindowResized (const int width, const int height) noexcept
 Constructor.
 
- Public Member Functions inherited from galaxy::Event
 Event () noexcept
 Constructor.
 
 Event (Event &&) noexcept
 Move constructor.
 
Eventoperator= (Event &&) noexcept
 Move assignment operator.
 
 Event (const Event &) noexcept
 Copy constructor.
 
Eventoperator= (const Event &) noexcept
 Copy assignment operator.
 
virtual ~Event () noexcept
 Destructor.
 
void consume () noexcept
 Mark this event as consumed.
 
bool consumed () const noexcept
 Is this event already consumed?
 

Public Attributes

int m_width = 0
 New width of window.
 
int m_height = 0
 New height of window.
 

Additional Inherited Members

- Protected Attributes inherited from galaxy::Event
bool m_handled
 Keeps track if event has been used already.
 

Detailed Description

New width and height of window being resized.

Definition at line 18 of file WindowResized.hpp.

Constructor & Destructor Documentation

◆ WindowResized()

galaxy::WindowResized::WindowResized ( const int width,
const int height )
noexcept

Constructor.

Parameters
widthNew width of window.
heightNew height of window.

Definition at line 12 of file WindowResized.cpp.

Member Data Documentation

◆ m_width

int galaxy::WindowResized::m_width = 0

New width of window.

Definition at line 31 of file WindowResized.hpp.

◆ m_height

int galaxy::WindowResized::m_height = 0

New height of window.

Definition at line 36 of file WindowResized.hpp.


The documentation for this struct was generated from the following files: