2#include "../foray_basics.hpp"
3#include "../foray_vulkan.hpp"
Simple type for forcing a type to be polymorphic.
Definition foray_basics.hpp:29
Event type fired when the windows closure is requested (by OS or user through OS)
Definition foray_event.hpp:182
EventWindowCloseRequested(Window *const source, const uint32_t timestamp)
Definition foray_event.hpp:185
EventWindowCloseRequested()=default
Event type fired when a window gains or loses focus.
Definition foray_event.hpp:166
bool MouseFocus
True, if window has mouse focus (The window itself may not be focused, but mouse hovering above)
Definition foray_event.hpp:175
EventWindowFocusChanged(Window *source, const uint32_t timestamp, bool mouseFocus, bool inputFocus)
Definition foray_event.hpp:169
EventWindowFocusChanged()=default
bool InputFocus
True, if window has full focus.
Definition foray_event.hpp:177
Event type fired when a window is resized.
Definition foray_event.hpp:155
EventWindowResized()=default
VkExtent2D Current
Current window extent.
Definition foray_event.hpp:161
EventWindowResized(Window *const source, const uint32_t timestamp, VkExtent2D current)
Definition foray_event.hpp:158
Base class for operating system events.
Definition foray_event.hpp:13
Event(Window *const source, const uint32_t timestamp, const int8_t customtype)
Definition foray_event.hpp:44
Event(Window *const source, const uint32_t timestamp, const EType type)
Definition foray_event.hpp:43
SDL_Event RawSdlEventData
Raw SDL_Event data this event was derived from.
Definition foray_event.hpp:56
int16_t CustomType
For custom event type overloads, this value may be set.
Definition foray_event.hpp:54
uint32_t Timestamp
Timestamp when the action was recorded.
Definition foray_event.hpp:50
EType Type
Event type.
Definition foray_event.hpp:52
Window * Source
Source window that recorded the event, if applicable.
Definition foray_event.hpp:48
virtual ~Event()
Definition foray_event.hpp:45
EType
Event type enum, allows handling events in switch structures.
Definition foray_event.hpp:17
@ InputDeviceAvailability
An input device was connected or removed.
@ InputDirectional
Directional stateless inputs, ex. scroll wheel, joystick hatswitches, etc.
@ WindowCloseRequested
User requested window closed.
@ WindowFocusChanged
WindowPtr lost/gained focus.
@ WindowItemDropped
File/Folder was dragged on top of the window.
@ InputMouseMoved
Mouse position input type.
@ InputAnalogue
Analogue inputs, ex. controller stick axis.
@ WindowResized
WindowPtr resized.
@ InputBinary
Binary inputs, ex. buttons, keys.
Window class. Provides access to common properties of operating system level windows.
Definition foray_window.hpp:15
Definition foray_env.hpp:7
float fp32_t
stdint.h style 32 bit floating point type alias (float)
Definition foray_basics.hpp:13