OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::ItemWidget Class Reference

A widget that shows an icon for an MWWorld::Ptr. More...

#include <itemwidget.hpp>

Inheritance diagram for MWGui::ItemWidget:
Collaboration diagram for MWGui::ItemWidget:

Public Types

enum  ItemState { None, Equip, Barter, Magic }
 

Public Member Functions

 ItemWidget ()
 
void setCount (int count)
 Set count to be displayed in a textbox over the item. More...
 
void setItem (const MWWorld::Ptr &ptr, ItemState state=None)
 ptr may be empty More...
 
void setIcon (const std::string &icon)
 
void setIcon (const MWWorld::Ptr &ptr)
 
void setFrame (const std::string &frame, const MyGUI::IntCoord &coord)
 

Static Public Member Functions

static void registerComponents ()
 Register needed components with MyGUI's factory manager. More...
 

Private Member Functions

virtual void initialiseOverride ()
 

Private Attributes

MyGUI::ImageBox * mItem
 
MyGUI::ImageBox * mItemShadow
 
MyGUI::ImageBox * mFrame
 
MyGUI::TextBox * mText
 

Detailed Description

A widget that shows an icon for an MWWorld::Ptr.

Member Enumeration Documentation

Enumerator
None 
Equip 
Barter 
Magic 

Constructor & Destructor Documentation

MWGui::ItemWidget::ItemWidget ( )

Member Function Documentation

void MWGui::ItemWidget::initialiseOverride ( )
privatevirtual
void MWGui::ItemWidget::registerComponents ( )
static

Register needed components with MyGUI's factory manager.

Here is the caller graph for this function:

void MWGui::ItemWidget::setCount ( int  count)

Set count to be displayed in a textbox over the item.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::ItemWidget::setFrame ( const std::string &  frame,
const MyGUI::IntCoord &  coord 
)

Here is the caller graph for this function:

void MWGui::ItemWidget::setIcon ( const std::string &  icon)

Here is the caller graph for this function:

void MWGui::ItemWidget::setIcon ( const MWWorld::Ptr ptr)

Here is the call graph for this function:

void MWGui::ItemWidget::setItem ( const MWWorld::Ptr ptr,
ItemState  state = None 
)

ptr may be empty

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

MyGUI::ImageBox* MWGui::ItemWidget::mFrame
private
MyGUI::ImageBox* MWGui::ItemWidget::mItem
private
MyGUI::ImageBox* MWGui::ItemWidget::mItemShadow
private
MyGUI::TextBox* MWGui::ItemWidget::mText
private

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