|
OpenMW
|
The base class that all item models should derive from. More...
#include <itemmodel.hpp>
Public Types | |
| typedef int | ModelIndex |
Public Member Functions | |
| ItemModel () | |
| virtual | ~ItemModel () |
| virtual ItemStack | getItem (ModelIndex index)=0 |
| throws for invalid index | |
| virtual size_t | getItemCount ()=0 |
| virtual ModelIndex | getIndex (ItemStack item)=0 |
| virtual void | update ()=0 |
| virtual void | copyItem (const ItemStack &item, size_t count)=0 |
| virtual void | removeItem (const ItemStack &item, size_t count)=0 |
Private Member Functions | |
| ItemModel (const ItemModel &) | |
| ItemModel & | operator= (const ItemModel &) |
The base class that all item models should derive from.
| typedef int MWGui::ItemModel::ModelIndex |
| virtual MWGui::ItemModel::~ItemModel | ( | ) | [inline, virtual] |
| MWGui::ItemModel::ItemModel | ( | const ItemModel & | ) | [private] |
| virtual void MWGui::ItemModel::copyItem | ( | const ItemStack & | item, |
| size_t | count | ||
| ) | [pure virtual] |
Implemented in MWGui::ProxyItemModel, MWGui::ContainerItemModel, MWGui::InventoryItemModel, and MWGui::CompanionItemModel.
| virtual ModelIndex MWGui::ItemModel::getIndex | ( | ItemStack | item | ) | [pure virtual] |
Implemented in MWGui::ProxyItemModel, MWGui::ContainerItemModel, and MWGui::InventoryItemModel.
| virtual ItemStack MWGui::ItemModel::getItem | ( | ModelIndex | index | ) | [pure virtual] |
throws for invalid index
Implemented in MWGui::ContainerItemModel, MWGui::SortFilterItemModel, MWGui::TradeItemModel, MWGui::InventoryItemModel, and MWGui::PickpocketItemModel.
| virtual size_t MWGui::ItemModel::getItemCount | ( | ) | [pure virtual] |
| virtual void MWGui::ItemModel::removeItem | ( | const ItemStack & | item, |
| size_t | count | ||
| ) | [pure virtual] |
| virtual void MWGui::ItemModel::update | ( | ) | [pure virtual] |
1.7.6.1