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.
Definition at line 29 of file qwt_paint_buffer.h.
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 | |
static void | setEnabled (bool enable) |
static bool | isEnabled () |
Protected Member Functions | |
void | flush () |
|
Default constructor.
Definition at line 21 of file qwt_paint_buffer.cpp. |
|
Create an open paint buffer
Definition at line 38 of file qwt_paint_buffer.cpp. References open(). |
|
Closes the buffer
Definition at line 51 of file qwt_paint_buffer.cpp. References close(). |
|
Return Buffer used for double buffering.
Definition at line 47 of file qwt_paint_buffer.h. |
|
Flush the internal pixmap buffer to the device and close the buffer. Definition at line 180 of file qwt_paint_buffer.cpp. References flush(). Referenced by open(), and ~QwtPaintBuffer(). |
|
Definition at line 70 of file qwt_paint_buffer.cpp. Referenced by flush(). |
|
Flush the internal pixmap buffer to the device. Definition at line 153 of file qwt_paint_buffer.cpp. References device(). Referenced by close(). |
|
Definition at line 88 of file qwt_paint_buffer.cpp. Referenced by open(). |
|
Open the buffer
Definition at line 101 of file qwt_paint_buffer.cpp. References close(), and isEnabled(). Referenced by QwtPaintBuffer(). |
|
Definition at line 62 of file qwt_paint_buffer.cpp. Referenced by QwtWheel::paintEvent(), QwtThermo::paintEvent(), QwtSlider::paintEvent(), QwtScaleWidget::paintEvent(), QwtKnob::paintEvent(), and QwtDial::paintEvent(). |
|
Enable/Disable double buffering. Please note that this is a global switch for all QwtPaintBuffers, but won't change opened buffers. Definition at line 80 of file qwt_paint_buffer.cpp. |