#include <screensurface.h>
Inheritance diagram for wftk::ScreenSurface:
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. |
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.