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... | |
tscrollbar_container::tscrollbar_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... | |
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 60 of file helper.cpp.
References gui2::tgrid::BORDER_ALL, gui2::tgrid::BORDER_BOTTOM, gui2::tgrid::BORDER_LEFT, gui2::tgrid::BORDER_RIGHT, and gui2::tgrid::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 45 of file helper.cpp.
References ERR_GUI_E, gui2::tgrid::HORIZONTAL_ALIGN_CENTER, gui2::tgrid::HORIZONTAL_ALIGN_LEFT, and gui2::tgrid::HORIZONTAL_ALIGN_RIGHT.
Referenced by read_flags().
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 131 of file helper.cpp.
References ERR_GUI_E, and gui2::twindow::get_retval_by_id().
Referenced by gui2::implementation::tbuilder_button::build(), gui2::implementation::tbuilder_toggle_button::build(), gui2::implementation::tbuilder_combobox::build(), and gui2::implementation::tbuilder_toggle_panel::build().
tscrollbar_container::tscrollbar_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 114 of file helper.cpp.
References gui2::tscrollbar_container::always_invisible, gui2::tscrollbar_container::always_visible, gui2::tscrollbar_container::auto_visible, gui2::tscrollbar_container::auto_visible_first_run, and ERR_GUI_E.
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 30 of file helper.cpp.
References ERR_GUI_E, gui2::tgrid::VERTICAL_ALIGN_BOTTOM, gui2::tgrid::VERTICAL_ALIGN_CENTER, and gui2::tgrid::VERTICAL_ALIGN_TOP.
Referenced by read_flags().
unsigned gui2::implementation::read_flags | ( | const config & | cfg | ) |
Returns the placement/resize flags.
cfg | The config to look for flags for. |
Definition at line 80 of file helper.cpp.
References ERR_GUI_P, get_border(), get_h_align(), get_v_align(), gui2::tgrid::HORIZONTAL_GROW_SEND_TO_CLIENT, utils::split(), and gui2::tgrid::VERTICAL_GROW_SEND_TO_CLIENT.
Referenced by gui2::tbuilder_grid::tbuilder_grid().