Class Event#
Defined in File Event.h
Inheritance Relationships#
Derived Types#
public TRAP::Events::ControllerEvent
(Class ControllerEvent)public TRAP::Events::FileSystemChangeEvent
(Class FileSystemChangeEvent)public TRAP::Events::FrameBufferResizeEvent
(Class FrameBufferResizeEvent)public TRAP::Events::KeyEvent
(Class KeyEvent)public TRAP::Events::KeyLayoutEvent
(Class KeyLayoutEvent)public TRAP::Events::KeyTypeEvent
(Class KeyTypeEvent)public TRAP::Events::MonitorEvent
(Class MonitorEvent)public TRAP::Events::MouseButtonEvent
(Class MouseButtonEvent)public TRAP::Events::MouseEnterEvent
(Class MouseEnterEvent)public TRAP::Events::MouseLeaveEvent
(Class MouseLeaveEvent)public TRAP::Events::MouseMoveEvent
(Class MouseMoveEvent)public TRAP::Events::MouseScrollEvent
(Class MouseScrollEvent)public TRAP::Events::ShaderReloadEvent
(Class ShaderReloadEvent)public TRAP::Events::TextureReloadEvent
(Class TextureReloadEvent)public TRAP::Events::WindowCloseEvent
(Class WindowCloseEvent)public TRAP::Events::WindowContentScaleEvent
(Class WindowContentScaleEvent)public TRAP::Events::WindowDropEvent
(Class WindowDropEvent)public TRAP::Events::WindowFocusEvent
(Class WindowFocusEvent)public TRAP::Events::WindowLostFocusEvent
(Class WindowLostFocusEvent)public TRAP::Events::WindowMaximizeEvent
(Class WindowMaximizeEvent)public TRAP::Events::WindowMinimizeEvent
(Class WindowMinimizeEvent)public TRAP::Events::WindowMoveEvent
(Class WindowMoveEvent)public TRAP::Events::WindowResizeEvent
(Class WindowResizeEvent)public TRAP::Events::WindowRestoreEvent
(Class WindowRestoreEvent)
Class Documentation#
-
class Event#
Event base class.
Subclassed by TRAP::Events::ControllerEvent, TRAP::Events::FileSystemChangeEvent, TRAP::Events::FrameBufferResizeEvent, TRAP::Events::KeyEvent, TRAP::Events::KeyLayoutEvent, TRAP::Events::KeyTypeEvent, TRAP::Events::MonitorEvent, TRAP::Events::MouseButtonEvent, TRAP::Events::MouseEnterEvent, TRAP::Events::MouseLeaveEvent, TRAP::Events::MouseMoveEvent, TRAP::Events::MouseScrollEvent, TRAP::Events::ShaderReloadEvent, TRAP::Events::TextureReloadEvent, TRAP::Events::WindowCloseEvent, TRAP::Events::WindowContentScaleEvent, TRAP::Events::WindowDropEvent, TRAP::Events::WindowFocusEvent, TRAP::Events::WindowLostFocusEvent, TRAP::Events::WindowMaximizeEvent, TRAP::Events::WindowMinimizeEvent, TRAP::Events::WindowMoveEvent, TRAP::Events::WindowResizeEvent, TRAP::Events::WindowRestoreEvent
Public Functions
-
virtual constexpr ~Event() = default#
Virtual destructor.
-
virtual std::string ToString() const = 0#
Get a string representation of the event.
- Returns:
String representation.
-
virtual constexpr EventType GetEventType() const noexcept = 0#
Retrieve the EventType of the event.
- Returns:
EventType.
-
virtual constexpr std::string GetName() const = 0#
Retrieve the name of the event.
- Returns:
Name.
-
virtual constexpr EventCategory GetCategoryFlags() const noexcept = 0#
Retrieve the category flags of the event.
- Returns:
Combination of one or more EventCategory’s.
-
constexpr bool IsInCategory(EventCategory category) const noexcept#
Check if an event is in the specified category.
- Parameters:
category – Category to check.
- Returns:
True if event is in the category, false otherwise.
Public Members
-
bool Handled = false#
If set to true then this event won’t be passed on to other event handlers.
-
virtual constexpr ~Event() = default#