#include <menu.h>
Public Member Functions | |
MenuEntry (const std::string &txt=std::string(), MenuEntryLevel lev=MEL_ITEM, int qty=0, int hotk=0) | |
virtual | ~MenuEntry () |
bool | operator< (const MenuEntry &rhs) const |
void | add_hotkey (int key) |
bool | is_hotkey (int key) const |
bool | is_primary_hotkey (int key) const |
virtual std::string | get_text (const bool unused=false) const |
virtual int | highlight_colour () const |
virtual bool | selected () const |
virtual void | select (int qty=-1) |
virtual std::string | get_filter_text () const |
Public Attributes | |
std::string | tag |
std::string | text |
int | quantity |
int | selected_qty |
int | colour |
std::vector< int > | hotkeys |
MenuEntryLevel | level |
void * | data |
MenuEntry::MenuEntry | ( | const std::string & | txt = std::string() , |
|
MenuEntryLevel | lev = MEL_ITEM , |
|||
int | qty = 0 , |
|||
int | hotk = 0 | |||
) | [inline] |
virtual MenuEntry::~MenuEntry | ( | ) | [inline, virtual] |
bool MenuEntry::operator< | ( | const MenuEntry & | rhs | ) | const [inline] |
void MenuEntry::add_hotkey | ( | int | key | ) | [inline] |
bool MenuEntry::is_hotkey | ( | int | key | ) | const [inline] |
bool MenuEntry::is_primary_hotkey | ( | int | key | ) | const [inline] |
virtual std::string MenuEntry::get_text | ( | const bool | unused = false |
) | const [inline, virtual] |
Reimplemented in InvTitle, InvEntry, DiscEntry, and ShopItemEntry.
virtual int MenuEntry::highlight_colour | ( | ) | const [inline, virtual] |
virtual bool MenuEntry::selected | ( | ) | const [inline, virtual] |
virtual void MenuEntry::select | ( | int | qty = -1 |
) | [inline, virtual] |
virtual std::string MenuEntry::get_filter_text | ( | ) | const [inline, virtual] |
std::vector<int> MenuEntry::hotkeys |
void* MenuEntry::data |