Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos públicos estáticos | Métodos protegidos
Referencia de la Clase QwtPaintBuffer

Paint buffer for Qwt widgets. Más...

#include <qwt_paint_buffer.h>

Lista de todos los miembros.

Métodos públicos

 QwtPaintBuffer ()
 Default constructor.
 QwtPaintBuffer (QPaintDevice *, const QRect &, QPainter *p=NULL)
virtual ~QwtPaintBuffer ()
void open (QPaintDevice *, const QRect &, QPainter *p=NULL)
void close ()
QPainterpainter ()
const QPaintDevicedevice ()
const QPixmapbuffer () const
 Return Buffer used for double buffering.

Métodos públicos estáticos

static void setEnabled (bool enable)
static bool isEnabled ()

Métodos protegidos

void flush ()

Descripción detallada

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.


Documentación del constructor y destructor

QwtPaintBuffer::QwtPaintBuffer ( ) [explicit]

Default constructor.

QwtPaintBuffer::QwtPaintBuffer ( QPaintDevice device,
const QRect rect,
QPainter painter = NULL 
) [explicit]

Create an open paint buffer

Parámetros:
deviceDevice to paint on
rectRect to paint on
painterPainter to paint on device. In case of 0 QwtPaintBuffer uses an internal painter
Ver también:
open()
QwtPaintBuffer::~QwtPaintBuffer ( ) [virtual]

Closes the buffer

Ver también:
close()

Documentación de las funciones miembro

const QPixmap& QwtPaintBuffer::buffer ( ) const [inline]

Return Buffer used for double buffering.

void QwtPaintBuffer::close ( void  )

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

const QPaintDevice * QwtPaintBuffer::device ( )
Devuelve:
Device to paint on
void QwtPaintBuffer::flush ( ) [protected]

Flush the internal pixmap buffer to the device.

bool QwtPaintBuffer::isEnabled ( ) [static]
Devuelve:
true if double buffering is enabled, false otherwise.
void QwtPaintBuffer::open ( QPaintDevice device,
const QRect rect,
QPainter painter = NULL 
)

Open the buffer

Parámetros:
deviceDevice to paint on
rectRect to paint on
painterPainter to paint on device. In case of 0 QwtPaintBuffer uses an internal painter
QPainter * QwtPaintBuffer::painter ( )
Devuelve:
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.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'