The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Static Public Member Functions | List of all members
gui2::tmessage_implementation Struct Reference

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

Static Public Member Functions

static void init_button (twindow &window, tmessage::tbutton_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 39 of file message.cpp.

Member Function Documentation

static void gui2::tmessage_implementation::init_button ( twindow window,
tmessage::tbutton_status button_status,
const std::string id 
)
inlinestatic

Initialiazes a button.

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

Definition at line 48 of file message.cpp.

References gui2::tmessage::tbutton_status::button, gui2::tmessage::tbutton_status::caption, gui2::id, gui2::twindow::NONE, gui2::tmessage::tbutton_status::retval, gui2::tcontrol::set_label(), gui2::tbutton::set_retval(), gui2::twidget::set_visible(), and gui2::tmessage::tbutton_status::visible.

Referenced by gui2::tmessage::pre_show().


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