#include <events.hpp>
Public Member Functions | |
context () | |
void | add_handler (sdl_handler *ptr) |
bool | remove_handler (sdl_handler *ptr) |
int | cycle_focus () |
void | set_focus (const sdl_handler *ptr) |
void | delete_handler_index (size_t handler) |
Public Attributes | |
std::vector< sdl_handler * > | handlers |
int | focused_handler |
Definition at line 36 of file events.hpp.
|
inline |
Definition at line 38 of file events.hpp.
void events::context::add_handler | ( | sdl_handler * | ptr | ) |
Definition at line 44 of file events.cpp.
References handlers.
Referenced by events::sdl_handler::join(), and events::sdl_handler::join_global().
int events::context::cycle_focus | ( | ) |
Definition at line 93 of file events.cpp.
References focused_handler, handlers, and i.
Referenced by remove_handler().
void events::context::delete_handler_index | ( | size_t | handler | ) |
Definition at line 49 of file events.cpp.
References focused_handler, gui2::event::handler, and handlers.
Referenced by remove_handler().
bool events::context::remove_handler | ( | sdl_handler * | ptr | ) |
Definition at line 60 of file events.cpp.
References cycle_focus(), delete_handler_index(), gui2::event::find(), focused_handler, handlers, and i.
Referenced by events::sdl_handler::leave_global().
void events::context::set_focus | ( | const sdl_handler * | ptr | ) |
Definition at line 110 of file events.cpp.
References gui2::event::find(), focused_handler, handlers, i, and int().
int events::context::focused_handler |
Definition at line 50 of file events.hpp.
Referenced by cycle_focus(), delete_handler_index(), remove_handler(), and set_focus().
std::vector<sdl_handler*> events::context::handlers |
Definition at line 49 of file events.hpp.
Referenced by add_handler(), cycle_focus(), delete_handler_index(), events::pump(), remove_handler(), and set_focus().