#include <dialogs.h>
Public Member Functions | |
InfoDialog (ScummEngine *scumm, const U32String &message) | |
InfoDialog (ScummEngine *scumm, int res) | |
void | setInfoText (const U32String &message) |
void | handleMouseDown (int x, int y, int button, int clickCount) override |
void | handleKeyDown (Common::KeyState state) override |
void | reflowLayout () override |
const char * | getPlainEngineString (int stringno, bool forceHardcodedString=false) |
Public Member Functions inherited from Scumm::ScummDialog | |
ScummDialog (int x, int y, int w, int h) | |
ScummDialog (Common::String name) | |
Public Member Functions inherited from GUI::Dialog | |
Dialog (int x, int y, int w, int h, bool scale=false) | |
Dialog (const Common::String &name) | |
virtual int | runModal () |
bool | isVisible () const override |
bool | isMouseUpdatedOnFocus () const |
void | releaseFocus () override |
void | setFocusWidget (Widget *widget) |
Widget * | getFocusWidget () |
bool | isDragging () const |
void | setTickleWidget (Widget *widget) |
void | unSetTickleWidget () |
Widget * | getTickleWidget () |
void | reflowLayout () override |
virtual void | lostFocus () |
virtual void | receivedFocus (int x=-1, int y=-1) |
virtual void | open () |
virtual void | close () |
Public Member Functions inherited from GUI::GuiObject | |
GuiObject (int x, int y, int w, int h, bool scale=false) | |
GuiObject (const Common::String &name) | |
virtual void | setTextDrawableArea (const Common::Rect &r) |
virtual void | resize (int x, int y, int w, int h, bool scale=true) |
virtual Widget * | addChild (Widget *newChild) |
virtual int16 | getRelX () const |
virtual int16 | getRelY () const |
virtual int16 | getAbsX () const |
virtual int16 | getAbsY () const |
virtual int16 | getChildX () const |
virtual int16 | getChildY () const |
virtual uint16 | getWidth () const |
virtual uint16 | getHeight () const |
virtual bool | isPointIn (int x, int y) |
virtual Common::Rect | getClipRect () const |
virtual void | handleTooltipUpdate (int x, int y) |
Protected Member Functions | |
const U32String | queryResString (int stringno) |
const ResString & | getStaticResString (Common::Language lang, int stringno) |
Protected Member Functions inherited from GUI::Dialog | |
void | markWidgetsAsDirty () |
virtual void | drawDialog (DrawLayer layerToDraw) |
void | drawWidgets () |
virtual void | handleTickle () |
virtual void | handleMouseUp (int x, int y, int button, int clickCount) |
virtual void | handleMouseWheel (int x, int y, int direction) override |
virtual void | handleKeyUp (Common::KeyState state) |
virtual void | handleMouseMoved (int x, int y, int button) |
virtual void | handleMouseLeft (int button) |
virtual void | handleOtherEvent (const Common::Event &evt) |
void | handleCommand (CommandSender *sender, uint32 cmd, uint32 data) override |
Widget * | findWidget (int x, int y) |
Widget * | findWidget (const char *name) |
void | removeWidget (Widget *widget) override |
void | setMouseUpdatedOnFocus (bool mouseUpdatedOnFocus) |
void | setDefaultFocusedWidget () |
void | setResult (int result) |
int | getResult () const |
Protected Attributes | |
ScummEngine * | _vm |
U32String | _message |
GUI::StaticTextWidget * | _text |
GUI::ThemeEngine::FontStyle | _style |
Protected Attributes inherited from GUI::Dialog | |
Widget * | _mouseWidget |
Widget * | _focusedWidget |
Widget * | _dragWidget |
Widget * | _tickleWidget |
bool | _visible |
bool | _mouseUpdatedOnFocus |
ThemeEngine::DialogBackground | _backgroundType |
Protected Attributes inherited from GUI::GuiObject | |
Common::Rect | _textDrawableArea |
int16 | _x |
int16 | _y |
uint16 | _w |
uint16 | _h |
bool | _useRTL |
const Common::String | _name |
Widget * | _firstWidget |
Additional Inherited Members | |
Protected Types inherited from Scumm::ScummDialog | |
typedef Common::String | String |
typedef Common::U32String | U32String |
A dialog which displays an arbitrary message to the user and returns the users reply as its result value. More specifically, it returns the ASCII code of the key used to close the dialog (0 if a mouse click closed the dialog).