ScummVM API documentation
Crab::pyrodactyl::item::ItemMenu Class Reference
Inheritance diagram for Crab::pyrodactyl::item::ItemMenu:
Crab::pyrodactyl::ui::Menu< ItemSlot >

Public Member Functions

int hoverIndex ()
 
void draw (pyrodactyl::ui::ItemDesc &itemInfo)
 
void init (const ItemSlot &ref, const Vector2i &inc, const uint &rows, const uint &cols, const bool &keyboard)
 
void handleEvents (const Common::Event &event, const int &xOffset=0, const int &yOffset=0)
 
bool swap (ItemMenu &target, int index)
 
bool equip (Item &item)
 
bool del (const Common::String &id)
 
bool has (const Common::String &container, const Common::String &id)
 
void saveState (rapidxml::xml_document<> &doc, rapidxml::xml_node< char > *root)
 
void loadState (rapidxml::xml_node< char > *node)
 
- Public Member Functions inherited from Crab::pyrodactyl::ui::Menu< ItemSlot >
void reset ()
 
void setUI ()
 
void load (rapidxml::xml_node< char > *node)
 
int handleEvents (const Common::Event &event, const int &xOffset=0, const int &yOffset=0)
 
void draw (const int &XOffset=0, const int &YOffset=0)
 
void useKeyboard (const bool &val)
 
void clear ()
 
int hoverIndex ()
 
void assignPaths ()
 

Protected Attributes

int _previewIndex
 
int _selectIndex
 
bool _update
 
- Protected Attributes inherited from Crab::pyrodactyl::ui::Menu< ItemSlot >
int _hoverIndex
 
Common::Array< uint > _path
 
bool _useKeyboard
 
enum Crab::pyrodactyl::ui::Menu::InputDevice _latestInput
 
enum Crab::pyrodactyl::ui::Menu::PathType _pathType
 

Additional Inherited Members

- Public Attributes inherited from Crab::pyrodactyl::ui::Menu< ItemSlot >
Common::Array< ItemSlot > _element
 
- Protected Types inherited from Crab::pyrodactyl::ui::Menu< ItemSlot >
enum  InputDevice
 
enum  PathType
 
- Protected Member Functions inherited from Crab::pyrodactyl::ui::Menu< ItemSlot >
void next ()
 
void prev ()
 
int handleKeyboard (const Common::Event &event)
 

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