Class MouseButtonReleaseEvent#

Inheritance Relationships#

Base Type#

Class Documentation#

class MouseButtonReleaseEvent : public TRAP::Events::MouseButtonEvent#

Mouse button released.

Remark

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

Public Functions

MouseButtonReleaseEvent(Input::MouseButton button, TRAP::Window &window)#

Constructor.

Note

The window must outlive the MouseButtonReleaseEvent!

Parameters:
  • button – Released mouse button.

  • window – The affected window.

constexpr ~MouseButtonReleaseEvent() override = default#

Destructor.

consteval MouseButtonReleaseEvent(const MouseButtonReleaseEvent&) noexcept = delete#

Copy constructor.

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

Copy assignment operator.

constexpr MouseButtonReleaseEvent(MouseButtonReleaseEvent&&) noexcept = default#

Move constructor.

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

Move assignment operator.

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 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.