ItemPopup Class Reference

#include <itempopup.h>

Inheritance diagram for ItemPopup:

Popup Container

List of all members.


Detailed Description

A popup that displays information about an item.

Definition at line 35 of file itempopup.h.


Public Member Functions

 ItemPopup ()
 Constructor.
 ~ItemPopup ()
 Destructor.
void setItem (const ItemInfo &item)
 Sets the info to be displayed given a particular item.
void view (int x, int y)
 Sets the location to display the item popup.

Static Private Member Functions

static gcn::Color getColor (ItemType type)

Private Attributes

gcn::Label * mItemName
TextBoxmItemDesc
TextBoxmItemEffect
TextBoxmItemWeight
ItemType mItemType

Constructor & Destructor Documentation

ItemPopup::ItemPopup (  ) 

Constructor.

Initializes the item popup.

Definition at line 39 of file itempopup.cpp.

ItemPopup::~ItemPopup (  ) 

Destructor.

Cleans up the item popup on deletion.

Definition at line 72 of file itempopup.cpp.


Member Function Documentation

void ItemPopup::setItem ( const ItemInfo item  ) 

Sets the info to be displayed given a particular item.

Definition at line 76 of file itempopup.cpp.

void ItemPopup::view ( int  x,
int  y 
)

Sets the location to display the item popup.

Definition at line 164 of file itempopup.cpp.

gcn::Color ItemPopup::getColor ( ItemType  type  )  [static, private]

Definition at line 129 of file itempopup.cpp.


Member Data Documentation

gcn::Label* ItemPopup::mItemName [private]

Definition at line 59 of file itempopup.h.

Definition at line 60 of file itempopup.h.

Definition at line 61 of file itempopup.h.

Definition at line 62 of file itempopup.h.

Definition at line 63 of file itempopup.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5