openMSX
Public Types | Public Member Functions | Friends | List of all members
openmsx::Display Class Reference

Represents the output window/screen of openMSX. More...

#include <Display.hh>

Inheritance diagram for openmsx::Display:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Display:
Collaboration graph
[legend]

Public Types

typedef std::vector< Layer * > Layers
 

Public Member Functions

 Display (Reactor &reactor)
 
virtual ~Display ()
 
void createVideoSystem ()
 
VideoSystemgetVideoSystem ()
 
CliCommgetCliComm () const
 
RenderSettingsgetRenderSettings () const
 
OSDGUIgetOSDGUI () const
 
CommandConsolegetCommandConsole ()
 
void repaint ()
 Redraw the display. More...
 
void repaint (OutputSurface &surface)
 
void repaintDelayed (uint64_t delta)
 
void addLayer (Layer &layer)
 
void removeLayer (Layer &layer)
 
void attach (VideoSystemChangeListener &listener)
 
void detach (VideoSystemChangeListener &listener)
 
LayerfindActiveLayer () const
 
const LayersgetAllLayers () const
 
- Public Member Functions inherited from openmsx::EventListener
virtual ~EventListener ()
 

Friends

class FpsInfoTopic
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::EventListener
 EventListener ()
 

Detailed Description

Represents the output window/screen of openMSX.

A display contains several layers.

Definition at line 33 of file Display.hh.

Member Typedef Documentation

typedef std::vector<Layer*> openmsx::Display::Layers

Definition at line 37 of file Display.hh.

Constructor & Destructor Documentation

openmsx::Display::Display ( Reactor reactor)
explicit
openmsx::Display::~Display ( )
virtual

Member Function Documentation

void openmsx::Display::addLayer ( Layer layer)
void openmsx::Display::attach ( VideoSystemChangeListener listener)
void openmsx::Display::createVideoSystem ( )

Definition at line 136 of file Display.cc.

References openmsx::RendererFactory::UNINITIALIZED.

void openmsx::Display::detach ( VideoSystemChangeListener listener)
Layer * openmsx::Display::findActiveLayer ( ) const

Definition at line 193 of file Display.cc.

References openmsx::Layer::Z_MSX_ACTIVE.

Referenced by openmsx::ScreenShotCmd::execute().

const Layers& openmsx::Display::getAllLayers ( ) const
inline

Definition at line 63 of file Display.hh.

CliComm & openmsx::Display::getCliComm ( ) const
CommandConsole & openmsx::Display::getCommandConsole ( )

Definition at line 175 of file Display.cc.

Referenced by openmsx::RendererFactory::createVideoSystem().

OSDGUI & openmsx::Display::getOSDGUI ( ) const

Definition at line 170 of file Display.cc.

Referenced by openmsx::SDLVideoSystem::SDLVideoSystem().

RenderSettings & openmsx::Display::getRenderSettings ( ) const
VideoSystem & openmsx::Display::getVideoSystem ( )

Definition at line 146 of file Display.cc.

Referenced by openmsx::ScreenShotCmd::execute().

void openmsx::Display::removeLayer ( Layer layer)
void openmsx::Display::repaint ( )
void openmsx::Display::repaint ( OutputSurface surface)

Definition at line 397 of file Display.cc.

References openmsx::Layer::COVER_NONE.

void openmsx::Display::repaintDelayed ( uint64_t  delta)

Definition at line 406 of file Display.cc.

Referenced by openmsx::GLSnow::paint(), and openmsx::OSDGUI::refresh().

Friends And Related Function Documentation

friend class FpsInfoTopic
friend

Definition at line 97 of file Display.hh.


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