The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
handler.hpp File Reference
#include <boost/mpl/set.hpp>
#include <iosfwd>
#include <vector>
Include dependency graph for handler.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gui2::event::manager
 

Namespaces

 gui2
 Generic file dialog.
 
 gui2::event
 

Macros

#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
 
#define BOOST_MPL_LIMIT_SET_SIZE   30
 

Typedefs

typedef boost::mpl::set
< boost::mpl::int_< DRAW >
, boost::mpl::int_
< CLOSE_WINDOW >
, boost::mpl::int_
< MOUSE_ENTER >
, boost::mpl::int_
< MOUSE_LEAVE >
, boost::mpl::int_
< LEFT_BUTTON_DOWN >
, boost::mpl::int_
< LEFT_BUTTON_UP >
, boost::mpl::int_
< LEFT_BUTTON_CLICK >
, boost::mpl::int_
< LEFT_BUTTON_DOUBLE_CLICK >
, boost::mpl::int_
< MIDDLE_BUTTON_DOWN >
, boost::mpl::int_
< MIDDLE_BUTTON_UP >
, boost::mpl::int_
< MIDDLE_BUTTON_CLICK >
, boost::mpl::int_
< MIDDLE_BUTTON_DOUBLE_CLICK >
, boost::mpl::int_
< RIGHT_BUTTON_DOWN >
, boost::mpl::int_
< RIGHT_BUTTON_UP >
, boost::mpl::int_
< RIGHT_BUTTON_CLICK >
, boost::mpl::int_
< RIGHT_BUTTON_DOUBLE_CLICK > > 
gui2::event::set_event
 Helper for catching use error of dispatcher::connect_signal. More...
 
typedef boost::mpl::set
< boost::mpl::int_
< SDL_VIDEO_RESIZE >
, boost::mpl::int_
< SDL_MOUSE_MOTION >
, boost::mpl::int_
< MOUSE_MOTION >
, boost::mpl::int_
< SDL_LEFT_BUTTON_DOWN >
, boost::mpl::int_
< SDL_LEFT_BUTTON_UP >
, boost::mpl::int_
< SDL_MIDDLE_BUTTON_DOWN >
, boost::mpl::int_
< SDL_MIDDLE_BUTTON_UP >
, boost::mpl::int_
< SDL_RIGHT_BUTTON_DOWN >
, boost::mpl::int_
< SDL_RIGHT_BUTTON_UP >
, boost::mpl::int_
< SHOW_TOOLTIP >
, boost::mpl::int_
< SHOW_HELPTIP >
, boost::mpl::int_
< SDL_WHEEL_UP >
, boost::mpl::int_
< SDL_WHEEL_DOWN >
, boost::mpl::int_
< SDL_WHEEL_LEFT >
, boost::mpl::int_
< SDL_WHEEL_RIGHT > > 
gui2::event::set_event_mouse
 Helper for catching use error of dispatcher::connect_signal. More...
 
typedef boost::mpl::set
< boost::mpl::int_
< SDL_KEY_DOWN > > 
gui2::event::set_event_keyboard
 Helper for catching use error of dispatcher::connect_signal. More...
 
typedef boost::mpl::set
< boost::mpl::int_
< SDL_TOUCH_MOTION >
, boost::mpl::int_
< SDL_TOUCH_UP >
, boost::mpl::int_
< SDL_TOUCH_DOWN > > 
gui2::event::set_event_touch
 Helper for catching use error of dispatcher::connect_signal. More...
 
typedef boost::mpl::set
< boost::mpl::int_
< NOTIFY_REMOVAL >
, boost::mpl::int_
< NOTIFY_MODIFIED >
, boost::mpl::int_
< RECEIVE_KEYBOARD_FOCUS >
, boost::mpl::int_
< LOSE_KEYBOARD_FOCUS >
, boost::mpl::int_
< NOTIFY_REMOVE_TOOLTIP >
, boost::mpl::int_
< SDL_ACTIVATE > > 
gui2::event::set_event_notification
 Helper for catching use error of dispatcher::connect_signal. More...
 
typedef boost::mpl::set
< boost::mpl::int_
< MESSAGE_SHOW_TOOLTIP >
, boost::mpl::int_
< MESSAGE_SHOW_HELPTIP >
, boost::mpl::int_
< REQUEST_PLACEMENT > > 
gui2::event::set_event_message
 Helper for catching use error of dispatcher::connect_signal. More...
 
typedef boost::mpl::set
< boost::mpl::int_
< SDL_RAW_EVENT > > 
gui2::event::set_event_raw_event
 Helper for catching use error of dispatcher::connect_signal. More...
 
typedef boost::mpl::set
< boost::mpl::int_
< SDL_TEXT_INPUT >
, boost::mpl::int_
< SDL_TEXT_EDITING > > 
gui2::event::set_event_text_input
 Helper for catching use error of dispatcher::connect_signal. More...
 

Enumerations

enum  gui2::event::ui_event {
  gui2::event::SDL_ACTIVATE, gui2::event::DRAW, gui2::event::CLOSE_WINDOW, gui2::event::SDL_VIDEO_RESIZE,
  gui2::event::SDL_MOUSE_MOTION, gui2::event::MOUSE_ENTER, gui2::event::MOUSE_MOTION, gui2::event::MOUSE_LEAVE,
  gui2::event::SDL_LEFT_BUTTON_DOWN, gui2::event::SDL_LEFT_BUTTON_UP, gui2::event::LEFT_BUTTON_DOWN, gui2::event::LEFT_BUTTON_UP,
  gui2::event::LEFT_BUTTON_CLICK, gui2::event::LEFT_BUTTON_DOUBLE_CLICK, gui2::event::SDL_MIDDLE_BUTTON_DOWN, gui2::event::SDL_MIDDLE_BUTTON_UP,
  gui2::event::MIDDLE_BUTTON_DOWN, gui2::event::MIDDLE_BUTTON_UP, gui2::event::MIDDLE_BUTTON_CLICK, gui2::event::MIDDLE_BUTTON_DOUBLE_CLICK,
  gui2::event::SDL_RIGHT_BUTTON_DOWN, gui2::event::SDL_RIGHT_BUTTON_UP, gui2::event::RIGHT_BUTTON_DOWN, gui2::event::RIGHT_BUTTON_UP,
  gui2::event::RIGHT_BUTTON_CLICK, gui2::event::RIGHT_BUTTON_DOUBLE_CLICK, gui2::event::SDL_WHEEL_LEFT, gui2::event::SDL_WHEEL_RIGHT,
  gui2::event::SDL_WHEEL_UP, gui2::event::SDL_WHEEL_DOWN, gui2::event::SDL_KEY_DOWN, gui2::event::SDL_TEXT_INPUT,
  gui2::event::SDL_TEXT_EDITING, gui2::event::NOTIFY_REMOVAL, gui2::event::NOTIFY_MODIFIED, gui2::event::REQUEST_PLACEMENT,
  gui2::event::RECEIVE_KEYBOARD_FOCUS, gui2::event::LOSE_KEYBOARD_FOCUS, gui2::event::SHOW_TOOLTIP, gui2::event::NOTIFY_REMOVE_TOOLTIP,
  gui2::event::MESSAGE_SHOW_TOOLTIP, gui2::event::SHOW_HELPTIP, gui2::event::MESSAGE_SHOW_HELPTIP, gui2::event::SDL_TOUCH_MOTION,
  gui2::event::SDL_TOUCH_UP, gui2::event::SDL_TOUCH_DOWN, gui2::event::SDL_RAW_EVENT
}
 The event send to the dispatcher. More...
 

Functions

void gui2::event::connect_dispatcher (dispatcher *dispatcher)
 Connects a dispatcher to the event handler. More...
 
void gui2::event::disconnect_dispatcher (dispatcher *dispatcher)
 Disconnects a dispatcher to the event handler. More...
 
void gui2::event::init_mouse_location ()
 Initializes the location of the mouse. More...
 
void gui2::event::capture_mouse (dispatcher *dispatcher)
 Captures the mouse. More...
 
void gui2::event::release_mouse (dispatcher *dispatcher)
 Releases a captured mouse. More...
 
void gui2::event::capture_keyboard (dispatcher *dispatcher)
 Captures the keyboard. More...
 
std::ostream & gui2::event::operator<< (std::ostream &stream, const ui_event event)
 
void gui2::remove_from_window_stack (window *window)
 Removes a entry from the open_window_stack list. More...
 
bool gui2::is_in_dialog ()
 Is a dialog open? More...
 

Macro Definition Documentation

#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS

Definition at line 20 of file handler.hpp.

#define BOOST_MPL_LIMIT_SET_SIZE   30

Definition at line 21 of file handler.hpp.