#include <invent.h>


Public Member Functions | |
| InvMenu (int mflags=MF_MULTISELECT) | |
| unsigned char | getkey () const |
| void | set_preselect (const std::vector< SelItem > *pre) |
| void | set_type (menu_type t) |
| void | set_title_annotator (invtitle_annotator fn) |
| void | set_title (MenuEntry *title, bool first=true) |
| void | set_title (const std::string &s) |
| void | load_items (const std::vector< const item_def * > &items, MenuEntry *(*procfn)(MenuEntry *me)=NULL) |
| void | load_inv_items (int item_selector=OSEL_ANY, int excluded_slot=-1, MenuEntry *(*procfn)(MenuEntry *me)=NULL) |
| std::vector< SelItem > | get_selitems () const |
| const menu_sort_condition * | find_menu_sort_condition () const |
| void | sort_menu (std::vector< InvEntry * > &items, const menu_sort_condition *cond) |
Static Public Member Functions | |
| static std::vector< const item_def * > | xlat_itemvect (const std::vector< item_def > &) |
Protected Member Functions | |
| bool | process_key (int key) |
| void | do_preselect (InvEntry *ie) |
| virtual bool | is_selectable (int index) const |
Protected Attributes | |
| menu_type | type |
| const std::vector< SelItem > * | pre_select |
| invtitle_annotator | title_annotate |
| InvMenu::InvMenu | ( | int | mflags = MF_MULTISELECT |
) |

| unsigned char InvMenu::getkey | ( | ) | const |
| void InvMenu::set_preselect | ( | const std::vector< SelItem > * | pre | ) |
| void InvMenu::set_type | ( | menu_type | t | ) |
| void InvMenu::set_title_annotator | ( | invtitle_annotator | fn | ) |
| void InvMenu::set_title | ( | MenuEntry * | title, | |
| bool | first = true | |||
| ) |
| void InvMenu::set_title | ( | const std::string & | s | ) |

| void InvMenu::load_items | ( | const std::vector< const item_def * > & | items, | |
| MenuEntry *(*)(MenuEntry *me) | procfn = NULL | |||
| ) |

| void InvMenu::load_inv_items | ( | int | item_selector = OSEL_ANY, |
|
| int | excluded_slot = -1, |
|||
| MenuEntry *(*)(MenuEntry *me) | procfn = NULL | |||
| ) |

| std::vector< SelItem > InvMenu::get_selitems | ( | ) | const |
| std::vector< const item_def * > InvMenu::xlat_itemvect | ( | const std::vector< item_def > & | v | ) | [static] |
| const menu_sort_condition * InvMenu::find_menu_sort_condition | ( | ) | const |
| void InvMenu::sort_menu | ( | std::vector< InvEntry * > & | items, | |
| const menu_sort_condition * | cond | |||
| ) |
| bool InvMenu::process_key | ( | int | key | ) | [protected, virtual] |
| void InvMenu::do_preselect | ( | InvEntry * | ie | ) | [protected] |
| bool InvMenu::is_selectable | ( | int | index | ) | const [protected, virtual] |
menu_type InvMenu::type [protected] |
const std::vector<SelItem>* InvMenu::pre_select [protected] |
invtitle_annotator InvMenu::title_annotate [protected] |
1.5.6