#include <show_dialog.hpp>
Definition at line 60 of file show_dialog.hpp.
gui::dialog_frame::dialog_frame | ( | CVideo & | video, | |
const std::string & | title = "" , |
|||
const style & | dialog_style = default_style , |
|||
bool | auto_restore = true , |
|||
std::vector< button * > * | buttons = NULL , |
|||
button * | help_button = NULL | |||
) |
Definition at line 93 of file show_dialog.cpp.
References bot_, have_border_, left_, right_, and top_.
gui::dialog_frame::~dialog_frame | ( | ) |
dialog_frame::dimension_measurements gui::dialog_frame::layout | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) |
Definition at line 147 of file show_dialog.cpp.
References b, bot_, gui::dialog_frame::dimension_measurements::button_row, gui::ButtonHPadding, buttons_, gui::ButtonVPadding, dim_, draw_title(), gui::dialog_frame::dimension_measurements::exterior, have_border_, help_button_, gui::dialog_frame::dimension_measurements::interior, left_, right_, screen_area(), gui::dialog_frame::dimension_measurements::title, title_, title_border_h, title_border_w, top_, and gui::widget::width().
Referenced by dialogs::campaign_preview_pane::draw_contents(), layout(), gui::dialog::set_layout(), and default_map_generator::user_config().
dialog_frame::dimension_measurements gui::dialog_frame::layout | ( | SDL_Rect const & | frame_area | ) |
void gui::dialog_frame::set_layout | ( | dimension_measurements & | new_dim | ) | [inline] |
dimension_measurements gui::dialog_frame::get_layout | ( | ) | const [inline] |
int gui::dialog_frame::top_padding | ( | ) | const |
Definition at line 123 of file show_dialog.cpp.
References font::get_max_height(), have_border_, font::SIZE_LARGE, title_, title_border_h, and top_.
Referenced by gui::dialog::layout().
int gui::dialog_frame::bottom_padding | ( | ) | const |
Definition at line 134 of file show_dialog.cpp.
References b, bot_, buttons_, gui::ButtonVPadding, and have_border_.
Referenced by gui::dialog::layout().
void gui::dialog_frame::draw | ( | ) |
Definition at line 305 of file show_dialog.cpp.
References b, gui::dialog_frame::dimension_measurements::button_row, gui::ButtonHPadding, buttons_, dim_, draw_background(), draw_border(), draw_title(), help_button_, gui::dialog_frame::dimension_measurements::interior, gui::widget::set_location(), title_, and video_.
Referenced by gui::dialog::draw_frame(), and default_map_generator::user_config().
void gui::dialog_frame::draw_border | ( | ) |
Definition at line 219 of file show_dialog.cpp.
References CVideo::blit_surface(), bot_, bot_left_, bot_right_, dim_, gui::dialog_frame::dimension_measurements::exterior, have_border_, gui::dialog_frame::dimension_measurements::interior, left_, right_, scale_surface(), top_, top_left_, top_right_, update_rect(), and video_.
Referenced by draw(), and dialogs::campaign_preview_pane::draw_contents().
void gui::dialog_frame::draw_background | ( | ) |
Definition at line 267 of file show_dialog.cpp.
References auto_restore_, bg_, gui::dialog_frame::style::blur_radius, blur_surface(), clear_background(), dialog_style_, dim_, ERR_DP, gui::dialog_frame::dimension_measurements::exterior, get_surface_portion(), CVideo::getSurface(), gui::dialog_frame::dimension_measurements::interior, minimum(), gui::dialog_frame::style::panel, restorer_, and video_.
Referenced by draw(), and dialogs::campaign_preview_pane::draw_contents().
SDL_Rect gui::dialog_frame::draw_title | ( | CVideo * | video | ) |
Definition at line 297 of file show_dialog.cpp.
References dim_, font::draw_text(), rect, screen_area(), font::SIZE_LARGE, gui::dialog_frame::dimension_measurements::title, title_, and font::TITLE_COLOUR.
void gui::dialog_frame::clear_background | ( | ) | [private] |
Definition at line 261 of file show_dialog.cpp.
References restorer_.
Referenced by draw_background().
const int gui::dialog_frame::title_border_w = 10 [static] |
const int gui::dialog_frame::title_border_h = 5 [static] |
const dialog_frame::style gui::dialog_frame::default_style [static] |
Definition at line 75 of file show_dialog.hpp.
Referenced by dialogs::network_connect_dialog(), dialogs::network_data_dialog(), map_editor::preferences_dialog(), help::show_help(), preferences::show_hotkeys_dialog(), and default_map_generator::user_config().
const dialog_frame::style gui::dialog_frame::message_style [static] |
Definition at line 76 of file show_dialog.hpp.
const dialog_frame::style gui::dialog_frame::preview_style [static] |
Definition at line 77 of file show_dialog.hpp.
Referenced by dialogs::campaign_preview_pane::draw_contents().
const dialog_frame::style gui::dialog_frame::titlescreen_style [static] |
Definition at line 78 of file show_dialog.hpp.
Referenced by about::show_about(), and gui::show_title().
std::string gui::dialog_frame::title_ [private] |
Definition at line 106 of file show_dialog.hpp.
Referenced by draw(), draw_title(), layout(), and top_padding().
CVideo& gui::dialog_frame::video_ [private] |
Definition at line 107 of file show_dialog.hpp.
Referenced by draw(), draw_background(), and draw_border().
const style& gui::dialog_frame::dialog_style_ [private] |
std::vector<button*>* gui::dialog_frame::buttons_ [private] |
Definition at line 109 of file show_dialog.hpp.
Referenced by bottom_padding(), draw(), and layout().
button* gui::dialog_frame::help_button_ [private] |
surface_restorer* gui::dialog_frame::restorer_ [private] |
Definition at line 111 of file show_dialog.hpp.
Referenced by clear_background(), draw_background(), and ~dialog_frame().
bool gui::dialog_frame::auto_restore_ [private] |
Definition at line 113 of file show_dialog.hpp.
Referenced by draw(), draw_background(), draw_border(), draw_title(), get_layout(), layout(), and set_layout().
surface gui::dialog_frame::top_ [private] |
Definition at line 114 of file show_dialog.hpp.
Referenced by dialog_frame(), draw_border(), layout(), and top_padding().
surface gui::dialog_frame::bot_ [private] |
Definition at line 114 of file show_dialog.hpp.
Referenced by bottom_padding(), dialog_frame(), draw_border(), and layout().
surface gui::dialog_frame::left_ [private] |
Definition at line 114 of file show_dialog.hpp.
Referenced by dialog_frame(), draw_border(), and layout().
surface gui::dialog_frame::right_ [private] |
Definition at line 114 of file show_dialog.hpp.
Referenced by dialog_frame(), draw_border(), and layout().
surface gui::dialog_frame::top_left_ [private] |
surface gui::dialog_frame::bot_left_ [private] |
surface gui::dialog_frame::top_right_ [private] |
surface gui::dialog_frame::bot_right_ [private] |
surface gui::dialog_frame::bg_ [private] |
bool gui::dialog_frame::have_border_ [private] |
Definition at line 115 of file show_dialog.hpp.
Referenced by bottom_padding(), dialog_frame(), draw_border(), layout(), and top_padding().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |