ScummVM API documentation
Stark::Screen Class Referenceabstract

#include <screen.h>

Inheritance diagram for Stark::Screen:
Stark::GameScreen Stark::SingleWindowScreen Stark::FMVScreen Stark::StaticLocationScreen Stark::DialogScreen Stark::DiaryIndexScreen Stark::DiaryPagesScreen Stark::FMVMenuScreen Stark::MainMenuScreen Stark::SaveLoadMenuScreen Stark::SettingsMenuScreen Stark::LoadMenuScreen Stark::SaveMenuScreen

Public Types

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

Public Member Functions

 Screen (Name name)
 
Name getName () const
 
virtual void open ()
 
virtual void close ()
 
virtual void render ()=0
 
virtual void handleGameLoop ()
 
virtual void onScreenChanged ()
 
virtual void handleMouseMove ()=0
 
virtual void handleClick ()=0
 
virtual void handleRightClick ()=0
 
virtual void handleDoubleClick ()=0
 

Detailed Description

Screens are individual pages of the user interface

Member Function Documentation

◆ getName()

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

Obtain the name of the screen

◆ open()

◆ close()

virtual void Stark::Screen::close ( )
inlinevirtual

◆ render()

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

Draw the screen

Implemented in Stark::SingleWindowScreen, and Stark::GameScreen.

◆ handleGameLoop()

virtual void Stark::Screen::handleGameLoop ( )
inlinevirtual

Called once per game loop when the screen is active.

Reimplemented in Stark::SingleWindowScreen, and Stark::GameScreen.

◆ onScreenChanged()

virtual void Stark::Screen::onScreenChanged ( )
inlinevirtual

Called when the screen resolution changes

Reimplemented in Stark::StaticLocationScreen, Stark::GameScreen, Stark::FMVMenuScreen, and Stark::DialogScreen.


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