OpenMW
Public Member Functions | Protected Attributes | Private Attributes
MWGui::InventoryItemModel Class Reference

#include <inventoryitemmodel.hpp>

List of all members.

Public Member Functions

 InventoryItemModel (const MWWorld::Ptr &actor)
virtual ItemStack getItem (ModelIndex index)
 throws for invalid index
virtual ModelIndex getIndex (ItemStack item)
virtual size_t getItemCount ()
virtual void copyItem (const ItemStack &item, size_t count)
virtual void removeItem (const ItemStack &item, size_t count)
virtual void update ()

Protected Attributes

MWWorld::Ptr mActor

Private Attributes

std::vector< ItemStackmItems

Constructor & Destructor Documentation


Member Function Documentation

void MWGui::InventoryItemModel::copyItem ( const ItemStack item,
size_t  count 
) [virtual]

Implements MWGui::ItemModel.

Reimplemented in MWGui::CompanionItemModel.

Implements MWGui::ItemModel.

throws for invalid index

Implements MWGui::ItemModel.

Implements MWGui::ItemModel.

void MWGui::InventoryItemModel::removeItem ( const ItemStack item,
size_t  count 
) [virtual]

Implements MWGui::ItemModel.

Reimplemented in MWGui::CompanionItemModel.

Implements MWGui::ItemModel.


Member Data Documentation


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