Eneboo - Documentación para desarrolladores
Métodos públicos | Atributos protegidos | Amigas
Referencia de la Clase QPaintEvent

The QPaintEvent class contains event parameters for paint events. Más...

#include <qevent.h>

Diagrama de herencias de QPaintEvent
QEvent QEvent Qt Qt Qt Qt

Lista de todos los miembros.

Métodos públicos

 QPaintEvent (const QRegion &paintRegion, bool erased=TRUE)
 QPaintEvent (const QRect &paintRect, bool erased=TRUE)
 QPaintEvent (const QRegion &paintRegion, const QRect &paintRect, bool erased=TRUE)
const QRectrect () const
const QRegionregion () const
bool erased () const
 QPaintEvent (const QRegion &paintRegion, bool erased=TRUE)
 QPaintEvent (const QRect &paintRect, bool erased=TRUE)
 QPaintEvent (const QRegion &paintRegion, const QRect &paintRect, bool erased=TRUE)
const QRectrect () const
const QRegionregion () const
bool erased () const

Atributos protegidos

QRect rec
QRegion reg
bool erase

Amigas

class QApplication
class QBaseApplication

Descripción detallada

The QPaintEvent class contains event parameters for paint events.

Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget is moved.

The event contains a region() that needs to be updated, and a rect() that is the bounding rectangle of that region. Both are provided because many widgets can't make much use of region(), and rect() can be much faster than region().boundingRect(). Painting is clipped to region() during processing of a paint event.

The erased() function returns TRUE if the region() has been cleared to the widget's background (see QWidget::backgroundMode()), and FALSE if the region's contents are arbitrary.

Ver también:
QPainter QWidget::update() QWidget::repaint() QWidget::paintEvent() QWidget::backgroundMode() QRegion

Documentación del constructor y destructor

QPaintEvent::QPaintEvent ( const QRegion paintRegion,
bool  erased = TRUE 
) [inline]

Constructs a paint event object with the region that should be updated. The region is given by paintRegion. If erased is TRUE the region will be cleared before repainting.

QPaintEvent::QPaintEvent ( const QRect paintRect,
bool  erased = TRUE 
) [inline]

Constructs a paint event object with the rectangle that should be updated. The region is also given by paintRect. If erased is TRUE the region will be cleared before repainting.

QPaintEvent::QPaintEvent ( const QRegion paintRegion,
const QRect paintRect,
bool  erased = TRUE 
) [inline]

Constructs a paint event object with the rectangle paintRect that should be updated. The region is given by paintRegion. If erased is TRUE the region will be cleared before repainting.

QPaintEvent::QPaintEvent ( const QRegion paintRegion,
bool  erased = TRUE 
) [inline]
QPaintEvent::QPaintEvent ( const QRect paintRect,
bool  erased = TRUE 
) [inline]
QPaintEvent::QPaintEvent ( const QRegion paintRegion,
const QRect paintRect,
bool  erased = TRUE 
) [inline]

Documentación de las funciones miembro

bool QPaintEvent::erased ( ) const [inline]

Returns TRUE if the paint event region (or rectangle) has been erased with the widget's background; otherwise returns FALSE.

bool QPaintEvent::erased ( ) const [inline]
const QRect& QPaintEvent::rect ( ) const [inline]
const QRect & QPaintEvent::rect ( ) const [inline]

Returns the rectangle that should be updated.

Ver también:
region(), QPainter::setClipRect()
const QRegion & QPaintEvent::region ( ) const [inline]

Returns the region that should be updated.

Ver también:
rect(), QPainter::setClipRegion()
const QRegion& QPaintEvent::region ( ) const [inline]

Documentación de las funciones relacionadas y clases amigas

QApplication [friend]

Reimplementado de QEvent.

QBaseApplication [friend]

Reimplementado de QEvent.


Documentación de los datos miembro

bool QPaintEvent::erase [protected]
QRect QPaintEvent::rec [protected]

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'