The Battle for Wesnoth  1.13.10+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 "serialization/unicode_types.hpp"
#include "utils/functional.hpp"
#include "utils/type_trait_aliases.hpp"
#include <SDL_events.h>
#include <boost/mpl/int.hpp>
#include <list>
#include <map>
#include <type_traits>
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::dispatcher
 Base class for event handling. More...
 
struct  gui2::event::dispatcher::signal_type< T >
 Helper struct to generate the various signal types. More...
 
struct  gui2::event::dispatcher::signal_queue< T >
 Helper struct to generate the various event queues. More...
 

Namespaces

 gui2
 Generic file dialog.
 
 gui2::event
 

Typedefs

template<typename K , ui_event E>
using gui2::event::has_key = boost::mpl::has_key< K, boost::mpl::int_< E >>
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt)> 
gui2::event::signal_function
 Callback function signature. More...
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt, const point &coordinate)> 
gui2::event::signal_mouse_function
 Callback function signature. More...
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt, const SDL_Keycode key,
const SDL_Keymod modifier,
const utf8::string &unicode)> 
gui2::event::signal_keyboard_function
 Callback function signature. More...
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt, const point &pos, const
point &distance)> 
gui2::event::signal_touch_function
 Callback function signature. More...
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt, void *)> 
gui2::event::signal_notification_function
 Callback function signature. More...
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt, message &message)> 
gui2::event::signal_message_function
 Callback function signature. More...
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt, const SDL_Event
&sdlevent)> 
gui2::event::signal_raw_event_function
 Callback function signature. More...
 
typedef std::function< void(widget
&dispatcher, const ui_event
event, bool &handled, bool
&halt, const std::string &text,
int32_t current_pos, int32_t
select_len)> 
gui2::event::signal_text_input_function
 Callback function signature. More...
 
typedef std::function< bool(widget
&dispatcher,
hotkey::HOTKEY_COMMAND id)> 
gui2::event::hotkey_function
 Hotkey function handler signature. More...
 

Functions

void gui2::event::connect_signal_pre_key_press (dispatcher &dispatcher, const signal_keyboard_function &signal)
 Connects the signal for 'snooping' on the keypress. More...
 
void gui2::event::connect_signal_mouse_left_click (dispatcher &dispatcher, const signal_function &signal)
 Connects a signal handler for a left mouse button click. More...
 
void gui2::event::disconnect_signal_mouse_left_click (dispatcher &dispatcher, const signal_function &signal)
 Disconnects a signal handler for a left mouse button click. More...
 
void gui2::event::connect_signal_mouse_left_double_click (dispatcher &dispatcher, const signal_function &signal)
 Connects a signal handler for a left mouse button double click. More...
 
void gui2::event::connect_signal_notify_modified (dispatcher &dispatcher, const signal_notification_function &signal)
 Connects a signal handler for getting a notification upon modification. More...