The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Functions | Variables
handler.cpp File Reference
#include "gui/core/event/handler.hpp"
#include "gui/core/event/dispatcher.hpp"
#include "gui/core/timer.hpp"
#include "gui/core/log.hpp"
#include "gui/widgets/helper.hpp"
#include "gui/widgets/widget.hpp"
#include "gui/widgets/window.hpp"
#include "hotkey/hotkey_item.hpp"
#include "video.hpp"
#include "serialization/unicode_cast.hpp"
#include "sdl/userevent.hpp"
#include <cassert>
#include <boost/range/adaptor/reversed.hpp>
Include dependency graph for handler.cpp:

Go to the source code of this file.

Classes

class  gui2::event::sdl_event_handler
 This singleton class handles all events. More...
 

Namespaces

 gui2
 Generic file dialog.
 
 gui2::event
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 

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...
 

Variables

static std::unique_ptr< class
sdl_event_handler > 
gui2::event::handler_ = nullptr
 
static events::event_contextgui2::event::event_context = nullptr
 
std::vector< window * > gui2::open_window_stack {}
 Keeps track of any open windows of any type (modal, non-modal, or tooltip) in the order in which they were opened. More...
 

Macro Definition Documentation

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file handler.cpp.