gui::dialog_frame Class Reference

#include <show_dialog.hpp>

Collaboration diagram for gui::dialog_frame:

Collaboration graph
[legend]

List of all members.

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_

Classes

struct  dimension_measurements
class  style


Detailed Description

Definition at line 60 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 93 of file show_dialog.cpp.

References bot_, have_border_, left_, right_, and top_.

gui::dialog_frame::~dialog_frame (  ) 

Definition at line 110 of file show_dialog.cpp.

References restorer_.


Member Function Documentation

dialog_frame::dimension_measurements gui::dialog_frame::layout ( int  x,
int  y,
int  w,
int  h 
)

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

Definition at line 119 of file show_dialog.cpp.

References layout().

void gui::dialog_frame::set_layout ( dimension_measurements new_dim  )  [inline]

Definition at line 88 of file show_dialog.hpp.

References dim_.

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

Definition at line 89 of file show_dialog.hpp.

References dim_.

int gui::dialog_frame::top_padding (  )  const

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 (  ) 

void gui::dialog_frame::draw_border (  ) 

void gui::dialog_frame::draw_background (  ) 

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

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

Definition at line 261 of file show_dialog.cpp.

References restorer_.

Referenced by draw_background().


Member Data Documentation

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

Definition at line 74 of file show_dialog.hpp.

Referenced by layout().

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

Definition at line 74 of file show_dialog.hpp.

Referenced by layout(), and top_padding().

Definition at line 76 of file show_dialog.hpp.

Definition at line 77 of file show_dialog.hpp.

Referenced by dialogs::campaign_preview_pane::draw_contents().

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().

Definition at line 107 of file show_dialog.hpp.

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

Definition at line 108 of file show_dialog.hpp.

Referenced by draw_background().

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

Definition at line 109 of file show_dialog.hpp.

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

Definition at line 110 of file show_dialog.hpp.

Referenced by draw(), and layout().

Definition at line 111 of file show_dialog.hpp.

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

Definition at line 112 of file show_dialog.hpp.

Referenced by draw_background().

Definition at line 114 of file show_dialog.hpp.

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

Definition at line 114 of file show_dialog.hpp.

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

Definition at line 114 of file show_dialog.hpp.

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

Definition at line 114 of file show_dialog.hpp.

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

Definition at line 114 of file show_dialog.hpp.

Referenced by draw_border().

Definition at line 114 of file show_dialog.hpp.

Referenced by draw_border().

Definition at line 114 of file show_dialog.hpp.

Referenced by draw_border().

Definition at line 114 of file show_dialog.hpp.

Referenced by draw_border().

Definition at line 114 of file show_dialog.hpp.

Referenced by draw_background().

Definition at line 115 of file show_dialog.hpp.

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


The documentation for this class was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs