ScummVM API documentation
MutationOfJB::GuiScreen Class Reference

#include <guiscreen.h>

Inheritance diagram for MutationOfJB::GuiScreen:
MutationOfJB::GameScreen

Public Member Functions

 GuiScreen (Game &game, Graphics::Screen *screen)
 
GamegetGame ()
 
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 WidgetsgetWidgets () const
 

Protected Attributes

Game_game
 
Graphics::Screen_screen
 

Detailed Description

Base class for GUI screens.

GUI screen is a collection of widgets.

Member Function Documentation

◆ markDirty()

void MutationOfJB::GuiScreen::markDirty ( )

Marks all visible widgets as dirty (needs redraw).

◆ handleEvent()

virtual void MutationOfJB::GuiScreen::handleEvent ( const Common::Event event)
virtual

Lets all visible widgets handle core events.

Parameters
eventScummVM event.

Reimplemented in MutationOfJB::GameScreen.

◆ update()

void MutationOfJB::GuiScreen::update ( )

Updates all visible widgets.

◆ addWidget()

void MutationOfJB::GuiScreen::addWidget ( Widget widget)

Adds a widget to the GUI screen. The GUI screen will own the widget.

Parameters
widgetWidget to add.

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