ScummVM API documentation
Sherlock::Tattoo::WidgetInventory Class Reference
Inheritance diagram for Sherlock::Tattoo::WidgetInventory:
Sherlock::Tattoo::WidgetBase

Public Member Functions

 WidgetInventory (SherlockEngine *vm)
 
void load (int mode)
 
void drawInventory ()
 
void close ()
 
void handleEvents () override
 
void banishWindow () override
 
void erase () override
 
void draw () override
 
- Public Member Functions inherited from Sherlock::Tattoo::WidgetBase
 WidgetBase (SherlockEngine *vm)
 
bool active () const
 
virtual void erase ()
 
virtual void draw ()
 
void checkTabbingKeys (int numOptions)
 
virtual void summonWindow ()
 
virtual void banishWindow ()
 
virtual void handleEvents ()
 

Public Attributes

int _invMode
 
Common::String _action
 
Common::String _verb
 

Additional Inherited Members

- Protected Member Functions inherited from Sherlock::Tattoo::WidgetBase
Common::String splitLines (const Common::String &str, Common::StringArray &lines, int maxWidth, uint maxLines)
 
void restrictToScreen ()
 
void makeInfoArea (Surface &s)
 
void makeInfoArea ()
 
void drawDialogRect (const Common::Rect &r, bool raised=true)
 
virtual Common::Rect getScrollBarBounds () const
 
void drawScrollBar (int index, int pageSize, int count)
 
void handleScrollbarEvents (int index, int pageSize, int count)
 
void handleScrolling (int &scrollIndex, int pageSize, int max)
 
void close ()
 
virtual void drawBackground ()
 
- Protected Attributes inherited from Sherlock::Tattoo::WidgetBase
SherlockEngine * _vm
 
Common::Rect _bounds
 
Common::Rect _oldBounds
 
Surface _surface
 
bool _outsideMenu
 
bool _scroll
 

Member Function Documentation

◆ load()

void Sherlock::Tattoo::WidgetInventory::load ( int  mode)

Load the inventory window

◆ drawInventory()

void Sherlock::Tattoo::WidgetInventory::drawInventory ( )

Draw the inventory on the surface

◆ close()

void Sherlock::Tattoo::WidgetInventory::close ( )

Close the window

◆ handleEvents()

void Sherlock::Tattoo::WidgetInventory::handleEvents ( )
overridevirtual

Handle events whilst the widget is on-screen

Reimplemented from Sherlock::Tattoo::WidgetBase.

◆ banishWindow()

void Sherlock::Tattoo::WidgetInventory::banishWindow ( )
overridevirtual

Close a currently active menu

Reimplemented from Sherlock::Tattoo::WidgetBase.

◆ erase()

void Sherlock::Tattoo::WidgetInventory::erase ( )
overridevirtual

Erase any previous display of the widget on the screen

Reimplemented from Sherlock::Tattoo::WidgetBase.

◆ draw()

void Sherlock::Tattoo::WidgetInventory::draw ( )
overridevirtual

Update the display of the widget on the screen

Reimplemented from Sherlock::Tattoo::WidgetBase.


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