Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Base class for operating system events. More...
#include <foray_event.hpp>
Public Types | |
enum class | EType : int16_t { Undefined = -1 , InputAnalogue , InputBinary , InputDirectional , InputMouseMoved , WindowResized , WindowFocusChanged , WindowCloseRequested , WindowItemDropped , InputDeviceAvailability , Custom , ENUM_MAX } |
Event type enum, allows handling events in switch structures. More... | |
Public Member Functions | |
Event ()=default | |
Event (Window *const source, const uint32_t timestamp, const EType type) | |
Event (Window *const source, const uint32_t timestamp, const int8_t customtype) | |
virtual | ~Event () |
Public Attributes | |
Window * | Source = nullptr |
Source window that recorded the event, if applicable. | |
uint32_t | Timestamp = 0 |
Timestamp when the action was recorded. | |
EType | Type = EType::Undefined |
Event type. | |
int16_t | CustomType = 0 |
For custom event type overloads, this value may be set. | |
SDL_Event | RawSdlEventData = {} |
Raw SDL_Event data this event was derived from. | |
Additional Inherited Members | |
![]() | |
virtual void | __makeMePolymorphic () |
Base class for operating system events.
|
strong |
Event type enum, allows handling events in switch structures.
|
inlinedefault |
|
inline |
|
inline |
|
inlinevirtual |
int16_t foray::osi::Event::CustomType = 0 |
For custom event type overloads, this value may be set.
SDL_Event foray::osi::Event::RawSdlEventData = {} |
Raw SDL_Event data this event was derived from.
Window* foray::osi::Event::Source = nullptr |
Source window that recorded the event, if applicable.
uint32_t foray::osi::Event::Timestamp = 0 |
Timestamp when the action was recorded.
EType foray::osi::Event::Type = EType::Undefined |
Event type.