#include <events.hpp>
Public Member Functions | |
context () | |
~context () | |
context (const context &)=delete | |
void | add_handler (sdl_handler *ptr) |
bool | has_handler (const sdl_handler *ptr) const |
Returns true if ptr is found in either the handlers or staging_handlers lists. More... | |
bool | remove_handler (sdl_handler *ptr) |
void | cycle_focus () |
void | set_focus (const sdl_handler *ptr) |
void | add_staging_handlers () |
Public Attributes | |
handler_list | handlers |
handler_list::iterator | focused_handler |
std::vector< sdl_handler * > | staging_handlers |
Definition at line 39 of file events.hpp.
|
inline |
Definition at line 42 of file events.hpp.
events::context::~context | ( | ) |
Definition at line 200 of file events.cpp.
|
delete |
void events::context::add_handler | ( | sdl_handler * | ptr | ) |
Definition at line 89 of file events.cpp.
References staging_handlers.
Referenced by events::sdl_handler::sdl_handler().
void events::context::add_staging_handlers | ( | ) |
Definition at line 194 of file events.cpp.
References handlers, and staging_handlers.
void events::context::cycle_focus | ( | ) |
Definition at line 153 of file events.cpp.
References focused_handler, and handlers.
Referenced by remove_handler().
bool events::context::has_handler | ( | const sdl_handler * | ptr | ) | const |
Returns true if ptr is found in either the handlers or staging_handlers lists.
Definition at line 98 of file events.cpp.
References handlers, and staging_handlers.
Referenced by events::sdl_handler::join_same(), events::sdl_handler::operator=(), and events::sdl_handler::sdl_handler().
bool events::context::remove_handler | ( | sdl_handler * | ptr | ) |
Definition at line 106 of file events.cpp.
References cycle_focus(), focused_handler, handlers, i, and staging_handlers.
Referenced by events::sdl_handler::leave().
void events::context::set_focus | ( | const sdl_handler * | ptr | ) |
Definition at line 186 of file events.cpp.
References focused_handler, handlers, and i.
handler_list::iterator events::context::focused_handler |
Definition at line 62 of file events.hpp.
Referenced by cycle_focus(), remove_handler(), and set_focus().
handler_list events::context::handlers |
Definition at line 61 of file events.hpp.
Referenced by add_staging_handlers(), cycle_focus(), has_handler(), events::raise_window_event(), remove_handler(), set_focus(), and ~context().
std::vector<sdl_handler*> events::context::staging_handlers |
Definition at line 63 of file events.hpp.
Referenced by add_handler(), add_staging_handlers(), has_handler(), and remove_handler().