Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

wftk::ScreenSurface Class Reference

interface to the underlying SDL_Surface More...

#include <screensurface.h>

Inheritance diagram for wftk::ScreenSurface:

wftk::Surface List of all members.

Public Member Functions

 ScreenSurface (int w, int h, int bitsPerPixel, bool fullscreen, bool resizeable, Uint32 extra_flags)
 Initialize the target screen surface.
void update ()
 Update the surface.
void update (const Rect &dest)
 Update a rectangle on the surface.
void update (const Region &dest)
 Update a region on the surface.
void flip ()
 If doublebuffered(), flip the surface and its buffer, otherwise update().
bool doublebuffered () const
 returns true if the surface is double buffered
bool fullscreen () const
 returns true if the surface is full screen
bool resizeable () const
 returns true if the surface is resizeable
void resize (unsigned w, unsigned h)
 resize the SDL window

Static Public Member Functions

static bool setGamma (float red, float green, float blue)
 ???
static bool setGammaRamp (Uint16 *red, Uint16 *green, Uint16 *blue)
 ???

Public Attributes

Uint32 flags_
 The SDL flags that this screen surface was created with.
Mutex mutex
 ScreenSurface doesn't do it's own locking, since these functions are typically called in the draw loop, and it's safer to have locking at the begin/end of the whole cycle and nowhere else.
SigC::Signal2< void, int,
int > 
Resized
 This signal is emitted inside the mutex.grab() that RootWindow wraps around its call to ScreenSurface::resize(), so responding to it is a safe way to make child surfaces of the screen valid again.

Detailed Description

interface to the underlying SDL_Surface


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

Generated Tue Apr 12 22:48:56 2005.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.