codex
Loading...
Searching...
No Matches
event_dispatcher.hpp File Reference
#include <concepts>
#include <cstdio>
#include <functional>
#include <vector>
Include dependency graph for event_dispatcher.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  codex::BaseEvent
 Base class tag to identify events. More...
 
struct  codex::OnClick
 Sample button click event. More...
 
struct  codex::OnKey
 Sample key press event. More...
 
struct  codex::detail::EventListenerVec< E >
 Storage base class for a given event type. More...
 
class  codex::EventDispatcher< Es >
 A type-safe event listener/dispatcher. More...
 

Namespaces

namespace  codex
 
namespace  codex::detail
 

Concepts

concept  codex::Event
 Semi-arbitrary method to identify an event type.
 
concept  codex::EventListener
 Constrains a callable to an event type.