com.trolltech.qt.gui
Class QPaintEvent
java.lang.Object
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 |
|
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 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()
fromNativePointer
public static QPaintEvent fromNativePointer(QNativePointer nativePointer)
- This method returns the QPaintEvent instance pointed to by nativePointer.
toString
public java.lang.String toString()
- Returns a string representation of the this QPaintEvent.
- Overrides:
toString in class QEvent