com.trolltech.qt.gui
Class QPaintEvent
java.lang.Object
com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QEvent
com.trolltech.qt.gui.QPaintEvent
- All Implemented Interfaces:
- QtJambiInterface
public class QPaintEvent
- extends QEvent
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 was 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 the processing of a paint event.
See also:
QPainter
, QWidget::update()
, QWidget::repaint()
, and QWidget::paintEvent()
.
Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent |
QEvent.Type |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
currentSender |
Constructor Summary |
QPaintEvent(QRect paintRect)
Constructs a paint event object with the rectangle that needs to be updated. |
QPaintEvent(QRegion paintRegion)
Constructs a paint event object with the region that needs to be updated. |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QPaintEvent
public QPaintEvent(QRect paintRect)
- Constructs a paint event object with the rectangle that needs to be updated. The region is specified by paintRect.
QPaintEvent
public QPaintEvent(QRegion paintRegion)
- Constructs a paint event object with the region that needs to be updated. The region is specified by paintRegion.
rect
public final QRect rect()
- Returns the rectangle that needs to be updated.
- See also:
region()
, and QPainter::setClipRect()
.
region
public final QRegion region()
- Returns the region that needs to be updated.
- See also:
rect()
, and QPainter::setClipRegion()
.
setM_rect
protected final void setM_rect(QRect m_rect)
m_rect
protected final QRect m_rect()
setM_erased
protected final void setM_erased(boolean m_erased)
m_erased
protected final boolean m_erased()
setM_region
protected final void setM_region(QRegion m_region)
m_region
protected final QRegion m_region()
toString
public java.lang.String toString()
- Returns a string representation of the this QPaintEvent.
- Overrides:
toString
in class QEvent