#include <menu.hpp>


Classes | |
| struct | bg_cache |
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, surface > | img_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_ |
Definition at line 66 of file menu.hpp.
| 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 48 of file menu_style.cpp.
| gui::menu::imgsel_style::~imgsel_style | ( | ) | [virtual] |
Definition at line 55 of file menu_style.cpp.
| void gui::menu::imgsel_style::draw_row | ( | menu & | menu_ref, | |
| const size_t | row_index, | |||
| const SDL_Rect & | rect, | |||
| ROW_TYPE | type | |||
| ) | [virtual] |
Reimplemented from gui::menu::style.
Definition at line 160 of file menu_style.cpp.
References CVideo::blit_surface(), img_map_, load_failed_, gui::menu::SELECTED_ROW, gui::menu::style::thickness_, and gui::widget::video().

| void gui::menu::imgsel_style::draw_row_bg | ( | menu & | menu_ref, | |
| const size_t | row_index, | |||
| const SDL_Rect & | rect, | |||
| ROW_TYPE | type | |||
| ) | [virtual] |
Reimplemented from gui::menu::style.
Definition at line 141 of file menu_style.cpp.
References bg_cache_, CVideo::blit_surface(), has_background_, gui::menu::imgsel_style::bg_cache::height, img_map_, load_failed_, scale_surface(), gui::menu::SELECTED_ROW, gui::menu::imgsel_style::bg_cache::surf, gui::widget::video(), and gui::menu::imgsel_style::bg_cache::width.

| virtual void gui::menu::imgsel_style::init | ( | ) | [inline, virtual] |
Reimplemented from gui::menu::style.
Definition at line 78 of file menu.hpp.
References load_images().

| SDL_Rect gui::menu::imgsel_style::item_size | ( | const std::string & | item | ) | const [virtual] |
Reimplemented from gui::menu::style.
Definition at line 232 of file menu_style.cpp.
References gui::menu::style::thickness_.
| bool gui::menu::imgsel_style::load_image | ( | const std::string & | img_sub | ) | [private] |
Definition at line 88 of file menu_style.cpp.
References image::get_image(), img_base_, img_map_, surface::null(), and game_config::path.
Referenced by load_images().


| bool gui::menu::imgsel_style::load_images | ( | ) |
Definition at line 96 of file menu_style.cpp.
References h, has_background_, heading_alpha2_, gui::menu::style::heading_alpha_, heading_rgb2_, gui::menu::style::heading_rgb_, img_map_, initialized_, load_failed_, load_image(), normal_alpha2_, gui::menu::style::normal_alpha_, normal_rgb2_, gui::menu::style::normal_rgb_, selected_alpha2_, gui::menu::style::selected_alpha_, selected_rgb2_, gui::menu::style::selected_rgb_, gui::menu::style::thickness_, and w.
Referenced by init().


bg_cache gui::menu::imgsel_style::bg_cache_ [private] |
Definition at line 100 of file menu.hpp.
Referenced by draw_row_bg().
bool gui::menu::imgsel_style::has_background_ [private] |
Definition at line 87 of file menu.hpp.
Referenced by draw_row_bg(), and load_images().
double gui::menu::imgsel_style::heading_alpha2_ [private] |
Definition at line 91 of file menu.hpp.
Referenced by load_images().
int gui::menu::imgsel_style::heading_rgb2_ [private] |
Definition at line 90 of file menu.hpp.
Referenced by load_images().
const std::string gui::menu::imgsel_style::img_base_ [protected] |
Definition at line 82 of file menu.hpp.
Referenced by load_image().
std::map<std::string,surface> gui::menu::imgsel_style::img_map_ [protected] |
Definition at line 83 of file menu.hpp.
Referenced by draw_row(), draw_row_bg(), load_image(), and load_images().
bool gui::menu::imgsel_style::initialized_ [private] |
Definition at line 88 of file menu.hpp.
Referenced by load_images().
bool gui::menu::imgsel_style::load_failed_ [private] |
Definition at line 89 of file menu.hpp.
Referenced by draw_row(), draw_row_bg(), and load_images().
double gui::menu::imgsel_style::normal_alpha2_ [private] |
Definition at line 91 of file menu.hpp.
Referenced by load_images().
int gui::menu::imgsel_style::normal_rgb2_ [private] |
Definition at line 90 of file menu.hpp.
Referenced by load_images().
double gui::menu::imgsel_style::selected_alpha2_ [private] |
Definition at line 91 of file menu.hpp.
Referenced by load_images().
int gui::menu::imgsel_style::selected_rgb2_ [private] |
Definition at line 90 of file menu.hpp.
Referenced by load_images().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:24 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |