<class name="QGraphicsRectItem" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGraphicsRectItem.html#QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsRectItem&lt;/tt&gt;&lt;/a&gt; class provides a rectangle item that you can add to a &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To set the item's rectangle, pass a &lt;a href=&quot;%2E%2E/core/QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; to &lt;a href=&quot;QGraphicsRectItem.html#QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsRectItem&lt;/tt&gt;&lt;/a&gt;'s constructor, or call the &lt;a href=&quot;QGraphicsRectItem.html#setRect(double, double, double, double)&quot;&gt;&lt;tt&gt;setRect&lt;/tt&gt;&lt;/a&gt; function. The &lt;a href=&quot;QGraphicsRectItem.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt; function returns the current rectangle.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/graphicsview-rectitem.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;QGraphicsRectItem.html#QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsRectItem&lt;/tt&gt;&lt;/a&gt; uses the rectangle and the pen width to provide a reasonable implementation of &lt;a href=&quot;QGraphicsRectItem.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsRectItem.html#shape()&quot;&gt;&lt;tt&gt;shape&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QGraphicsRectItem.html#contains(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;. The &lt;a href=&quot;QGraphicsRectItem.html#paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QStyleOptionGraphicsItem, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;paint&lt;/tt&gt;&lt;/a&gt; function draws the rectangle using the item's associated pen and brush, which you can set by calling the &lt;a href=&quot;QAbstractGraphicsShapeItem.html#setPen(com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;setPen&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QAbstractGraphicsShapeItem.html#setBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsPathItem.html&quot;&gt;&lt;tt&gt;QGraphicsPathItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsEllipseItem.html&quot;&gt;&lt;tt&gt;QGraphicsEllipseItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsPolygonItem.html&quot;&gt;&lt;tt&gt;QGraphicsPolygonItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsTextItem.html&quot;&gt;&lt;tt&gt;QGraphicsTextItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsLineItem.html&quot;&gt;&lt;tt&gt;QGraphicsLineItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsPixmapItem.html&quot;&gt;&lt;tt&gt;QGraphicsPixmapItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/graphicsview.html&quot;&gt;The Graphics View Framework&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QGraphicsRectItem(double x, double y, double w, double h, com.trolltech.qt.gui.QGraphicsItemInterface parent, com.trolltech.qt.gui.QGraphicsScene scene)"/>
    <method name="public QGraphicsRectItem(double x, double y, double w, double h, com.trolltech.qt.gui.QGraphicsItemInterface parent)"/>
    <method name="public QGraphicsRectItem(double x, double y, double w, double h)"/>
    <method name="public QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface parent, com.trolltech.qt.gui.QGraphicsScene scene)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGraphicsRectItem.html#QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsRectItem&lt;/tt&gt;&lt;/a&gt;, using &lt;tt&gt;parent&lt;/tt&gt; as the default rectangle. &lt;tt&gt;scene&lt;/tt&gt; is passed to &lt;a href=&quot;QAbstractGraphicsShapeItem.html#QAbstractGraphicsShapeItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QAbstractGraphicsShapeItem&lt;/tt&gt;&lt;/a&gt;'s constructor.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::addItem&lt;/tt&gt; */"/>
    <method name="public QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsRectItem.html#QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsRectItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, 0). */"/>
    <method name="public QGraphicsRectItem()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsRectItem.html#QGraphicsRectItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsRectItem&lt;/tt&gt;&lt;/a&gt;(, 0). */"/>
    <method name="public QGraphicsRectItem(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QGraphicsItemInterface parent, com.trolltech.qt.gui.QGraphicsScene scene)"/>
    <method name="public QGraphicsRectItem(com.trolltech.qt.core.QRectF rect, com.trolltech.qt.gui.QGraphicsItemInterface parent)"/>
    <method name="public QGraphicsRectItem(com.trolltech.qt.core.QRectF rect)"/>
    <method name="public final com.trolltech.qt.core.QRectF rect()" doc="/**
&lt;p&gt;Returns the item's rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsRectItem.html#setRect(double, double, double, double)&quot;&gt;&lt;tt&gt;setRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRect(com.trolltech.qt.core.QRectF rect)" doc="/**
&lt;p&gt;Sets the item's rectangle to be the given &lt;tt&gt;rect&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsRectItem.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRect(double x, double y, double w, double h)" doc="/**
&lt;p&gt;Sets the item's rectangle to the rectangle defined by (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) and the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This convenience function is equivalent to calling &lt;tt&gt;setRect(QRectF(x, y, width, height))&lt;/tt&gt;&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsRectItem.html#rect()&quot;&gt;&lt;tt&gt;rect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.QRectF boundingRect()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean contains(com.trolltech.qt.core.QPointF point)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object extension(java.lang.Object variant)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsRectItem.html#setExtension(com.trolltech.qt.gui.QGraphicsItem.Extension, java.lang.Object)&quot;&gt;&lt;tt&gt;setExtension&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean isObscuredBy(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QPainterPath opaqueArea()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void paint(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.gui.QStyleOptionGraphicsItem option, com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.gui.QStyleOptionGraphicsItem option)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsRectItem.html#paint(com.trolltech.qt.gui.QPainter, com.trolltech.qt.gui.QStyleOptionGraphicsItem, com.trolltech.qt.gui.QWidget)&quot;&gt;paint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;option&lt;/tt&gt;, 0). */"/>
    <method name="public void setExtension(com.trolltech.qt.gui.QGraphicsItem.Extension extension, java.lang.Object variant)" doc="/**
&lt;p&gt;&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsRectItem.html#extension(java.lang.Object)&quot;&gt;&lt;tt&gt;extension&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.gui.QPainterPath shape()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean supportsExtension(com.trolltech.qt.gui.QGraphicsItem.Extension extension)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public int type()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
</class>
