Typedefs | |
using | scrollbar_mode = scrollbar_container::scrollbar_mode |
Functions | |
unsigned | get_v_align (const std::string &v_align) |
Returns the vertical alignment. More... | |
unsigned | get_h_align (const std::string &h_align) |
Returns the horizontal alignment. More... | |
unsigned | get_border (const std::vector< std::string > &borders) |
Returns the border flags. More... | |
unsigned | read_flags (const config &cfg) |
Returns the placement/resize flags. More... | |
scrollbar_mode | get_scrollbar_mode (const std::string &scrollbar_mode) |
Returns the scrollbar mode flags. More... | |
int | get_retval (const std::string &retval_id, const int retval, const std::string &id) |
Returns the return value for a widget. More... | |
static widget::visibility | parse_visibility (const std::string &str) |
static std::vector< widget_data > | parse_list_data (const config &data, const unsigned int req_cols) |
Variables | |
static std::map< std::string, scrollbar_mode > | scrollbar_mode_map |
Definition at line 31 of file helper.hpp.
unsigned gui2::implementation::get_border | ( | const std::vector< std::string > & | borders | ) |
Returns the border flags.
borders | The string representing the border flags. |
Definition at line 68 of file helper.cpp.
References border, gui2::grid::BORDER_ALL, gui2::grid::BORDER_BOTTOM, gui2::grid::BORDER_LEFT, gui2::grid::BORDER_RIGHT, and gui2::grid::BORDER_TOP.
Referenced by read_flags().
unsigned gui2::implementation::get_h_align | ( | const std::string & | h_align | ) |
Returns the horizontal alignment.
h_align | The string representing the alignment. |
Definition at line 53 of file helper.cpp.
References ERR_GUI_E, gui2::grid::HORIZONTAL_ALIGN_CENTER, gui2::grid::HORIZONTAL_ALIGN_LEFT, and gui2::grid::HORIZONTAL_ALIGN_RIGHT.
Referenced by read_flags(), and gui2::widget::set_horizontal_alignment().
int gui2::implementation::get_retval | ( | const std::string & | retval_id, |
const int | retval, | ||
const std::string & | id | ||
) |
Returns the return value for a widget.
If there's a valid retval_id that will be returned. Else if there's a retval that's returned. Else it falls back to the id.
Definition at line 137 of file helper.cpp.
References ERR_GUI_E, and gui2::window::get_retval_by_id().
Referenced by gui2::implementation::builder_button::build(), gui2::implementation::builder_toggle_button::build(), and gui2::implementation::builder_toggle_panel::build().
scrollbar_mode gui2::implementation::get_scrollbar_mode | ( | const std::string & | scrollbar_mode | ) |
Returns the scrollbar mode flags.
scrollbar_mode | The string representing the scrollbar_mode. |
Definition at line 121 of file helper.cpp.
References gui2::scrollbar_container::AUTO_VISIBLE_FIRST_RUN, ERR_GUI_E, and scrollbar_mode_map.
unsigned gui2::implementation::get_v_align | ( | const std::string & | v_align | ) |
Returns the vertical alignment.
v_align | The string representing the alignment. |
Definition at line 38 of file helper.cpp.
References ERR_GUI_E, gui2::grid::VERTICAL_ALIGN_BOTTOM, gui2::grid::VERTICAL_ALIGN_CENTER, and gui2::grid::VERTICAL_ALIGN_TOP.
Referenced by read_flags(), and gui2::widget::set_vertical_alignment().
|
static |
Definition at line 716 of file listbox.cpp.
References _(), c, data, missing_mandatory_wml_key(), VALIDATE, and w.
Referenced by gui2::implementation::builder_grid_listbox::builder_grid_listbox(), gui2::implementation::builder_horizontal_listbox::builder_horizontal_listbox(), and gui2::implementation::builder_listbox::builder_listbox().
|
static |
Definition at line 434 of file addon_list.cpp.
References FAIL, gui2::widget::hidden, gui2::widget::invisible, and gui2::widget::visible.
Referenced by gui2::implementation::builder_addon_list::builder_addon_list().
unsigned gui2::implementation::read_flags | ( | const config & | cfg | ) |
Returns the placement/resize flags.
cfg | The config to look for flags for. |
Definition at line 88 of file helper.cpp.
References ERR_GUI_P, get_border(), get_h_align(), get_v_align(), gui2::grid::HORIZONTAL_GROW_SEND_TO_CLIENT, utils::split(), and gui2::grid::VERTICAL_GROW_SEND_TO_CLIENT.
Referenced by gui2::builder_grid::builder_grid().
|
static |
Definition at line 31 of file helper.cpp.
Referenced by get_scrollbar_mode().