gui::menu::imgsel_style Class Reference

#include <menu.hpp>

Inheritance diagram for gui::menu::imgsel_style:

Inheritance graph
[legend]
Collaboration diagram for gui::menu::imgsel_style:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 imgsel_style (const std::string &img_base, bool has_bg, int normal_rgb, int selected_rgb, int heading_rgb, double normal_alpha, double selected_alpha, double heading_alpha)
virtual ~imgsel_style ()
virtual SDL_Rect item_size (const std::string &item) const
virtual void draw_row_bg (menu &menu_ref, const size_t row_index, const SDL_Rect &rect, ROW_TYPE type)
virtual void draw_row (menu &menu_ref, const size_t row_index, const SDL_Rect &rect, ROW_TYPE type)
virtual void init ()
bool load_images ()

Protected Attributes

const std::string img_base_
std::map< std::string, surfaceimg_map_

Private Member Functions

bool load_image (const std::string &img_sub)

Private Attributes

bool has_background_
bool initialized_
bool load_failed_
int normal_rgb2_
int selected_rgb2_
int heading_rgb2_
double normal_alpha2_
double selected_alpha2_
double heading_alpha2_
bg_cache bg_cache_

Classes

struct  bg_cache


Detailed Description

Definition at line 71 of file menu.hpp.


Constructor & Destructor Documentation

gui::menu::imgsel_style::imgsel_style ( const std::string &  img_base,
bool  has_bg,
int  normal_rgb,
int  selected_rgb,
int  heading_rgb,
double  normal_alpha,
double  selected_alpha,
double  heading_alpha 
)

Definition at line 62 of file menu_style.cpp.

gui::menu::imgsel_style::~imgsel_style (  )  [virtual]

Definition at line 69 of file menu_style.cpp.


Member Function Documentation

SDL_Rect gui::menu::imgsel_style::item_size ( const std::string &  item  )  const [virtual]

Reimplemented from gui::menu::style.

Definition at line 246 of file menu_style.cpp.

References gui::menu::style::item_size(), and gui::menu::style::thickness_.

void gui::menu::imgsel_style::draw_row_bg ( menu menu_ref,
const size_t  row_index,
const SDL_Rect &  rect,
ROW_TYPE  type 
) [virtual]

void gui::menu::imgsel_style::draw_row ( menu menu_ref,
const size_t  row_index,
const SDL_Rect &  rect,
ROW_TYPE  type 
) [virtual]

virtual void gui::menu::imgsel_style::init (  )  [inline, virtual]

Reimplemented from gui::menu::style.

Definition at line 83 of file menu.hpp.

References load_images().

bool gui::menu::imgsel_style::load_images (  ) 

bool gui::menu::imgsel_style::load_image ( const std::string &  img_sub  )  [private]

Definition at line 102 of file menu_style.cpp.

References image::get_image(), img_base_, img_map_, surface::null(), and game_config::path.

Referenced by load_images().


Member Data Documentation

const std::string gui::menu::imgsel_style::img_base_ [protected]

Definition at line 87 of file menu.hpp.

Referenced by load_image().

Definition at line 88 of file menu.hpp.

Referenced by draw_row(), draw_row_bg(), load_image(), and load_images().

Definition at line 92 of file menu.hpp.

Referenced by draw_row_bg(), and load_images().

Definition at line 93 of file menu.hpp.

Referenced by load_images().

Definition at line 94 of file menu.hpp.

Referenced by draw_row(), draw_row_bg(), and load_images().

Definition at line 95 of file menu.hpp.

Referenced by load_images().

Definition at line 95 of file menu.hpp.

Referenced by load_images().

Definition at line 95 of file menu.hpp.

Referenced by load_images().

Definition at line 96 of file menu.hpp.

Referenced by load_images().

Definition at line 96 of file menu.hpp.

Referenced by load_images().

Definition at line 96 of file menu.hpp.

Referenced by load_images().

Definition at line 105 of file menu.hpp.

Referenced by draw_row_bg().


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