Event fired when a window is resized. More...
#include <WindowEvent.h>
Inherits Raven::Event.
Public Member Functions | |
| constexpr | WindowResizeEvent (u32 w, u32 h) |
| Constructs a resize event with the given dimensions. | |
| Public Member Functions inherited from Raven::Event | |
| constexpr bool | IsInCategory (EventCategory cat) const noexcept |
| Checks whether this event belongs to a given category. | |
Static Public Member Functions | |
| static constexpr EventType | StaticType () |
| Returns the static type identifier for this event. | |
| static constexpr EventCategory | StaticCategory () |
Public Attributes | |
| u32 | Width |
| New width of the window in pixels. | |
| u32 | Height |
| New height of the window in pixels. | |
| Public Attributes inherited from Raven::Event | |
| EventType | Type = EventType::None |
| Concrete event type. | |
| EventCategory | Category = EventCategory::None |
| Event category bitmask. | |
Event fired when a window is resized.
Carries the new width and height in pixels. Dispatched by the platform layer whenever the user resizes the main window.
|
inlineconstexpr |
Constructs a resize event with the given dimensions.
| w | New window width in pixels. |
| h | New window height in pixels. |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Returns the static type identifier for this event.
| u32 Raven::WindowResizeEvent::Height |
New height of the window in pixels.
| u32 Raven::WindowResizeEvent::Width |
New width of the window in pixels.