#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 () |
Public Member Functions inherited from gui::menu::style | |
style () | |
virtual | ~style () |
void | scale_images (int max_width, int max_height) |
surface | get_item_image (const image::locator &i_locator) const |
size_t | get_font_size () const |
size_t | get_cell_padding () const |
size_t | get_thickness () const |
Protected Attributes | |
const std::string | img_base_ |
std::map< std::string, surface > | img_map_ |
Protected Attributes inherited from gui::menu::style | |
size_t | font_size_ |
size_t | cell_padding_ |
size_t | thickness_ |
int | normal_rgb_ |
int | selected_rgb_ |
int | heading_rgb_ |
double | normal_alpha_ |
double | selected_alpha_ |
double | heading_alpha_ |
int | max_img_w_ |
int | max_img_h_ |
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_ |
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 50 of file menu_style.cpp.
|
virtual |
Definition at line 57 of file menu_style.cpp.
|
virtual |
Reimplemented from gui::menu::style.
Definition at line 207 of file menu_style.cpp.
References CVideo::blit_surface(), gui::menu::style::draw_row(), GPU_SetClip(), GPU_UnsetClip(), gui::menu::SELECTED_ROW, thickness_, and gui::widget::video().
|
virtual |
Reimplemented from gui::menu::style.
Definition at line 180 of file menu_style.cpp.
References CVideo::blit_surface(), gui::menu::style::draw_row_bg(), scale_surface(), gui::menu::SELECTED_ROW, and gui::widget::video().
|
inlinevirtual |
Reimplemented from gui::menu::style.
Definition at line 81 of file menu.hpp.
References load_images().
|
virtual |
Reimplemented from gui::menu::style.
Definition at line 347 of file menu_style.cpp.
References gui::menu::style::item_size(), and gui::menu::style::thickness_.
|
private |
Definition at line 113 of file menu_style.cpp.
References image::get_image(), and surface::null().
bool gui::menu::imgsel_style::load_images | ( | ) |
Definition at line 128 of file menu_style.cpp.
References gui::widget::height(), initialized_, thickness_, and gui::widget::width().
Referenced by init().
|
protected |
|
protected |