Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

GUI::MessageDialog Class Reference

#include <message.h>

Inheritance diagram for GUI::MessageDialog:

GUI::TimedMessageDialog

List of all members.


Detailed Description

Simple message dialog ("alert box"): presents a text message in a dialog with up to two buttons.

Definition at line 42 of file message.h.


Public Member Functions

virtual int16 getAbsX () const
virtual int16 getAbsY () const
virtual int16 getChildX () const
virtual int16 getChildY () const
virtual uint16 getHeight () const
virtual uint16 getWidth () const
void handleCommand (CommandSender *sender, uint32 cmd, uint32 data)
bool isVisible () const
 MessageDialog (const Common::String &message, const char *defaultButton="OK", const char *altButton=0)
virtual void reflowLayout ()
void releaseFocus ()
virtual int runModal ()

Protected Member Functions

ButtonWidget * addButton (GuiObject *boss, int x, int y, const Common::String &label, uint32 cmd, char hotkey)
virtual void close ()
bool dimsInactive ()
virtual void draw ()
virtual void drawDialog ()
Widget * findWidget (const char *name)
Widget * findWidget (int x, int y)
uint32 getMillis ()
int getResult () const
virtual void handleKeyDown (Common::KeyState state)
virtual void handleKeyUp (Common::KeyState state)
virtual void handleMouseDown (int x, int y, int button, int clickCount)
virtual void handleMouseMoved (int x, int y, int button)
virtual void handleMouseUp (int x, int y, int button, int clickCount)
virtual void handleMouseWheel (int x, int y, int direction)
virtual void handleTickle ()
virtual void open ()
void removeWidget (Widget *widget)
void setResult (int result)

Protected Attributes

Widget * _dragWidget
uint16 _drawingHints
Widget * _firstWidget
Widget * _focusedWidget
uint16 _h
Widget * _mouseWidget
Common::String _name
bool _visible
uint16 _w
int16 _x
int16 _y

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

Generated by  Doxygen 1.6.0   Back to index