Class WindowResizeEvent#

Inheritance Relationships#

Base Type#

Class Documentation#

class WindowResizeEvent : public TRAP::Events::Event#

Window resized.

Remark

Headless mode: This class is not available in headless mode.

Public Functions

WindowResizeEvent(u32 width, u32 height, TRAP::Window &window)#

Constructor.

Note

The window must outlive the WindowResizeEvent!

Parameters:
  • width – New Window width.

  • height – New Window height.

  • window – The affected window.

constexpr ~WindowResizeEvent() override = default#

Destructor.

consteval WindowResizeEvent(const WindowResizeEvent&) noexcept = delete#

Copy constructor.

consteval WindowResizeEvent &operator=(const WindowResizeEvent&) noexcept = delete#

Copy assignment operator.

constexpr WindowResizeEvent(WindowResizeEvent&&) noexcept = default#

Move constructor.

WindowResizeEvent &operator=(WindowResizeEvent&&) noexcept = default#

Move assignment operator.

constexpr u32 GetWidth() const noexcept#

Retrieve the new window width.

Returns:

Width.

constexpr u32 GetHeight() const noexcept#

Retrieve the new window height.

Returns:

Height.

constexpr TRAP::Window &GetWindow() const noexcept#

Retrieve a reference to the affected window.

Returns:

Window reference.

virtual constexpr EventType GetEventType() const noexcept override#

Retrieve the EventType of the event.

Returns:

EventType.

virtual constexpr std::string GetName() const override#

Retrieve the name of the event.

Returns:

Name.

virtual constexpr EventCategory GetCategoryFlags() const noexcept override#

Retrieve the category flags of the event.

Returns:

Combination of one or more EventCategory’s.

virtual std::string ToString() const override#

Get a string representation of the event.

Returns:

String representation.

Public Static Functions

static constexpr EventType GetStaticType() noexcept#

Retrieve the EventType of the event.

Returns:

EventType.