17 #define GETTEXT_DOMAIN "wesnoth-lib"
29 #define LOG_SCOPE_HEADER get_control_type() + " [" + id() + "] " + __func__
30 #define LOG_HEADER LOG_SCOPE_HEADER + ':'
187 DBG_GUI_G <<
"Window builder: placed password box '" <<
id
188 <<
"' with definition '" <<
definition <<
"'.\n";
Define the common log macros for the gui toolkit.
void set_selection_length(const int selection_length)
void handle_key_delete(SDLMod modifier, bool &handled)
Delete key pressed.
GLuint GLuint GLsizei GLenum type
virtual void paste_selection(const bool mouse)
Pastes the current selection.
std::string get_value() const
size_t get_selection_start() const
virtual void set_value(const std::string &text)
The set_value is virtual for the tpassword_box class.
virtual void update_canvas() override
See tcontrol::update_canvas.
A class inherited from ttext_box that displays its input as stars.
void init_control(tcontrol *control) const
std::string definition
Parameters for the control.
void delete_char(const bool before_cursor)
Deletes the character.
virtual void insert_char(const utf8::string &unicode)
Inserts a character at the cursor.
void handle_key_backspace(SDLMod modifier, bool &handled)
Backspace key pressed.
virtual void set_value(const std::string &text)
Inherited from ttext_.
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
size_t size(const utf8::string &str)
Length in characters of a UTF-8 string.
size_t get_selection_length() const
void delete_selection()
Inherited from ttext_.
void insert_char(const utf8::string &unicode)
Inserts a character at the cursor.
void set_selection_start(const size_t selection_start)
void delete_char(const bool before_cursor)
Inherited from ttext_.
tbuilder_password_box(const config &cfg)
const std::string & text() const
A config object defines a single node in a WML file, with access to child nodes.
void paste_selection(const bool mouse)
Pastes the current selection.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.