Class MouseButtonEvent#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class MouseButtonEvent : public TRAP::Events::Event#

Mouse button event base class.

Remark

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

Subclassed by TRAP::Events::MouseButtonPressEvent, TRAP::Events::MouseButtonReleaseEvent

Public Functions

consteval MouseButtonEvent(const MouseButtonEvent&) noexcept = delete#

Copy constructor.

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

Copy assignment operator.

constexpr ~MouseButtonEvent() override = default#

Destructor.

constexpr Input::MouseButton GetMouseButton() const noexcept#

Retrieve the affected mouse button.

Returns:

Mouse button.

virtual constexpr EventCategory GetCategoryFlags() const noexcept override#

Retrieve the category flags of the event.

Returns:

Combination of one or more EventCategory’s.

Protected Functions

explicit constexpr MouseButtonEvent(Input::MouseButton button) noexcept#

Constructor.

Parameters:

button – Affected mouse button.

constexpr MouseButtonEvent(MouseButtonEvent&&) noexcept = default#

Move constructor.

constexpr MouseButtonEvent &operator=(MouseButtonEvent&&) noexcept = default#

Move assignment operator.