Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

QwavBackgroundLayer Class Reference

View layer that paints the background. More...

#include <qwavbackgroundlayer.h>

Inheritance diagram for QwavBackgroundLayer:

Inheritance graph
[legend]
Collaboration diagram for QwavBackgroundLayer:

Collaboration graph
[legend]
List of all members.

Public Methods

 QwavBackgroundLayer ()
virtual ~QwavBackgroundLayer ()
virtual void paintLayer (QwavWaveView *v, const QRect &rect)
virtual const string getName () const
const QColor & getBgColor () const
void setBgColor (const QColor &)
bool useBgPixmap () const
void setUseBgPixmap (bool)

Detailed Description

View layer that paints the background.

Author:
Peter Eschler


Member Function Documentation

const QColor & QwavBackgroundLayer::getBgColor   const
 

Returns the current background color.

Returns:
the current background color

virtual const string QwavBackgroundLayer::getName   const [inline, virtual]
 

Returns the name of this layer.

Implements QwavViewLayer.

void QwavBackgroundLayer::paintLayer QwavWaveView   v,
const QRect &    rect
[virtual]
 

Paints the background (solid color) by filling the backbuffer pixmap.

Parameters:
v  the WaveView instance to paint on
rect  the rectangle area to draw (not recognized,yet)
Todo:
optimize this by taking into accout rect

Implements QwavViewLayer.

void QwavBackgroundLayer::setBgColor const QColor &    bg
 

Sets the background color to bg.

Parameters:
bg  the new background color


The documentation for this class was generated from the following files:
Generated on Mon Jan 20 00:24:55 2003 for Qwav by doxygen1.2.16