Class MonitorEvent#

Inheritance Relationships#

Base Type#

Derived Types#

Class Documentation#

class MonitorEvent : public TRAP::Events::Event#

Monitor event base class.

Remark

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

Subclassed by TRAP::Events::MonitorConnectEvent, TRAP::Events::MonitorDisconnectEvent

Public Functions

consteval MonitorEvent(const MonitorEvent&) noexcept = delete#

Copy constructor.

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

Copy assignment operator.

constexpr ~MonitorEvent() override = default#

Destructor.

Monitor GetMonitor() const noexcept#

Retrieve the affected monitor.

Returns:

Monitor.

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 MonitorEvent(const Monitor &monitor) noexcept#

Constructor.

Parameters:

monitor – Affected monitor.

constexpr MonitorEvent(MonitorEvent&&) noexcept = default#

Move constructor.

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

Move assignment operator.