Classes | |
class | taddon_connect |
class | tlanguage_selection |
class | tmp_method_selection |
class | tbutton |
class | tline |
Definition of a line shape. More... | |
class | trectangle |
Definition of a rectangle shape. More... | |
class | timage |
Definition of an image shape. More... | |
class | ttext |
Definition of a text shape. More... | |
class | tcanvas |
Base class for the canvas which allows drawing, a later version may implement a cache which allows the same scripts with the same input to store their output surface. More... | |
class | tcontainer_ |
A generic container base class. More... | |
class | tcontrol |
Base class for all visible items. More... | |
class | tevent_handler |
class | tformula |
Template class can hold a value or a formula calculating the value. More... | |
class | tgrid |
Base container class which needs to size children. More... | |
struct | tpoint |
struct | terror |
class | tlabel |
class | tlistbox |
class | tpanel |
Visible container to hold children. More... | |
class | tscrollbar_ |
Base class for a scroll bar. More... | |
struct | tstate_definition |
Contains the state info for a resolution. More... | |
struct | tresolution_definition_ |
Base class of a resolution, contains the common keys for a resolution. More... | |
struct | tcontrol_definition |
struct | tbutton_definition |
struct | tlabel_definition |
struct | tlistbox_definition |
struct | tpanel_definition |
struct | tspacer_definition |
struct | ttext_box_definition |
struct | ttoggle_button_definition |
struct | ttooltip_definition |
struct | tvertical_scrollbar_definition |
struct | twindow_definition |
struct | tgui_definition |
class | tspacer |
class | ttext_ |
Base class for text items will get two base decendends
| |
class | ttext_history |
Class for text input history. More... | |
class | ttext_box |
Class for a single line text area. More... | |
class | ttoggle_button |
class | ttooltip |
class | tvertical_scrollbar |
A vertical scrollbar. More... | |
class | tevent_executor |
Base class with all possible events, most widgets can ignore most of these, but they are available. More... | |
class | twidget |
Base class for all widgets. More... | |
class | tselectable_ |
Small abstract helper class. More... | |
class | twindow |
base class of top level items, the only item which needs to store the final canvase to draw on More... | |
struct | tbuilder_control |
struct | tbuilder_button |
struct | tbuilder_label |
struct | tbuilder_listbox |
struct | tbuilder_panel |
struct | tbuilder_spacer |
struct | tbuilder_text_box |
struct | tbuilder_toggle_button |
struct | tbuilder_vertical_scrollbar |
struct | tbuilder_widget |
Contains the info needed to instantiate a widget. More... | |
struct | tbuilder_grid |
class | twindow_builder |
Namespaces | |
namespace | settings |
Typedefs | |
typedef boost::intrusive_ptr < tbuilder_widget > | tbuilder_widget_ptr |
typedef boost::intrusive_ptr < const tbuilder_widget > | const_tbuilder_widget_ptr |
Enumerations | |
enum | twindow_type { ADDON_CONNECT, LANGUAGE_SELECTION, MP_METHOD_SELECTION, DUMMY } |
Functions | |
static Uint32 | hover_callback (Uint32, void *param) |
static Uint32 | popup_callback (Uint32, void *) |
bool | init () |
SDL_Rect | create_rect (const tpoint &origin, const tpoint &size) |
std::ostream & | operator<< (std::ostream &stream, const tpoint &point) |
int | decode_font_style (const std::string &style) |
Uint32 | decode_colour (const std::string &colour) |
surface | save_background (const surface &background, const SDL_Rect &rect) |
Copies a portion of a surface. | |
void | restore_background (const surface &restorer, surface &background, const SDL_Rect &rect) |
Copies one surface unto another one. | |
static tlistbox * | get_listbox (twidget *widget) |
static void | callback_select_list_item (twidget *caller) |
static void | callback_scrollbar (twidget *caller) |
static void | callback_scrollbar_button (twidget *caller) |
std::vector< std::string > | window_type_list (DUMMY) |
Vector with all known windows, these are validated on existance on startup. | |
static void | fill_window_types () |
const std::string & | get_id (const twindow_type window_type) |
void | load_settings () |
Loads the setting for the theme. | |
tresolution_definition_ * | get_control (const std::string &control_type, const std::string &definition) |
std::vector < twindow_builder::tresolution > ::const_iterator | get_window_builder (const std::string &type) |
static surface | render_text (const std::string &text, unsigned font_size) |
static unsigned | get_v_align (const std::string &v_align) |
static unsigned | get_h_align (const std::string &h_align) |
static unsigned | get_border (const std::vector< std::string > &border) |
static unsigned | read_flags (const config &cfg) |
twindow | build (CVideo &video, const std::string &type) |
Variables | |
static bool | initialized_ = false |
std::map< std::string, twindow_builder > | windows |
Map with all known windows, (the builder class builds a window). | |
std::map< std::string, tgui_definition > | guis |
Map with all known guis. | |
std::map< std::string, tgui_definition > ::const_iterator | current_gui = guis.end() |
Points to the current gui. |
typedef boost::intrusive_ptr<const tbuilder_widget> gui2::const_tbuilder_widget_ptr |
Definition at line 50 of file window_builder.hpp.
typedef boost::intrusive_ptr<tbuilder_widget> gui2::tbuilder_widget_ptr |
Definition at line 49 of file window_builder.hpp.
enum gui2::twindow_type |
ADDON_CONNECT | |
LANGUAGE_SELECTION | |
MP_METHOD_SELECTION | |
DUMMY | mp game the user wants to play. |
Definition at line 33 of file gui/widgets/settings.hpp.
Definition at line 248 of file window_builder.cpp.
References gui2::tcontainer_::add_child(), cols, get_window_builder(), lg::gui, log_scope2, gui2::twindow::recalculate_size(), rows, gui2::tcontainer_::set_col_grow_factor(), gui2::tcontainer_::set_row_grow_factor(), and gui2::tcontainer_::set_rows_cols().
Referenced by gui2::tmp_method_selection::show(), gui2::tlanguage_selection::show(), and gui2::taddon_connect::show().
static void gui2::callback_scrollbar | ( | twidget * | caller | ) | [static] |
Definition at line 64 of file listbox.cpp.
References get_listbox(), and gui2::tlistbox::scrollbar_moved().
Referenced by gui2::tlistbox::finalize_setup().
static void gui2::callback_scrollbar_button | ( | twidget * | caller | ) | [static] |
Definition at line 69 of file listbox.cpp.
References get_listbox(), and gui2::tlistbox::scrollbar_click().
Referenced by gui2::tlistbox::finalize_setup().
static void gui2::callback_select_list_item | ( | twidget * | caller | ) | [static] |
Definition at line 59 of file listbox.cpp.
References get_listbox(), and gui2::tlistbox::list_item_selected().
Referenced by gui2::tlistbox::finalize_setup(), and gui2::tlistbox::trow::init_in_grid().
SDL_Rect gui2::create_rect | ( | const tpoint & | origin, | |
const tpoint & | size | |||
) |
Definition at line 62 of file helper.cpp.
References create_rect(), gui2::tpoint::x, and gui2::tpoint::y.
Referenced by gui2::twindow::recalculate_size(), gui2::tevent_handler::set_hover(), gui2::tlistbox::set_size(), gui2::tgrid::tchild::set_size(), gui2::timage::timage(), and gui2::twindow::twindow().
Uint32 gui2::decode_colour | ( | const std::string & | colour | ) |
int gui2::decode_font_style | ( | const std::string & | style | ) |
static void gui2::fill_window_types | ( | ) | [static] |
Definition at line 81 of file gui/widgets/settings.cpp.
References ADDON_CONNECT, LANGUAGE_SELECTION, MP_METHOD_SELECTION, and window_type_list().
Referenced by load_settings().
static unsigned gui2::get_border | ( | const std::vector< std::string > & | border | ) | [static] |
Definition at line 425 of file window_builder.cpp.
References gui2::tgrid::BORDER_BOTTOM, gui2::tgrid::BORDER_LEFT, gui2::tgrid::BORDER_RIGHT, and gui2::tgrid::BORDER_TOP.
Referenced by read_flags().
tresolution_definition_ * gui2::get_control | ( | const std::string & | control_type, | |
const std::string & | definition | |||
) |
Definition at line 851 of file gui/widgets/settings.cpp.
References boost::foreach_detail_::end(), LOG_G, gui2::tcontrol_definition::resolutions, gui2::settings::screen_height, and gui2::settings::screen_width.
Referenced by gui2::tcontrol::load_config().
static unsigned gui2::get_h_align | ( | const std::string & | h_align | ) | [static] |
Definition at line 410 of file window_builder.cpp.
References ERR_G_E, gui2::tgrid::HORIZONTAL_ALIGN_CENTER, gui2::tgrid::HORIZONTAL_ALIGN_LEFT, and gui2::tgrid::HORIZONTAL_ALIGN_RIGHT.
Referenced by read_flags().
const std::string & gui2::get_id | ( | const twindow_type | window_type | ) |
Definition at line 88 of file gui/widgets/settings.cpp.
References DUMMY, and window_type_list().
Referenced by mp::connect::process_network_data(), gui2::tmp_method_selection::show(), gui2::tlanguage_selection::show(), gui2::taddon_connect::show(), hotkey::command_executor::show_menu(), and map_editor::show_menu().
static tlistbox* gui2::get_listbox | ( | twidget * | widget | ) | [static] |
Definition at line 47 of file listbox.cpp.
References gui2::twidget::parent().
Referenced by callback_scrollbar(), callback_scrollbar_button(), and callback_select_list_item().
static unsigned gui2::get_v_align | ( | const std::string & | v_align | ) | [static] |
Definition at line 394 of file window_builder.cpp.
References ERR_G_E, gui2::tgrid::VERTICAL_ALIGN_BOTTOM, gui2::tgrid::VERTICAL_ALIGN_CENTER, and gui2::tgrid::VERTICAL_ALIGN_TOP.
Referenced by read_flags().
std::vector< twindow_builder::tresolution >::const_iterator gui2::get_window_builder | ( | const std::string & | type | ) |
Definition at line 886 of file gui/widgets/settings.cpp.
References boost::foreach_detail_::end().
Referenced by build().
static Uint32 gui2::hover_callback | ( | Uint32 | , | |
void * | param | |||
) | [static] |
Definition at line 38 of file event_handler.cpp.
References data, DBG_G_E, and HOVER_EVENT.
Referenced by gui2::tevent_handler::set_hover().
bool gui2::init | ( | ) |
Definition at line 50 of file helper.cpp.
References initialized_, and load_settings().
Referenced by gui2::tmp_method_selection::show(), gui2::tlanguage_selection::show(), and gui2::taddon_connect::show().
void gui2::load_settings | ( | ) |
Loads the setting for the theme.
Definition at line 95 of file gui/widgets/settings.cpp.
References _, cfg, ERR_G_P, fill_window_types(), config::get_children(), LOG_G, preprocess_file(), read(), rect, screen_area(), gui2::settings::screen_height, gui2::settings::screen_width, stream, and VALIDATE.
Referenced by init().
std::ostream & gui2::operator<< | ( | std::ostream & | stream, | |
const tpoint & | point | |||
) |
static Uint32 gui2::popup_callback | ( | Uint32 | , | |
void * | ||||
) | [static] |
Definition at line 57 of file event_handler.cpp.
References data, DBG_G_E, and HOVER_REMOVE_POPUP_EVENT.
Referenced by gui2::tevent_handler::show_help_popup(), and gui2::tevent_handler::show_tooltip().
static unsigned gui2::read_flags | ( | const config & | cfg | ) | [static] |
Definition at line 448 of file window_builder.cpp.
References get_border(), get_h_align(), get_v_align(), gui2::tgrid::HORIZONTAL_GROW_SEND_TO_CLIENT, utils::split(), utils::string_bool(), and gui2::tgrid::VERTICAL_GROW_SEND_TO_CLIENT.
Referenced by gui2::tbuilder_grid::tbuilder_grid().
static surface gui2::render_text | ( | const std::string & | text, | |
unsigned | font_size | |||
) | [static] |
Definition at line 49 of file text_box.cpp.
References font::get_rendered_text().
Referenced by gui2::ttext_box::calculate_char_offset(), font::draw_text_line(), font::get_rendered_text(), and gui2::ttext_box::insert_char().
void gui2::restore_background | ( | const surface & | restorer, | |
surface & | background, | |||
const SDL_Rect & | rect | |||
) |
Copies one surface unto another one.
restore | The surface to copy to the background. | |
background | The surface to copy unto. | |
rect | The area to copy to on the background. |
Definition at line 147 of file helper.cpp.
References surface_lock::pixels().
Referenced by gui2::tlistbox::draw(), and gui2::tcontrol::restore_background().
Copies a portion of a surface.
Unlike get_surface_portion it copies rather then using SDL_Blit. Using SDL_Blit gives problems with transparent surfaces.
background | The surface to safe a portion from, this surface shouldn't be a RLE surface. | |
rect | The part of the surface to copy, the part of the rect should be entirely on the surface. |
Definition at line 115 of file helper.cpp.
References surface_lock::pixels().
Referenced by gui2::tlistbox::draw(), and gui2::tcontrol::save_background().
std::vector<std::string> gui2::@348::window_type_list | ( | DUMMY | ) | [static] |
Vector with all known windows, these are validated on existance on startup.
The enum twindow_type is the index of the array.
Referenced by fill_window_types(), get_id(), and gui2::tgui_definition::read().
std::map<std::string, tgui_definition>::const_iterator gui2::current_gui = guis.end() [static] |
std::map<std::string, tgui_definition> gui2::guis [static] |
bool gui2::initialized_ = false [static] |
std::map<std::string, twindow_builder> gui2::windows [static] |
Map with all known windows, (the builder class builds a window).
Definition at line 68 of file gui/widgets/settings.cpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |