The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Typedefs | Functions
dispatcher.hpp File Reference
#include "gui/core/event/handler.hpp"
#include "hotkey/hotkey_command.hpp"
#include "sdl/compat.hpp"
#include "serialization/unicode_types.hpp"
#include <SDL_events.h>
#include "utils/functional.hpp"
#include <boost/mpl/int.hpp>
#include <boost/utility/enable_if.hpp>
#include <map>
Include dependency graph for dispatcher.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gui2::event::tdispatcher
 Base class for event handling. More...
 
struct  gui2::event::tdispatcher::tsignal< T >
 Helper struct to generate the various signal types. More...
 
struct  gui2::event::tdispatcher::tsignal_queue< T >
 Helper struct to generate the various event queues. More...
 

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 
 gui2::event
 

Typedefs

typedef std::function< void(tdispatcher
&dispatcher, const tevent
event, bool &handled, bool
&halt)> 
gui2::event::tsignal_function
 Callback function signature. More...
 
typedef std::function< void(tdispatcher
&dispatcher, const tevent
event, bool &handled, bool
&halt, const tpoint
&coordinate)> 
gui2::event::tsignal_mouse_function
 Callback function signature. More...
 
typedef std::function< void(tdispatcher
&dispatcher, const tevent
event, bool &handled, bool
&halt, const SDLKey key, const
SDLMod modifier, const
utf8::string &unicode)> 
gui2::event::tsignal_keyboard_function
 Callback function signature. More...
 
typedef std::function< void(tdispatcher
&dispatcher, const tevent
event, bool &handled, bool
&halt, void *)> 
gui2::event::tsignal_notification_function
 Callback function signature. More...
 
typedef std::function< void(tdispatcher
&dispatcher, const tevent
event, bool &handled, bool
&halt, tmessage &message)> 
gui2::event::tsignal_message_function
 Callback function signature. More...
 
typedef std::function< bool(tdispatcher
&dispatcher,
hotkey::HOTKEY_COMMAND id)> 
gui2::event::thotkey_function
 Hotkey function handler signature. More...
 

Functions

void gui2::event::connect_signal_pre_key_press (tdispatcher &dispatcher, const tsignal_keyboard_function &signal)
 Connects the signal for 'snooping' on the keypress. More...
 
void gui2::event::connect_signal_mouse_left_click (tdispatcher &dispatcher, const tsignal_function &signal)
 Connects a signal handler for a left mouse button click. More...
 
void gui2::event::disconnect_signal_mouse_left_click (tdispatcher &dispatcher, const tsignal_function &signal)
 Disconnects a signal handler for a left mouse button click. More...
 
void gui2::event::connect_signal_notify_modified (tdispatcher &dispatcher, const tsignal_notification_function &signal)
 Connects a signal handler for getting a notification upon modification. More...