The Battle for Wesnoth  1.15.0-dev
Classes | Namespaces | Enumerations | Functions
handler.hpp File Reference
#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
 

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...
 
std::vector< dispatcher * > & gui2::event::get_all_dispatchers ()
 Gets all event dispatchers in the Z order. 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...