The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
gui2::implementation::builder_slider Struct Reference

#include <slider.hpp>

Inheritance diagram for gui2::implementation::builder_slider:
Inheritance graph

Public Member Functions

 builder_slider (const config &cfg)
 
widgetbuild () const
 
- Public Member Functions inherited from gui2::implementation::builder_styled_widget
 builder_styled_widget (const config &cfg)
 
virtual widgetbuild (const replacements_map &replacements) const override
 
- Public Member Functions inherited from gui2::builder_widget
 builder_widget (const config &cfg)
 
virtual ~builder_widget ()
 

Private Attributes

unsigned best_slider_length_
 
int minimum_value_
 
int maximum_value_
 
unsigned step_size_
 
int value_
 
t_string minimum_value_label_
 
t_string maximum_value_label_
 
std::vector< t_stringvalue_labels_
 

Additional Inherited Members

- Public Types inherited from gui2::builder_widget
typedef std::map< std::string,
std::shared_ptr
< builder_widget > > 
replacements_map
 The replacements type is used to define replacement types. More...
 
- Public Attributes inherited from gui2::implementation::builder_styled_widget
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
 
int debug_border_mode
 
color_t debug_border_color
 

Detailed Description

Definition at line 239 of file slider.hpp.

Constructor & Destructor Documentation

gui2::implementation::builder_slider::builder_slider ( const config cfg)
explicit

Definition at line 453 of file slider.cpp.

References config::child(), config::child_range(), and value_labels_.

Member Function Documentation

widget * gui2::implementation::builder_slider::build ( ) const
virtual

Member Data Documentation

unsigned gui2::implementation::builder_slider::best_slider_length_
private

Definition at line 248 of file slider.hpp.

Referenced by build().

int gui2::implementation::builder_slider::maximum_value_
private

Definition at line 250 of file slider.hpp.

Referenced by build().

t_string gui2::implementation::builder_slider::maximum_value_label_
private

Definition at line 255 of file slider.hpp.

Referenced by build().

int gui2::implementation::builder_slider::minimum_value_
private

Definition at line 249 of file slider.hpp.

Referenced by build().

t_string gui2::implementation::builder_slider::minimum_value_label_
private

Definition at line 254 of file slider.hpp.

Referenced by build().

unsigned gui2::implementation::builder_slider::step_size_
private

Definition at line 251 of file slider.hpp.

Referenced by build().

int gui2::implementation::builder_slider::value_
private

Definition at line 252 of file slider.hpp.

Referenced by build().

std::vector<t_string> gui2::implementation::builder_slider::value_labels_
private

Definition at line 258 of file slider.hpp.

Referenced by build(), and builder_slider().


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