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.
Public Member Functions | |
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 () |
const QPixmap & | buffer () const |
Static Public Member Functions | |
void | setEnabled (bool enable) |
bool | isEnabled () |
Protected Member Functions | |
void | flush () |
|
Default constructor.
|
|
Create an open paint buffer
|
|
Closes the buffer
|
|
Return Buffer used for double buffering.
|
|
Flush the internal pixmap buffer to the device and close the buffer. |
|
|
|
Flush the internal pixmap buffer to the device. |
|
|
|
Open the buffer
|
|
|
|
Enable/Disable double buffering. Please note that this is a global switch for all QwtPaintBuffers, but won't change opened buffers. |