Contains the info needed to instantiate a widget. More...
#include <window_builder.hpp>
Public Types | |
typedef std::map< std::string, boost::intrusive_ptr < tbuilder_widget > > | treplacements |
The replacements type is used to define replacement types. More... | |
Public Member Functions | |
tbuilder_widget (const config &cfg) | |
virtual | ~tbuilder_widget () |
virtual twidget * | build () const =0 |
virtual twidget * | build (const treplacements &replacements) const =0 |
Public Member Functions inherited from reference_counted_object | |
reference_counted_object () | |
reference_counted_object (const reference_counted_object &) | |
reference_counted_object & | operator= (const reference_counted_object &) |
virtual | ~reference_counted_object () |
void | add_ref () const |
void | dec_ref () const |
int | refcount () const |
Public Attributes | |
std::string | id |
Parameters for the widget. More... | |
std::string | linked_group |
int | debug_border_mode |
unsigned | debug_border_color |
Additional Inherited Members | |
Protected Member Functions inherited from reference_counted_object | |
void | turn_reference_counting_off () const |
Contains the info needed to instantiate a widget.
Definition at line 42 of file window_builder.hpp.
typedef std::map<std::string, boost::intrusive_ptr<tbuilder_widget> > gui2::tbuilder_widget::treplacements |
The replacements type is used to define replacement types.
Certain widgets need to build a part of themselves upon instantiation but at the time of the definition it's not yet known what exactly. By using and `[instance]' widget this decision can be postponed until instantiation.
Definition at line 54 of file window_builder.hpp.
|
explicit |
Definition at line 138 of file window_builder.cpp.
|
inlinevirtual |
Definition at line 58 of file window_builder.hpp.
|
pure virtual |
Implemented in gui2::implementation::tbuilder_horizontal_listbox, gui2::implementation::tbuilder_listbox, gui2::implementation::tbuilder_text_box, gui2::implementation::tbuilder_matrix, gui2::implementation::tbuilder_slider, gui2::implementation::tbuilder_toggle_panel, gui2::implementation::tbuilder_pane, gui2::implementation::tbuilder_multi_page, gui2::implementation::tbuilder_tree_view, gui2::implementation::tbuilder_combobox, gui2::implementation::tbuilder_toggle_button, gui2::implementation::tbuilder_label, gui2::implementation::tbuilder_button, gui2::implementation::tbuilder_repeating_button, gui2::tbuilder_grid, gui2::implementation::tbuilder_stacked_widget, gui2::implementation::tbuilder_minimap, gui2::implementation::tbuilder_scroll_label, gui2::implementation::tbuilder_unit_preview_pane, gui2::implementation::tbuilder_image, gui2::implementation::tbuilder_drawing, gui2::implementation::tbuilder_viewport, gui2::implementation::tbuilder_spacer, gui2::implementation::tbuilder_panel, gui2::implementation::tbuilder_password_box, gui2::implementation::tbuilder_horizontal_scrollbar, gui2::implementation::tbuilder_progress_bar, gui2::implementation::tbuilder_vertical_scrollbar, gui2::implementation::tbuilder_window, gui2::implementation::tbuilder_scrollbar_panel, and gui2::implementation::tbuilder_instance.
Referenced by gui2::implementation::tbuilder_control::build().
|
pure virtual |
unsigned gui2::tbuilder_widget::debug_border_color |
Definition at line 72 of file window_builder.hpp.
Referenced by gui2::implementation::tbuilder_control::init_control().
int gui2::tbuilder_widget::debug_border_mode |
Definition at line 71 of file window_builder.hpp.
Referenced by gui2::implementation::tbuilder_control::init_control().
std::string gui2::tbuilder_widget::id |
Parameters for the widget.
Definition at line 67 of file window_builder.hpp.
std::string gui2::tbuilder_widget::linked_group |
Definition at line 68 of file window_builder.hpp.
Referenced by gui2::tbuilder_grid::build(), and gui2::implementation::tbuilder_control::init_control().