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

QwtPaintBuffer Class Reference

Paint buffer for Qwt widgets. More...

#include <qwt_paint_buffer.h>

List of all members.

Public Methods

 QwtPaintBuffer ()
 QwtPaintBuffer (QPaintDevice *, const QRect &, QPainter *p=NULL)
virtual ~QwtPaintBuffer ()
void open (QPaintDevice *, const QRect &, QPainter *p=NULL)
void close ()
QPainter * painter ()
const QPaintDevice * device ()

Static Public Methods

void setEnabled (bool enable)
bool isEnabled ()

Protected Methods

void flush ()


Detailed Description

Paint buffer for Qwt widgets.

QwtPaintBuffer offers a simple way to en/disable double buffering. Double buffering is enabled as default and in general there will be no reason to change this.


Constructor & Destructor Documentation

QwtPaintBuffer::QwtPaintBuffer  
 

Default constructor.

QwtPaintBuffer::QwtPaintBuffer QPaintDevice *    device,
const QRect &    rect,
QPainter *    painter = NULL
 

Create an open paint buffer

Parameters:
device  Device to paint on
rect  Rect to paint on
painter  Painter to paint on device. In case of 0 QwtPaintBuffer uses an internal painter
See also:
QwtPaintBuffer::open()

QwtPaintBuffer::~QwtPaintBuffer   [virtual]
 

Closes the buffer

See also:
QwtPaintBuffer::close()


Member Function Documentation

void QwtPaintBuffer::close  
 

Flush the internal pixmap buffer to the device and close the buffer.

const QPaintDevice * QwtPaintBuffer::device  
 

Returns:
Device to paint on

void QwtPaintBuffer::flush   [protected]
 

Flush the internal pixmap buffer to the device.

bool QwtPaintBuffer::isEnabled   [static]
 

Returns:
TRUE if double buffering is enabled, FALSE otherwise.

void QwtPaintBuffer::open QPaintDevice *    device,
const QRect &    rect,
QPainter *    painter = NULL
 

Open the buffer

Parameters:
device  Device to paint on
rect  Rect to paint on
painter  Painter to paint on device. In case of 0 QwtPaintBuffer uses an internal painter

QPainter * QwtPaintBuffer::painter  
 

Returns:
Depending on isEnabled() the painter connected to an internal pixmap buffer otherwise the painter connected to the device.

void QwtPaintBuffer::setEnabled bool    enable [static]
 

Enable/Disable double buffering. Please note that this is a global switch for all QwtPaintBuffers, but won't change opened buffers.


Generated on Sun Oct 13 17:10:37 2002 for Qwt User's Guide by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001