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

Public Member Functions

 WidgetInventoryTooltip (SherlockEngine *vm, WidgetInventory *owner)
 
void setText (const Common::String &str)
 
void handleEvents () override
 
- Public Member Functions inherited from Sherlock::Tattoo::WidgetTooltipBase
 WidgetTooltipBase (SherlockEngine *vm)
 
void erase () override
 
void draw () override
 
- Public Member Functions inherited from Sherlock::Tattoo::WidgetBase
 WidgetBase (SherlockEngine *vm)
 
bool active () const
 
void checkTabbingKeys (int numOptions)
 
virtual void summonWindow ()
 
virtual void banishWindow ()
 

Protected Member Functions

void drawBackground () override
 
- 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from Sherlock::Tattoo::WidgetBase
SherlockEngine_vm
 
Common::Rect _bounds
 
Common::Rect _oldBounds
 
Surface _surface
 
bool _outsideMenu
 
bool _scroll
 

Member Function Documentation

◆ drawBackground()

void Sherlock::Tattoo::WidgetInventoryTooltip::drawBackground ( )
inlineoverrideprotectedvirtual

Overriden from base class, since tooltips have a completely transparent background

Reimplemented from Sherlock::Tattoo::WidgetBase.

◆ setText()

void Sherlock::Tattoo::WidgetInventoryTooltip::setText ( const Common::String str)

Set the text for the tooltip

◆ handleEvents()

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

Handle updating the tooltip state

Reimplemented from Sherlock::Tattoo::WidgetBase.


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