#include <menu.hpp>
Public Member Functions | |
style () | |
virtual | ~style () |
virtual void | init () |
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) |
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 | |
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_ |
gui::menu::style::style | ( | ) |
Definition at line 37 of file menu_style.cpp.
|
virtual |
Definition at line 48 of file menu_style.cpp.
|
virtual |
Reimplemented in gui::menu::imgsel_style.
Definition at line 879 of file menu.cpp.
References gui::menu::draw_row(), gui::menu::HEADING_ROW, and thickness_.
Referenced by gui::menu::draw(), mp::gamebrowser::draw_contents(), gui::menu::draw_contents(), and gui::menu::imgsel_style::draw_row().
|
virtual |
Reimplemented in gui::menu::imgsel_style.
Definition at line 844 of file menu.cpp.
References gui::widget::bg_restore(), sdl::draw_solid_tinted_rectangle(), sdl::fill_rect(), CVideo::getSurface(), gui::menu::HEADING_ROW, gui::menu::NORMAL_ROW, gui::menu::SELECTED_ROW, and gui::widget::video().
Referenced by gui::menu::imgsel_style::draw_row_bg().
size_t gui::menu::style::get_cell_padding | ( | ) | const |
Definition at line 61 of file menu_style.cpp.
Referenced by gui::menu::column_widths_item().
size_t gui::menu::style::get_font_size | ( | ) | const |
Definition at line 60 of file menu_style.cpp.
References font_size_.
Referenced by gui::menu::draw_row(), and item_size().
surface gui::menu::style::get_item_image | ( | const image::locator & | i_locator | ) | const |
Definition at line 92 of file menu_style.cpp.
References image::get_image(), surface::null(), scale_surface(), and surf.
Referenced by gui::menu::draw_row(), and item_size().
size_t gui::menu::style::get_thickness | ( | ) | const |
Definition at line 62 of file menu_style.cpp.
References thickness_.
Referenced by gui::menu::draw_row(), help::help_menu::process(), and mp::gamebrowser::row_height().
|
inlinevirtual |
Reimplemented in gui::menu::imgsel_style.
Definition at line 39 of file menu.hpp.
Referenced by gui::menu::menu().
|
virtual |
Reimplemented in gui::menu::imgsel_style.
Definition at line 804 of file menu.cpp.
References font::draw_text(), gui::font_size, get_font_size(), get_item_image(), IMAGE_PREFIX, IMG_TEXT_SEPARATOR, font::NORMAL_COLOR, utils::REMOVE_EMPTY, and utils::split().
Referenced by gui::menu::column_widths_item(), gui::menu::get_item_height_internal(), gui::menu::imgsel_style::item_size(), and help::help_menu::process().
Definition at line 64 of file menu_style.cpp.
Referenced by dialogs::recruit_dialog().
|
protected |
Definition at line 57 of file menu.hpp.
Referenced by gui::menu::imgsel_style::item_size().