Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
foray::osi::EventWindowFocusChanged Class Reference

Event type fired when a window gains or loses focus. More...

#include <foray_event.hpp>

Inheritance diagram for foray::osi::EventWindowFocusChanged:
foray::osi::Event foray::Polymorphic

Public Member Functions

 EventWindowFocusChanged ()=default
 
 EventWindowFocusChanged (Window *source, const uint32_t timestamp, bool mouseFocus, bool inputFocus)
 
- Public Member Functions inherited from foray::osi::Event
 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

bool MouseFocus = false
 True, if window has mouse focus (The window itself may not be focused, but mouse hovering above)
 
bool InputFocus = false
 True, if window has full focus.
 
- Public Attributes inherited from foray::osi::Event
WindowSource = 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

- Public Types inherited from foray::osi::Event
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...
 
- Protected Member Functions inherited from foray::Polymorphic
virtual void __makeMePolymorphic ()
 

Detailed Description

Event type fired when a window gains or loses focus.

Constructor & Destructor Documentation

◆ EventWindowFocusChanged() [1/2]

foray::osi::EventWindowFocusChanged::EventWindowFocusChanged ( )
inlinedefault

◆ EventWindowFocusChanged() [2/2]

foray::osi::EventWindowFocusChanged::EventWindowFocusChanged ( Window source,
const uint32_t  timestamp,
bool  mouseFocus,
bool  inputFocus 
)
inline

Member Data Documentation

◆ InputFocus

bool foray::osi::EventWindowFocusChanged::InputFocus = false

True, if window has full focus.

◆ MouseFocus

bool foray::osi::EventWindowFocusChanged::MouseFocus = false

True, if window has mouse focus (The window itself may not be focused, but mouse hovering above)


The documentation for this class was generated from the following file: