Eneboo - Documentación para desarrolladores
|
The QPaintEvent class contains event parameters for paint events. Más...
#include <qevent.h>
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 QRect & | rect () const |
const QRegion & | region () 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 QRect & | rect () const |
const QRegion & | region () const |
bool | erased () const |
Atributos protegidos | |
QRect | rec |
QRegion | reg |
bool | erase |
Amigas | |
class | QApplication |
class | QBaseApplication |
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.
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.
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, |
const QRect & | paintRect, | ||
bool | erased = TRUE |
||
) | [inline] |
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.
const QRegion & QPaintEvent::region | ( | ) | const [inline] |
Returns the region that should be updated.
const QRegion& QPaintEvent::region | ( | ) | const [inline] |
QApplication [friend] |
Reimplementado de QEvent.
QBaseApplication [friend] |
Reimplementado de QEvent.
bool QPaintEvent::erase [protected] |
QRect QPaintEvent::rec [protected] |
QRegion QPaintEvent::reg [protected] |