16 #define GETTEXT_DOMAIN "wesnoth-lib" 
   30 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
 
   31 #define LOG_HEADER LOG_SCOPE_HEADER + ':' 
   46     connect_signal<event::MOUSE_ENTER>(std::bind(
 
   48     connect_signal<event::MOUSE_LEAVE>(std::bind(
 
   51     connect_signal<event::LEFT_BUTTON_DOWN>(std::bind(
 
   53     connect_signal<event::LEFT_BUTTON_UP>(std::bind(
 
   67     connect_signal<event::LEFT_BUTTON_DOWN>(
signal);
 
   73     disconnect_signal<event::LEFT_BUTTON_DOWN>(
signal);
 
  139                                       [
this, 
window](
unsigned int) {
 
  175     load_resolutions<resolution>(
cfg);
 
  194 builder_repeating_button::builder_repeating_button(
const config& 
cfg)
 
  201     auto widget = std::make_unique<repeating_button>(*
this);
 
  203     DBG_GUI_G << 
"Window builder: placed repeating button '" << 
id 
  204               << 
"' with definition '" << 
definition << 
"'.";
 
A config object defines a single node in a WML file, with access to child nodes.
 
bool fire(const ui_event event, widget &target)
Fires an event which has no extra parameters.
 
base class of top level items, the only item which needs to store the final canvases to draw on.
 
void mouse_capture(const bool capture=true)
 
Define the common log macros for the gui toolkit.
 
ui_event
The event sent to the dispatcher.
 
dispatcher_callback<> signal
Used for events in event_category::general.
 
std::string sound_button_click
 
std::chrono::milliseconds repeat_button_repeat_time
How much a repeating button need to be held before the action repeats.
 
std::size_t add_timer(const std::chrono::milliseconds &interval, const std::function< void(std::size_t id)> &callback, const bool repeat)
Adds a new timer.
 
bool remove_timer(const std::size_t id)
Removes a timer.
 
Contains the implementation details for lexical_cast and shouldn't be used directly.
 
void play_UI_sound(const std::string &files)
 
This file contains the settings handling of the widget library.
 
std::vector< state_definition > state
 
Contains the gui2 timer routines.
 
std::string missing_mandatory_wml_tag(const std::string §ion, const std::string &tag)
Returns a standard message for a missing wml child (tag).
 
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...
 
#define VALIDATE_WML_CHILD(cfg, key, message)