ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <inventorywindow.h>

Inheritance diagram for Stark::InventoryWindow:
Collaboration diagram for Stark::InventoryWindow:

List of all members.

Public Member Functions

 InventoryWindow (Gfx::Driver *gfx, Cursor *cursor, ActionMenu *actionMenu)
 ~InventoryWindow () override
void open ()
void close ()
void setSelectedInventoryItem (int16 selectedInventoryItem)
int16 getSelectedInventoryItem () const
void reset ()
 Clear the location dependent state.
void scrollDown ()
 Scroll the inventory.
void scrollUp ()

Protected Member Functions

void onMouseMove (const Common::Point &pos) override
void onClick (const Common::Point &pos) override
void onRightClick (const Common::Point &pos) override
void onGameLoop () override
void onRender () override
void checkObjectAtPos (Common::Point pos, Resources::ItemVisual **item, int16 selectedInventoryItem, int16 &singlePossibleAction)
Common::Rect getSlotRect (uint32 slot) const
Common::Rect getItemRect (uint32 slot, VisualImageXMG *image) const
bool isSlotVisible (uint32 slot) const
bool canScrollUp () const
bool canScrollDown () const
void drawScrollArrows () const

Private Attributes

Common::Rect _backgroundRect
Common::Rect _scrollUpArrowRect
Common::Rect _scrollDownArrowRect
uint32 _firstVisibleSlot
Gfx::RenderEntryArray _renderEntries
int16 _selectedInventoryItem
int32 _autoCloseTimeRemaining

Static Private Attributes

static const uint32 _visibleSlotsCount = 15

Detailed Description

Definition at line 42 of file inventorywindow.h.

Constructor & Destructor Documentation

Stark::InventoryWindow::InventoryWindow ( Gfx::Driver gfx,
Cursor cursor,
ActionMenu actionMenu 

Definition at line 47 of file inventorywindow.cpp.

Stark::InventoryWindow::~InventoryWindow (  )  [inline, override]

Definition at line 45 of file inventorywindow.h.

Member Function Documentation

bool Stark::InventoryWindow::canScrollDown (  )  const [protected]

Definition at line 278 of file inventorywindow.cpp.

bool Stark::InventoryWindow::canScrollUp (  )  const [protected]

Definition at line 282 of file inventorywindow.cpp.

void Stark::InventoryWindow::checkObjectAtPos ( Common::Point  pos,
Resources::ItemVisual **  item,
int16  selectedInventoryItem,
int16 singlePossibleAction 
) [protected]

Definition at line 152 of file inventorywindow.cpp.

void Stark::InventoryWindow::close (  ) 

Definition at line 87 of file inventorywindow.cpp.

void Stark::InventoryWindow::drawScrollArrows (  )  const [protected]

Definition at line 143 of file inventorywindow.cpp.

Common::Rect Stark::InventoryWindow::getItemRect ( uint32  slot,
VisualImageXMG image 
) const [protected]

Definition at line 117 of file inventorywindow.cpp.

int16 Stark::InventoryWindow::getSelectedInventoryItem (  )  const

Definition at line 105 of file inventorywindow.cpp.

Common::Rect Stark::InventoryWindow::getSlotRect ( uint32  slot  )  const [protected]

Definition at line 109 of file inventorywindow.cpp.

bool Stark::InventoryWindow::isSlotVisible ( uint32  slot  )  const [protected]

Definition at line 274 of file inventorywindow.cpp.

void Stark::InventoryWindow::onClick ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 226 of file inventorywindow.cpp.

void Stark::InventoryWindow::onGameLoop (  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 298 of file inventorywindow.cpp.

void Stark::InventoryWindow::onMouseMove ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 187 of file inventorywindow.cpp.

void Stark::InventoryWindow::onRender (  )  [override, protected, virtual]

Implements Stark::Window.

Definition at line 127 of file inventorywindow.cpp.

void Stark::InventoryWindow::onRightClick ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 262 of file inventorywindow.cpp.

void Stark::InventoryWindow::open (  ) 

Definition at line 75 of file inventorywindow.cpp.

void Stark::InventoryWindow::reset (  ) 

Clear the location dependent state.

Definition at line 270 of file inventorywindow.cpp.

void Stark::InventoryWindow::scrollDown (  ) 

Scroll the inventory.

Definition at line 286 of file inventorywindow.cpp.

void Stark::InventoryWindow::scrollUp (  ) 

Definition at line 292 of file inventorywindow.cpp.

void Stark::InventoryWindow::setSelectedInventoryItem ( int16  selectedInventoryItem  ) 

Definition at line 95 of file inventorywindow.cpp.

Member Data Documentation

Definition at line 76 of file inventorywindow.h.

const uint32 Stark::InventoryWindow::_visibleSlotsCount = 15 [static, private]

Definition at line 87 of file inventorywindow.h.

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

Generated on Sat Sep 12 2020 05:05:17 for ResidualVM by doxygen 1.7.1
curved edge   curved edge