ShishGL  1.0
A simple modular cross-platform graphics library
Sh::EventSystem Class Reference

#include <EventSystem.hpp>

Collaboration diagram for Sh::EventSystem:

Public Member Functions

virtual ~EventSystem ()=default
 

Static Public Member Functions

template<typename SomeEvent , typename... Args>
static bool sendEvent (Listener *sender, Args &&... args)
 
static bool sendEvent (Listener *sender, Event &event)
 
static bool dispatchAll ()
 
static bool dispatchOne ()
 

Static Public Attributes

static constexpr ListenerSystemEvents = nullptr
 

Protected Member Functions

 EventSystem ()=default
 

Constructor & Destructor Documentation

◆ ~EventSystem()

virtual Sh::EventSystem::~EventSystem ( )
virtualdefault

◆ EventSystem()

Sh::EventSystem::EventSystem ( )
protecteddefault

Member Function Documentation

◆ dispatchAll()

bool EventSystem::dispatchAll ( )
static

◆ dispatchOne()

bool EventSystem::dispatchOne ( )
static

◆ sendEvent() [1/2]

template<typename SomeEvent , typename... Args>
bool Sh::EventSystem::sendEvent ( Listener sender,
Args &&...  args 
)
static

◆ sendEvent() [2/2]

bool EventSystem::sendEvent ( Listener sender,
Event event 
)
static

Member Data Documentation

◆ SystemEvents

constexpr Listener* Sh::EventSystem::SystemEvents = nullptr
staticconstexpr

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