InvMenu Class Reference

#include <invent.h>

Inheritance diagram for InvMenu:

Inheritance graph
[legend]
Collaboration diagram for InvMenu:

Collaboration graph
[legend]

List of all members.

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< SelItemget_selitems () const
const menu_sort_conditionfind_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


Constructor & Destructor Documentation

InvMenu::InvMenu ( int  mflags = MF_MULTISELECT  ) 

Here is the call graph for this function:


Member Function Documentation

unsigned char InvMenu::getkey (  )  const

Reimplemented from Menu.

Reimplemented in StashMenu.

Here is the call graph for this function:

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 
)

Reimplemented from Menu.

Here is the call graph for this function:

void InvMenu::set_title ( const std::string s  ) 

Here is the call graph for this function:

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

Here is the call graph for this function:

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

Here is the call graph for this function:

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]

Reimplemented from Menu.

Reimplemented in StashMenu.

Here is the call graph for this function:

void InvMenu::do_preselect ( InvEntry ie  )  [protected]

bool InvMenu::is_selectable ( int  index  )  const [protected, virtual]

Reimplemented from Menu.

Here is the call graph for this function:


Member Data Documentation

menu_type InvMenu::type [protected]

const std::vector<SelItem>* InvMenu::pre_select [protected]


The documentation for this class was generated from the following files:

Generated on Thu Jan 13 13:34:25 2011 by  doxygen 1.5.6