ScummVM API documentation
Sherlock::Tattoo::WidgetTalk Class Reference

#include <widget_talk.h>

Inheritance diagram for Sherlock::Tattoo::WidgetTalk:
Sherlock::Tattoo::WidgetBase

Public Member Functions

 WidgetTalk (SherlockEngine *vm)
 
void load ()
 
void refresh ()
 
void handleEvents () 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 ()
 

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
 

Detailed Description

Handles displaying a dialog with conversation options the player can select from

Member Function Documentation

◆ load()

void Sherlock::Tattoo::WidgetTalk::load ( )

Figures out how many lines the available talk lines will take up, and opens a text window of appropriate size

◆ refresh()

void Sherlock::Tattoo::WidgetTalk::refresh ( )

Refresh the talk display

◆ handleEvents()

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

Handle event processing

Reimplemented from Sherlock::Tattoo::WidgetBase.


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