Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::WindowResizeEvent Struct Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ WindowResizeEvent()

Raven::WindowResizeEvent::WindowResizeEvent ( u32 w,
u32 h )
inlineconstexpr

Constructs a resize event with the given dimensions.

Parameters
wNew window width in pixels.
hNew window height in pixels.

Member Function Documentation

◆ StaticCategory()

constexpr EventCategory Raven::WindowResizeEvent::StaticCategory ( )
inlinestaticconstexpr

◆ StaticType()

constexpr EventType Raven::WindowResizeEvent::StaticType ( )
inlinestaticconstexpr

Returns the static type identifier for this event.

Member Data Documentation

◆ Height

u32 Raven::WindowResizeEvent::Height

New height of the window in pixels.

◆ Width

u32 Raven::WindowResizeEvent::Width

New width of the window in pixels.


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