#include "gui/core/event/handler.hpp"
#include "events.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 "utils/ranges.hpp"
#include <cassert>
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... | |
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... | |
Variables | |
static std::unique_ptr< class sdl_event_handler > | gui2::event::handler_ = nullptr |
static std::unique_ptr< events::event_context > | gui2::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... | |
#define GETTEXT_DOMAIN "wesnoth-lib" |
Definition at line 16 of file handler.cpp.