Information about an item that is visible in the menu. More...
Public Member Functions | |
visible_item (const section *_sec, int level) | |
visible_item (const topic *_t, int level) | |
gui::indented_menu_item | get_menu_item (const help_menu &parent) const |
bool | operator== (const visible_item &sec) const |
bool | operator== (const section &sec) const |
bool | operator== (const topic &t) const |
Public Attributes | |
const topic * | t |
const section * | sec |
int | level |
Indentation level, always one more than the parent section. More... | |
Information about an item that is visible in the menu.
Definition at line 53 of file help_menu.hpp.
help::help_menu::visible_item::visible_item | ( | const section * | _sec, |
int | level | ||
) |
Definition at line 178 of file help_menu.cpp.
help::help_menu::visible_item::visible_item | ( | const topic * | _t, |
int | level | ||
) |
Definition at line 181 of file help_menu.cpp.
gui::indented_menu_item help::help_menu::visible_item::get_menu_item | ( | const help_menu & | parent | ) | const |
Definition at line 184 of file help_menu.cpp.
References help::closed_section_img, help::help_menu::expanded(), game_config::images::level, help::open_section_img, t, and help::topic_img.
bool help::help_menu::visible_item::operator== | ( | const section & | sec | ) | const |
Definition at line 195 of file help_menu.cpp.
bool help::help_menu::visible_item::operator== | ( | const topic & | t | ) | const |
Definition at line 200 of file help_menu.cpp.
References t.
bool help::help_menu::visible_item::operator== | ( | const visible_item & | sec | ) | const |
Definition at line 205 of file help_menu.cpp.
int help::help_menu::visible_item::level |
Indentation level, always one more than the parent section.
Definition at line 62 of file help_menu.hpp.
const section* help::help_menu::visible_item::sec |
Definition at line 59 of file help_menu.hpp.
Referenced by operator==(), and help::help_menu::process().
const topic* help::help_menu::visible_item::t |
Definition at line 58 of file help_menu.hpp.
Referenced by operator==(), and help::help_menu::process().