ScummVM API documentation
cInventorySlot Class Reference
Inheritance diagram for cInventorySlot:
iInventoryWidget

Public Member Functions

 cInventorySlot (cInit *apInit, const cVector2f &avPos, bool abEquip, int alIndex)
 
void OnDraw ()
 
void OnMouseOver ()
 
void OnMouseDown (eMButton aButton)
 
void OnMouseUp (eMButton aButton)
 
void OnDoubleClick (eMButton aButton)
 
void OnUpdate (float afTimeStep)
 
void OnShortcutDown (int alNum)
 
cInventoryItem * GetItem ()
 
void SetItem (cInventoryItem *apItem)
 
void SetIndex (int alX)
 
void SetEquip (bool abX)
 
void SetEquipIndex (int alX)
 
int GetEquipIndex ()
 
- Public Member Functions inherited from iInventoryWidget
 iInventoryWidget (cInit *apInit, const cRect2f &aRect, cGfxObject *apGfxObject, float afZ)
 
virtual void Draw ()
 
virtual void OnDraw ()
 
virtual void OnMouseOver ()
 
virtual void OnMouseDown (eMButton aButton)
 
virtual void OnMouseUp (eMButton aButton)
 
virtual void OnDoubleClick (eMButton aButton)
 
virtual void OnUpdate (float afTimeStep)
 
virtual void OnShortcutDown (int alNum)
 
cRect2f & GetRect ()
 
cGfxObject * GetGfxObject ()
 

Additional Inherited Members

- Protected Attributes inherited from iInventoryWidget
cInit * mpInit
 
cGraphicsDrawer * mpDrawer
 
cGfxObject * mpGfxObject
 
cRect2f mRect
 
float mfZ
 

Member Function Documentation

◆ OnDraw()

void cInventorySlot::OnDraw ( )
virtual

Reimplemented from iInventoryWidget.

◆ OnMouseOver()

void cInventorySlot::OnMouseOver ( )
virtual

Reimplemented from iInventoryWidget.

◆ OnMouseDown()

void cInventorySlot::OnMouseDown ( eMButton  aButton)
virtual

Reimplemented from iInventoryWidget.

◆ OnMouseUp()

void cInventorySlot::OnMouseUp ( eMButton  aButton)
virtual

Reimplemented from iInventoryWidget.

◆ OnDoubleClick()

void cInventorySlot::OnDoubleClick ( eMButton  aButton)
virtual

Reimplemented from iInventoryWidget.

◆ OnUpdate()

void cInventorySlot::OnUpdate ( float  afTimeStep)
virtual

Reimplemented from iInventoryWidget.

◆ OnShortcutDown()

void cInventorySlot::OnShortcutDown ( int  alNum)
virtual

Reimplemented from iInventoryWidget.


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