#include <qwt_paint_buffer.h>
Collaboration diagram for QwtPaintBuffer:

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 36 of file qwt_paint_buffer.h.
Public Member Functions | |
| void | close () |
| const QPaintDevice * | device () |
| void | open (QPaintDevice *, const QRect &, QPainter *painter=NULL) |
| QPainter * | painter () |
| QwtPaintBuffer (QPaintDevice *, const QRect &, QPainter *painter=NULL) | |
| QwtPaintBuffer () | |
| Default constructor. | |
| virtual | ~QwtPaintBuffer () |
Static Public Member Functions | |
| static bool | isEnabled () |
| static void | setEnabled (bool enable) |
Protected Member Functions | |
| void | flush () |
Private Attributes | |
| QPaintDevice * | d_device |
| QPainter * | d_devicePainter |
| QPainter * | d_painter |
| QPixmap | d_pixBuffer |
| QRect | d_rect |
Static Private Attributes | |
| static bool | d_enabled = TRUE |
|
|
Default constructor.
Definition at line 38 of file qwt_paint_buffer.cpp. |
|
||||||||||||||||
|
Create an open paint buffer
Definition at line 55 of file qwt_paint_buffer.cpp. References open(). |
|
|
Closes the buffer
Definition at line 68 of file qwt_paint_buffer.cpp. References close(). |
|
|
Flush the internal pixmap buffer to the device and close the buffer. Definition at line 199 of file qwt_paint_buffer.cpp. References d_device, d_devicePainter, d_painter, d_pixBuffer, QPainter::end(), flush(), QPainter::isActive(), and QPixmap::isNull(). Referenced by open(), and ~QwtPaintBuffer(). |
|
|
Definition at line 87 of file qwt_paint_buffer.cpp. References d_device. Referenced by flush(). |
|
|
Flush the internal pixmap buffer to the device. Definition at line 172 of file qwt_paint_buffer.cpp. References d_device, d_devicePainter, d_enabled, d_pixBuffer, d_rect, QPainter::device(), device(), QPainter::drawPixmap(), QPaintDevice::isExtDev(), QRect::isValid(), and QRect::topLeft(). Referenced by close(). |
|
|
Definition at line 105 of file qwt_paint_buffer.cpp. References d_enabled. Referenced by open(). |
|
||||||||||||||||
|
Open the buffer
Definition at line 118 of file qwt_paint_buffer.cpp. References QPainter::begin(), close(), d_device, d_devicePainter, d_painter, d_pixBuffer, d_rect, QPainter::eraseRect(), QPixmap::fill(), isEnabled(), QRect::isValid(), QPixmap::resize(), QRect::size(), QWidget::testWFlags(), QRect::topLeft(), QPainter::translate(), QRect::x(), and QRect::y(). Referenced by QwtPaintBuffer(). |
|
|
Definition at line 79 of file qwt_paint_buffer.cpp. References d_painter. Referenced by QtViewWidget::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 97 of file qwt_paint_buffer.cpp. References d_enabled. |
|
|
Definition at line 60 of file qwt_paint_buffer.h. |
|
|
Definition at line 62 of file qwt_paint_buffer.h. |
|
|
Definition at line 32 of file qwt_paint_buffer.cpp. Referenced by flush(), isEnabled(), and setEnabled(). |
|
|
Definition at line 61 of file qwt_paint_buffer.h. |
|
|
Definition at line 57 of file qwt_paint_buffer.h. |
|
|
Definition at line 58 of file qwt_paint_buffer.h. |
1.4.3