Polycode
Polycode::ScreenManager Class Reference

2D Screen manager. More...

Inherits Polycode::EventDispatcher.

List of all members.

Public Member Functions

void removeScreen (Screen *screen)
 Removes a screen from the manager, taking it out of the render loop.
void handleEvent (Event *event)
 This method gets called by an EventDispatcher that the handler is listening to if the dispatching event's code matches the code that handler is listening for.

Detailed Description

2D Screen manager.

Must be accessed via CoreServices. Screens are automatically added to the manager when they are created, so there is no need to manually add them.


Member Function Documentation

void ScreenManager::handleEvent ( Event event) [virtual]

This method gets called by an EventDispatcher that the handler is listening to if the dispatching event's code matches the code that handler is listening for.

Typically, you subclass EventHandler and implement the handleEvent method to handle specific events.

See also:
EventDispatcher

Reimplemented from Polycode::EventHandler.

void ScreenManager::removeScreen ( Screen screen)

Removes a screen from the manager, taking it out of the render loop.

Parameters:
screenScreen to remove.