ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <dialog.h>

Inheritance diagram for GUI::Dialog:
Collaboration diagram for GUI::Dialog:

List of all members.

Public Member Functions

 Dialog (int x, int y, int w, int h)
 Dialog (const Common::String &name)
virtual int runModal ()
bool isVisible () const override
void releaseFocus () override
void setFocusWidget (Widget *widget)
WidgetgetFocusWidget ()
void setTickleWidget (Widget *widget)
void unSetTickleWidget ()
WidgetgetTickleWidget ()
void reflowLayout () override
virtual void lostFocus ()
virtual void receivedFocus (int x=-1, int y=-1)

Protected Member Functions

virtual void open ()
virtual void close ()
void markWidgetsAsDirty ()
 Recursively mark all the widgets in this dialog as dirty so they are redrawn.
virtual void drawDialog (DrawLayer layerToDraw)
 Draw the dialog in its entirety (background and widgets).
void drawWidgets ()
 Draw only the dialog's widgets.
virtual void handleTickle ()
virtual void handleMouseDown (int x, int y, int button, int clickCount)
virtual void handleMouseUp (int x, int y, int button, int clickCount)
virtual void handleMouseWheel (int x, int y, int direction)
virtual void handleKeyDown (Common::KeyState state)
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
WidgetfindWidget (int x, int y)
WidgetfindWidget (const char *name)
void removeWidget (Widget *widget) override
void setDefaultFocusedWidget ()
void setResult (int result)
int getResult () const

Protected Attributes

Widget_mouseWidget
Widget_focusedWidget
Widget_dragWidget
Widget_tickleWidget
bool _visible
ThemeEngine::DialogBackground _backgroundType

Private Attributes

int _result

Friends

class GuiManager
class EventRecorder
class Tooltip

Detailed Description

Definition at line 50 of file dialog.h.


Constructor & Destructor Documentation

GUI::Dialog::Dialog ( int  x,
int  y,
int  w,
int  h 
)

Definition at line 41 of file dialog.cpp.

GUI::Dialog::Dialog ( const Common::String name  ) 

Definition at line 55 of file dialog.cpp.


Member Function Documentation

void GUI::Dialog::drawDialog ( DrawLayer  layerToDraw  )  [protected, virtual]

Draw the dialog in its entirety (background and widgets).

Reimplemented in GUI::AboutDialog, GUI::ConsoleDialog, GUI::Tooltip, and GUI::PopUpDialog.

Definition at line 165 of file dialog.cpp.

void GUI::Dialog::drawWidgets (  )  [protected]

Draw only the dialog's widgets.

Definition at line 178 of file dialog.cpp.

Widget * GUI::Dialog::findWidget ( int  x,
int  y 
) [protected]

Definition at line 374 of file dialog.cpp.

Widget * GUI::Dialog::findWidget ( const char *  name  )  [protected]

Definition at line 378 of file dialog.cpp.

Widget* GUI::Dialog::getFocusWidget (  )  [inline]

Definition at line 76 of file dialog.h.

int GUI::Dialog::getResult (  )  const [inline, protected]

Reimplemented in GUI::PredictiveDialog.

Definition at line 117 of file dialog.h.

Widget* GUI::Dialog::getTickleWidget (  )  [inline]

Definition at line 80 of file dialog.h.

void GUI::Dialog::handleKeyDown ( Common::KeyState  state  )  [protected, virtual]
void GUI::Dialog::handleKeyUp ( Common::KeyState  state  )  [protected, virtual]
void GUI::Dialog::handleMouseDown ( int  x,
int  y,
int  button,
int  clickCount 
) [protected, virtual]

Reimplemented in GUI::OnScreenDialog, and GUI::Tooltip.

Definition at line 192 of file dialog.cpp.

virtual void GUI::Dialog::handleMouseLeft ( int  button  )  [inline, protected, virtual]

Reimplemented in GUI::PopUpDialog.

Definition at line 106 of file dialog.h.

void GUI::Dialog::handleMouseMoved ( int  x,
int  y,
int  button 
) [protected, virtual]

Reimplemented in GUI::OnScreenDialog, GUI::Tooltip, and GUI::PopUpDialog.

Definition at line 295 of file dialog.cpp.

void GUI::Dialog::handleMouseUp ( int  x,
int  y,
int  button,
int  clickCount 
) [protected, virtual]

Reimplemented in GUI::AboutDialog, GUI::OnScreenDialog, GUI::Tooltip, and GUI::PopUpDialog.

Definition at line 210 of file dialog.cpp.

void GUI::Dialog::handleMouseWheel ( int  x,
int  y,
int  direction 
) [protected, virtual]
virtual void GUI::Dialog::handleOtherEvent ( const Common::Event evt  )  [inline, protected, virtual]

Reimplemented in GUI::LauncherDialog, and GUI::OptionsDialog.

Definition at line 107 of file dialog.h.

void GUI::Dialog::handleTickle (  )  [protected, virtual]
bool GUI::Dialog::isVisible (  )  const [inline, override, virtual]

Implements GUI::GuiObject.

Reimplemented in GUI::OnScreenDialog.

Definition at line 72 of file dialog.h.

void GUI::Dialog::lostFocus (  )  [virtual]

Definition at line 120 of file dialog.cpp.

void GUI::Dialog::markWidgetsAsDirty (  )  [protected]

Recursively mark all the widgets in this dialog as dirty so they are redrawn.

Definition at line 157 of file dialog.cpp.

virtual void GUI::Dialog::receivedFocus ( int  x = -1,
int  y = -1 
) [inline, virtual]

Reimplemented in GUI::Tooltip.

Definition at line 84 of file dialog.h.

void GUI::Dialog::releaseFocus (  )  [override, virtual]

Implements GUI::GuiObject.

Reimplemented in GUI::OnScreenDialog.

Definition at line 150 of file dialog.cpp.

void GUI::Dialog::removeWidget ( Widget widget  )  [override, protected, virtual]

Reimplemented from GUI::GuiObject.

Definition at line 382 of file dialog.cpp.

int GUI::Dialog::runModal (  )  [virtual]

Reimplemented in GUI::BrowserDialog.

Definition at line 72 of file dialog.cpp.

void GUI::Dialog::setDefaultFocusedWidget (  )  [protected]

Definition at line 140 of file dialog.cpp.

void GUI::Dialog::setFocusWidget ( Widget widget  ) 

Definition at line 128 of file dialog.cpp.

void GUI::Dialog::setResult ( int  result  )  [inline, protected]

Definition at line 116 of file dialog.h.

void GUI::Dialog::setTickleWidget ( Widget widget  )  [inline]

Definition at line 78 of file dialog.h.

void GUI::Dialog::unSetTickleWidget (  )  [inline]

Definition at line 79 of file dialog.h.


Friends And Related Function Documentation

friend class EventRecorder [friend]

Definition at line 52 of file dialog.h.

friend class GuiManager [friend]

Definition at line 51 of file dialog.h.

friend class Tooltip [friend]

Definition at line 53 of file dialog.h.


Member Data Documentation

Definition at line 61 of file dialog.h.

Definition at line 57 of file dialog.h.

Definition at line 56 of file dialog.h.

Definition at line 55 of file dialog.h.

int GUI::Dialog::_result [private]

Definition at line 64 of file dialog.h.

Definition at line 58 of file dialog.h.

bool GUI::Dialog::_visible [protected]

Definition at line 59 of file dialog.h.


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


Generated on Sat Aug 1 2020 05:04:00 for ResidualVM by doxygen 1.7.1
curved edge   curved edge