SdlSurfaceContainer Class Reference
[SDL based classes]

Base class for managing some graphical surface resources. More...

#include <sdlsurfacecontainer.h>

Inheritance diagram for SdlSurfaceContainer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

DECLSPEC SdlSurfaceContainer (const char *name)
const char * getName () const
 
Returns:
the container's name

DECLSPEC SdlSurfacegetSurface (unsigned int i)
unsigned int numSurfaces ()
 
Returns:
the number of surfaces, stored in the container

bool isFailed ()
 
Returns:
the fail-state (true, if failed; false, if not)


Protected Member Functions

virtual void onRefresh ()
DECLSPEC void failed ()
 sets the fail-state of the resource

Protected Attributes

vector< SdlSurface * > lSurfaces
 list of all surfaces in the container

Detailed Description

Base class for managing some graphical surface resources.

This is the base class of a container of surface resources.


Constructor & Destructor Documentation

SdlSurfaceContainer::SdlSurfaceContainer ( const char *  name  ) 

Constructor. Registers itself in SdlManager with the given name.

Parameters:
name the container's name
See also:
SdlManager::getSurfacesByName()


Member Function Documentation

SdlSurface * SdlSurfaceContainer::getSurface ( unsigned int  i  ) 

Gets a surface, which is stored in the container.

Parameters:
i the number of the surface
Returns:
a pointer to the selected surface or NULL, if the surface is not availible

virtual void SdlSurfaceContainer::onRefresh (  )  [inline, protected, virtual]

Should refresh the containing surfaces in a derived class. In this base class, nothing is done.

Reimplemented in SdlFileSurfaces, and SdlFontSurfaces.


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:34 2007 for netrinjo by  doxygen 1.5.1