#include <guiscreen.h>
Public Member Functions | |
GuiScreen (Game &game, Graphics::Screen *screen) | |
Game & | getGame () |
void | markDirty () |
virtual void | handleEvent (const Common::Event &event) |
void | update () |
void | addWidget (Widget *widget) |
Protected Types | |
typedef Common::Array< Widget * > | Widgets |
Protected Member Functions | |
const Widgets & | getWidgets () const |
Protected Attributes | |
Game & | _game |
Graphics::Screen * | _screen |
Base class for GUI screens.
GUI screen is a collection of widgets.
void MutationOfJB::GuiScreen::markDirty | ( | ) |
Marks all visible widgets as dirty (needs redraw).
|
virtual |
Lets all visible widgets handle core events.
event | ScummVM event. |
Reimplemented in MutationOfJB::GameScreen.
void MutationOfJB::GuiScreen::update | ( | ) |
Updates all visible widgets.
void MutationOfJB::GuiScreen::addWidget | ( | Widget * | widget | ) |
Adds a widget to the GUI screen. The GUI screen will own the widget.
widget | Widget to add. |