ScummVM API documentation
Stark::InventoryWindow Class Reference
Inheritance diagram for Stark::InventoryWindow:
Stark::Window

Public Member Functions

 InventoryWindow (Gfx::Driver *gfx, Cursor *cursor, ActionMenu *actionMenu)
 
void open ()
 
void close ()
 
void setSelectedInventoryItem (int16 selectedInventoryItem)
 
int16 getSelectedInventoryItem () const
 
void reset ()
 
void scrollDown ()
 
void scrollUp ()
 
- Public Member Functions inherited from Stark::Window
 Window (Gfx::Driver *gfx, Cursor *cursor)
 
void handleMouseMove ()
 
void handleClick ()
 
void handleRightClick ()
 
void handleDoubleClick ()
 
void handleGameLoop ()
 
void render ()
 
bool isMouseInside () const
 
bool isVisible () const
 
Graphics::SurfacegetScreenshot () const
 

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
 
- Protected Member Functions inherited from Stark::Window
virtual void onDoubleClick (const Common::Point &pos)
 
Common::Point getRelativeMousePosition () const
 

Additional Inherited Members

- Protected Attributes inherited from Stark::Window
Gfx::Driver_gfx
 
Cursor_cursor
 
Common::Rect _position
 
bool _visible
 

Member Function Documentation

◆ reset()

void Stark::InventoryWindow::reset ( )

Clear the location dependent state

◆ scrollDown()

void Stark::InventoryWindow::scrollDown ( )

Scroll the inventory


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