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

Stark::Screen Class Reference

Screens are individual pages of the user interface. More...

#include <screen.h>

Inheritance diagram for Stark::Screen:

List of all members.

Public Types

enum  Name {
  kScreenMainMenu, kScreenGame, kScreenFMV, kScreenDiaryIndex,
  kScreenSettingsMenu, kScreenSaveMenu, kScreenLoadMenu, kScreenFMVMenu,
  kScreenDiaryPages, kScreenDialog
}

Public Member Functions

 Screen (Name name)
virtual ~Screen ()
Name getName () const
 Obtain the name of the screen.
virtual void open ()
 The screen is being made active, prepare it to be drawn.
virtual void close ()
 The screen is no longer active, release resources to free memory.
virtual void render ()=0
 Draw the screen.
virtual void handleGameLoop ()
 Called once per game loop when the screen is active.
virtual void onScreenChanged ()
 Called when the screen resolution changes.
virtual void handleMouseMove ()=0
virtual void handleClick ()=0
virtual void handleRightClick ()=0
virtual void handleDoubleClick ()=0

Private Attributes

Name _name

Detailed Description

Screens are individual pages of the user interface.

Definition at line 36 of file engines/stark/ui/screen.h.


Member Enumeration Documentation

Enumerator:
kScreenMainMenu 
kScreenGame 
kScreenFMV 
kScreenDiaryIndex 
kScreenSettingsMenu 
kScreenSaveMenu 
kScreenLoadMenu 
kScreenFMVMenu 
kScreenDiaryPages 
kScreenDialog 

Definition at line 38 of file engines/stark/ui/screen.h.


Constructor & Destructor Documentation

Stark::Screen::Screen ( Name  name  )  [inline, explicit]

Definition at line 51 of file engines/stark/ui/screen.h.

virtual Stark::Screen::~Screen (  )  [inline, virtual]

Definition at line 52 of file engines/stark/ui/screen.h.


Member Function Documentation

virtual void Stark::Screen::close (  )  [inline, virtual]

The screen is no longer active, release resources to free memory.

Reimplemented in Stark::GameScreen.

Definition at line 61 of file engines/stark/ui/screen.h.

Name Stark::Screen::getName (  )  const [inline]

Obtain the name of the screen.

Definition at line 55 of file engines/stark/ui/screen.h.

virtual void Stark::Screen::handleClick (  )  [pure virtual]

Implemented in Stark::GameScreen.

virtual void Stark::Screen::handleDoubleClick (  )  [pure virtual]

Implemented in Stark::GameScreen.

virtual void Stark::Screen::handleGameLoop (  )  [inline, virtual]

Called once per game loop when the screen is active.

Reimplemented in Stark::GameScreen.

Definition at line 67 of file engines/stark/ui/screen.h.

virtual void Stark::Screen::handleMouseMove (  )  [pure virtual]

Implemented in Stark::GameScreen.

virtual void Stark::Screen::handleRightClick (  )  [pure virtual]

Implemented in Stark::GameScreen.

virtual void Stark::Screen::onScreenChanged (  )  [inline, virtual]

Called when the screen resolution changes.

Reimplemented in Stark::GameScreen.

Definition at line 70 of file engines/stark/ui/screen.h.

virtual void Stark::Screen::open (  )  [inline, virtual]

The screen is being made active, prepare it to be drawn.

Reimplemented in Stark::GameScreen.

Definition at line 58 of file engines/stark/ui/screen.h.

virtual void Stark::Screen::render (  )  [pure virtual]

Draw the screen.

Implemented in Stark::GameScreen.


Member Data Documentation

Definition at line 78 of file engines/stark/ui/screen.h.


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


Generated on Sat May 18 2019 05:07:21 for ResidualVM by doxygen 1.7.1
curved edge   curved edge