WoopsiUI::DimmedScreen Class Reference

#include <dimmedscreen.h>

Inheritance diagram for WoopsiUI::DimmedScreen:
WoopsiUI::Screen WoopsiUI::Gadget

List of all members.

Public Member Functions

 DimmedScreen ()
virtual void draw (Rect clipRect)
virtual ~DimmedScreen ()
 DimmedScreen (const DimmedScreen &dimmedScreen)

Detailed Description

Screen class that, rather than drawing to the screen, dims it to half of its intensity. Can be used as a screen for modal windows giving an Ubuntu-style faded background. All child gadgets of the screen are not dimmed. Note that any activity that takes place behind the screen won't actually get drawn. If, for example, you open a screen and put an animation on it, then open a DimmedScreen above it, the animation will appear to freeze. This is because the bottom screen does not think it is visible since another screen is open above it. There are two workarounds for this. One is to stop all animations/VBL events/etc on lower gadgets when opening a DimmedScreen so that they *do* actually freeze. The other way is to register the DimmedScreen for VBL events and redraw every time a VBL event is raised, but this is likely to be very slow.


Constructor & Destructor Documentation

WoopsiUI::DimmedScreen::DimmedScreen (  )  [inline]

Constructor.

virtual WoopsiUI::DimmedScreen::~DimmedScreen (  )  [inline, virtual]

Destructor.

WoopsiUI::DimmedScreen::DimmedScreen ( const DimmedScreen dimmedScreen  )  [inline]

Copy constructor is protected to prevent usage.


Member Function Documentation

virtual void WoopsiUI::DimmedScreen::draw ( Rect  clipRect  )  [inline, virtual]

Draw the area of this gadget that falls within the clipping region. Called by the draw() function to draw all visible regions.

Parameters:
clipRect The clipping region to draw.
See also:
draw()

Reimplemented from WoopsiUI::Screen.


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

Generated on Sun Nov 15 11:35:36 2009 for Woopsi by  doxygen 1.6.1