Classes | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes

gui::dialog_frame Class Reference

#include <show_dialog.hpp>

Collaboration diagram for gui::dialog_frame:
Collaboration graph
[legend]

List of all members.

Classes

struct  dimension_measurements
class  style

Public Member Functions

 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)
 ~dialog_frame ()
dimension_measurements layout (int x, int y, int w, int h)
dimension_measurements layout (SDL_Rect const &frame_area)
void set_layout (dimension_measurements &new_dim)
dimension_measurements get_layout () const
int top_padding () const
int bottom_padding () const
void draw ()
void draw_border ()
void draw_background ()
SDL_Rect draw_title (CVideo *video)

Static Public Attributes

static const int title_border_w = 10
static const int title_border_h = 5
static const style default_style
static const style message_style
static const style preview_style
static const style titlescreen_style

Private Member Functions

void clear_background ()

Private Attributes

std::string title_
CVideovideo_
const styledialog_style_
std::vector< button * > * buttons_
buttonhelp_button_
surface_restorerrestorer_
bool auto_restore_
dimension_measurements dim_
surface top_
surface bot_
surface left_
surface right_
surface top_left_
surface bot_left_
surface top_right_
surface bot_right_
surface bg_
bool have_border_

Detailed Description

Definition at line 55 of file show_dialog.hpp.


Constructor & Destructor Documentation

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 78 of file show_dialog.cpp.

gui::dialog_frame::~dialog_frame (  ) 

Definition at line 102 of file show_dialog.cpp.

References restorer_.


Member Function Documentation

int gui::dialog_frame::bottom_padding (  )  const

Definition at line 126 of file show_dialog.cpp.

References bot_, buttons_, gui::ButtonVPadding, and have_border_.

Referenced by gui::dialog::layout().

Here is the caller graph for this function:

void gui::dialog_frame::clear_background (  )  [private]

Definition at line 253 of file show_dialog.cpp.

References restorer_.

Referenced by draw_background().

Here is the caller graph for this function:

void gui::dialog_frame::draw (  ) 
void gui::dialog_frame::draw_background (  ) 
void gui::dialog_frame::draw_border (  ) 

Definition at line 211 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().

Here is the call graph for this function:

Here is the caller graph for this function:

SDL_Rect gui::dialog_frame::draw_title ( CVideo video  ) 

Definition at line 289 of file show_dialog.cpp.

References dim_, font::draw_text(), screen_area(), font::SIZE_LARGE, gui::dialog_frame::dimension_measurements::title, title_, and font::TITLE_COLOR.

Referenced by draw(), and layout().

Here is the call graph for this function:

Here is the caller graph for this function:

dimension_measurements gui::dialog_frame::get_layout (  )  const [inline]

Definition at line 84 of file show_dialog.hpp.

References dim_.

dialog_frame::dimension_measurements gui::dialog_frame::layout ( SDL_Rect const &  frame_area  ) 

Definition at line 111 of file show_dialog.cpp.

References layout().

Here is the call graph for this function:

dialog_frame::dimension_measurements gui::dialog_frame::layout ( int  x,
int  y,
int  w,
int  h 
)
void gui::dialog_frame::set_layout ( dimension_measurements new_dim  )  [inline]

Definition at line 83 of file show_dialog.hpp.

References dim_.

int gui::dialog_frame::top_padding (  )  const

Definition at line 115 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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 107 of file show_dialog.hpp.

Referenced by draw_background().

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_background().

Definition at line 109 of file show_dialog.hpp.

Referenced by bottom_padding(), draw_border(), and layout().

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_border().

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_border().

std::vector<button*>* gui::dialog_frame::buttons_ [private]

Definition at line 104 of file show_dialog.hpp.

Referenced by bottom_padding(), draw(), and layout().

Definition at line 103 of file show_dialog.hpp.

Referenced by draw_background().

Definition at line 110 of file show_dialog.hpp.

Referenced by bottom_padding(), draw_border(), layout(), and top_padding().

Definition at line 105 of file show_dialog.hpp.

Referenced by draw(), and layout().

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_border(), and layout().

Definition at line 71 of file show_dialog.hpp.

Definition at line 72 of file show_dialog.hpp.

Definition at line 106 of file show_dialog.hpp.

Referenced by clear_background(), draw_background(), and ~dialog_frame().

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_border(), and layout().

std::string gui::dialog_frame::title_ [private]

Definition at line 101 of file show_dialog.hpp.

Referenced by draw(), draw_title(), layout(), and top_padding().

const int gui::dialog_frame::title_border_h = 5 [static]

Definition at line 69 of file show_dialog.hpp.

Referenced by layout(), and top_padding().

const int gui::dialog_frame::title_border_w = 10 [static]

Definition at line 69 of file show_dialog.hpp.

Referenced by layout().

Definition at line 73 of file show_dialog.hpp.

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_border(), layout(), and top_padding().

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_border().

Definition at line 109 of file show_dialog.hpp.

Referenced by draw_border().

Definition at line 102 of file show_dialog.hpp.

Referenced by draw(), draw_background(), and draw_border().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:12 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs