The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
handler.cpp File Reference
#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 <SDL3/SDL_events.h>
#include <cassert>
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

namespace  gui2
 Generic file dialog.
 
namespace  gui2::event
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 

Functions

void gui2::event::connect_dispatcher (dispatcher *dispatcher)
 Connects a dispatcher to the event handler.
 
void gui2::event::disconnect_dispatcher (dispatcher *dispatcher)
 Disconnects a dispatcher to the event handler.
 
std::vector< dispatcher * > & gui2::event::get_all_dispatchers ()
 Gets all event dispatchers in the Z order.
 
void gui2::event::init_mouse_location ()
 Initializes the location of the mouse.
 
void gui2::event::capture_mouse (dispatcher *dispatcher)
 Captures the mouse.
 
void gui2::event::release_mouse (dispatcher *dispatcher)
 Releases a captured mouse.
 
void gui2::event::capture_keyboard (dispatcher *dispatcher)
 Captures the keyboard.
 
std::ostream & gui2::event::operator<< (std::ostream &stream, const ui_event event)
 
bool gui2::is_in_dialog ()
 Is a dialog open?
 

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
 

Macro Definition Documentation

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file handler.cpp.