<class name="QPaintEvent" doc="/** <p>The <a href="QPaintEvent.html#QPaintEvent(com.trolltech.qt.core.QRect)"><tt>QPaintEvent</tt></a> class contains event parameters for paint events.</p> <p>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.</p> <p>The event contains a <a href="QPaintEvent.html#region()"><tt>region</tt></a> that needs to be updated, and a <a href="QPaintEvent.html#rect()"><tt>rect</tt></a> that is the bounding rectangle of that region. Both are provided because many widgets can't make much use of <a href="QPaintEvent.html#region()"><tt>region</tt></a>, and <a href="QPaintEvent.html#rect()"><tt>rect</tt></a> can be much faster than <a href="QPaintEvent.html#region()"><tt>region</tt></a>.boundingRect(). Painting is clipped to <a href="QPaintEvent.html#region()"><tt>region</tt></a> during the processing of a paint event.</p> @see <a href="QPainter.html"><tt>QPainter</tt></a> @see <tt>QWidget::update</tt> @see <tt>QWidget::repaint</tt> @see <tt>QWidget::paintEvent</tt> */"> <method name="public QPaintEvent(com.trolltech.qt.gui.QRegion paintRegion)" doc="/** <p>Constructs a paint event object with the region that needs to be updated. The region is specified by <tt>paintRegion</tt>.</p> */"/> <method name="public QPaintEvent(com.trolltech.qt.core.QRect paintRect)" doc="/** <p>Constructs a paint event object with the rectangle that needs to be updated. The region is specified by <tt>paintRect</tt>.</p> */"/> <method name="public final com.trolltech.qt.core.QRect rect()" doc="/** <p>Returns the rectangle that needs to be updated.</p> @see <a href="QPaintEvent.html#region()"><tt>region</tt></a> @see <tt>QPainter::setClipRect</tt> */"/> <method name="public final com.trolltech.qt.gui.QRegion region()" doc="/** <p>Returns the region that needs to be updated.</p> @see <a href="QPaintEvent.html#rect()"><tt>rect</tt></a> @see <tt>QPainter::setClipRegion</tt> */"/> <method name="protected final com.trolltech.qt.core.QRect m_rect()"/> <method name="protected final void setM_rect(com.trolltech.qt.core.QRect m_rect)"/> <method name="protected final boolean m_erased()"/> <method name="protected final void setM_erased(boolean m_erased)"/> <method name="protected final com.trolltech.qt.gui.QRegion m_region()"/> <method name="protected final void setM_region(com.trolltech.qt.gui.QRegion m_region)"/> </class>