The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Public Attributes | List of all members
gui2::implementation::builder_styled_widget Struct Reference

#include <styled_widget.hpp>

Inheritance diagram for gui2::implementation::builder_styled_widget:

Public Member Functions

 builder_styled_widget (const config &cfg)
 
virtual std::unique_ptr< widgetbuild (const replacements_map &replacements) const override
 
virtual std::unique_ptr< widgetbuild () const=0
 
virtual std::unique_ptr< widgetbuild (const replacements_map &replacements) const=0
 
- Public Member Functions inherited from gui2::builder_widget
 builder_widget (const config &cfg)
 
virtual ~builder_widget ()
 
virtual std::unique_ptr< widgetbuild () const =0
 

Public Attributes

std::string definition
 Parameters for the styled_widget. More...
 
t_string label_string
 
t_string tooltip
 
t_string help
 
bool use_tooltip_on_label_overflow
 
bool use_markup
 
- Public Attributes inherited from gui2::builder_widget
std::string id
 Parameters for the widget. More...
 
std::string linked_group
 
widget::debug_border debug_border_mode
 
color_t debug_border_color
 

Additional Inherited Members

- Public Types inherited from gui2::builder_widget
using replacements_map = std::map< std::string, std::shared_ptr< builder_widget > >
 The replacements type is used to define replacement types. More...
 
using optional_replacements = utils::optional_reference< const replacements_map >
 

Detailed Description

Definition at line 533 of file styled_widget.hpp.

Constructor & Destructor Documentation

◆ builder_styled_widget()

gui2::implementation::builder_styled_widget::builder_styled_widget ( const config cfg)

Definition at line 591 of file styled_widget.cpp.

References _(), DBG_GUI_P, definition, label_string, and VALIDATE_WITH_DEV_MESSAGE.

Member Function Documentation

◆ build() [1/3]

virtual std::unique_ptr<widget> gui2::builder_widget::build

Referenced by build().

◆ build() [2/3]

std::unique_ptr< widget > gui2::implementation::builder_styled_widget::build ( const replacements_map replacements) const
overridevirtual

Implements gui2::builder_widget.

Definition at line 615 of file styled_widget.cpp.

References build().

◆ build() [3/3]

virtual std::unique_ptr<widget> gui2::builder_widget::build

Member Data Documentation

◆ definition

std::string gui2::implementation::builder_styled_widget::definition

Parameters for the styled_widget.

Definition at line 543 of file styled_widget.hpp.

Referenced by gui2::implementation::builder_addon_list::build(), gui2::implementation::builder_button::build(), gui2::implementation::builder_chatbox::build(), gui2::implementation::builder_combobox::build(), gui2::implementation::builder_drawing::build(), gui2::implementation::builder_horizontal_scrollbar::build(), gui2::implementation::builder_image::build(), gui2::implementation::builder_label::build(), gui2::implementation::builder_listbox::build(), gui2::implementation::builder_horizontal_listbox::build(), gui2::implementation::builder_grid_listbox::build(), gui2::implementation::builder_menu_button::build(), gui2::implementation::builder_minimap::build(), gui2::implementation::builder_multi_page::build(), gui2::implementation::builder_multiline_text::build(), gui2::implementation::builder_multimenu_button::build(), gui2::implementation::builder_panel::build(), gui2::implementation::builder_password_box::build(), gui2::implementation::builder_progress_bar::build(), gui2::implementation::builder_repeating_button::build(), gui2::implementation::builder_rich_label::build(), gui2::implementation::builder_scroll_label::build(), gui2::implementation::builder_scroll_text::build(), gui2::implementation::builder_scrollbar_panel::build(), gui2::implementation::builder_size_lock::build(), gui2::implementation::builder_slider::build(), gui2::implementation::builder_spacer::build(), gui2::implementation::builder_spinner::build(), gui2::implementation::builder_stacked_widget::build(), gui2::implementation::builder_tab_container::build(), gui2::implementation::builder_text_box::build(), gui2::implementation::builder_toggle_button::build(), gui2::implementation::builder_toggle_panel::build(), gui2::implementation::builder_tree_view::build(), gui2::implementation::builder_unit_preview_pane::build(), gui2::implementation::builder_vertical_scrollbar::build(), builder_styled_widget(), and gui2::text_box_base::text_box_base().

◆ help

t_string gui2::implementation::builder_styled_widget::help

Definition at line 546 of file styled_widget.hpp.

◆ label_string

t_string gui2::implementation::builder_styled_widget::label_string

◆ tooltip

t_string gui2::implementation::builder_styled_widget::tooltip

Definition at line 545 of file styled_widget.hpp.

◆ use_markup

bool gui2::implementation::builder_styled_widget::use_markup

Definition at line 548 of file styled_widget.hpp.

◆ use_tooltip_on_label_overflow

bool gui2::implementation::builder_styled_widget::use_tooltip_on_label_overflow

Definition at line 547 of file styled_widget.hpp.


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