The Battle for Wesnoth  1.19.0+dev
Static Public Member Functions | List of all members
gui2::dialogs::message_implementation Struct Reference

Helper to implement private functions without modifying the header. More...

Static Public Member Functions

static void init_button (window &window, message::button_status &button_status, const std::string &id)
 Initialiazes a button. More...

Detailed Description

Helper to implement private functions without modifying the header.

The class is a helper to avoid recompilation and only has static functions.

Definition at line 41 of file message.cpp.

Member Function Documentation

◆ init_button()

static void gui2::dialogs::message_implementation::init_button ( window window,
message::button_status button_status,
const std::string &  id 

Initialiazes a button.

windowThe window that contains the button.
button_statusThe button status to modify.
idThe id of the button.

Definition at line 50 of file message.cpp.

References gui2::dialogs::message::button_status::caption, gui2::NONE, gui2::dialogs::message::button_status::ptr, gui2::dialogs::message::button_status::retval, gui2::styled_widget::set_label(), gui2::button::set_retval(), gui2::widget::set_visible(), and gui2::dialogs::message::button_status::visible.

Referenced by gui2::dialogs::message::pre_show().

The documentation for this struct was generated from the following file: