<class name="QRect" doc="/**
&lt;p&gt;The &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; class defines a rectangle in the plane using integer precision.&lt;/p&gt;
&lt;p&gt;A rectangle is normally expressed as an upper-left corner and a size. The size (width and height) of a &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; is always equivalent to the mathematical rectangle that forms the basis for its rendering.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; can be constructed with a set of left, top, width and height integers, or from a &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt; and a &lt;a href=&quot;QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;. The following code creates two identical rectangles.&lt;/p&gt;
&lt;pre&gt;    QRect r1(100, 200, 11, 16);
    QRect r2(QPoint(100, 200), QSize(11, 16));&lt;/pre&gt;
&lt;p&gt;There is a third constructor that creates a &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; using the top-left and bottom-right coordinates, but we recommend that you avoid using it. The rationale is that for historical reasons the values returned by the &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; functions deviate from the true bottom-right corner of the rectangle.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; class provides a collection of functions that return the various rectangle coordinates, and enable manipulation of these. &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; also provide functions to move the rectangle relative to the various coordinates. In addition there is a &lt;a href=&quot;QRect.html#moveTo(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt; function that moves the rectangle, leaving its top left corner at the given coordinates. Alternatively, the &lt;a href=&quot;QRect.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; function moves the rectangle the given offset relative to the current position, and the &lt;a href=&quot;QRect.html#translated(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translated&lt;/tt&gt;&lt;/a&gt; function returns a translated copy of this rectangle.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QRect.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; function returns the rectange's dimensions as a &lt;a href=&quot;QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;. The dimensions can also be retrieved separately using the &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; functions. To manipulate the dimensions use the &lt;a href=&quot;QRect.html#setSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSize&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QRect.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QRect.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; functions. Alternatively, the size can be changed by applying either of the functions setting the rectangle coordinates, for example, &lt;a href=&quot;QRect.html#setBottom(int)&quot;&gt;&lt;tt&gt;setBottom&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QRect.html#setRight(int)&quot;&gt;&lt;tt&gt;setRight&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QRect.html#contains(com.trolltech.qt.core.QPoint, boolean)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; function tells whether a given point is inside the rectangle or not, and the &lt;a href=&quot;QRect.html#intersects(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;intersects&lt;/tt&gt;&lt;/a&gt; function returns true if this rectangle intersects with a given rectangle. The &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; class also provides the &lt;a href=&quot;QRect.html#intersected(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;intersected&lt;/tt&gt;&lt;/a&gt; function which returns the intersection rectangle, and the &lt;a href=&quot;QRect.html#united(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;united&lt;/tt&gt;&lt;/a&gt; function which returns the rectangle that encloses the given rectangle and this:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qrect-intersect.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qrect-unite.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;a href=&quot;QRect.html#intersected(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;intersected&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;QRect.html#united(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;united&lt;/tt&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QRect.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; function returns true if &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; &amp;gt; &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; &amp;gt; &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;. Note that an empty rectangle is not valid: The &lt;a href=&quot;QRect.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; function returns true if &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; &amp;lt;= &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; &lt;i&gt;and&lt;/i&gt; &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; &amp;lt;= &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;. A null rectangle (&lt;a href=&quot;QRect.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; == true) on the other hand, has both width and height set to 0.&lt;/p&gt;
&lt;p&gt;Note that due to the way &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; are defined, an empty &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; is defined in essentially the same way as &lt;a href=&quot;QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Finally, &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; objects can be streamed as well as compared.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#rendering&quot;&gt;Rendering&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#coordinates&quot;&gt;Coordinates&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;rendering&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Rendering&lt;/h3&gt;
&lt;p&gt;When using an anti-aliased&lt;/tt&gt; painter, the boundary line of a &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; will be rendered symmetrically on both sides of the mathematical rectangle's boundary line. But when using an aliased painter (the default) other rules apply.&lt;/p&gt;
&lt;p&gt;Then, when rendering with a one pixel wide pen the &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;'s boundary line will be rendered to the right and below the mathematical rectangle's boundary line.&lt;/p&gt;
&lt;p&gt;When rendering with a two pixels wide pen the boundary line will be split in the middle by the mathematical rectangle. This will be the case whenever the pen is set to an even number of pixels, while rendering with a pen with an odd number of pixels, the spare pixel will be rendered to the right and below the mathematical rectangle as in the one pixel case.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qrect-diagram-zero.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qrect-diagram-one.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Logical representation&lt;/td&gt;&lt;td&gt;One pixel wide pen&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qrect-diagram-two.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qrect-diagram-three.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;Two pixel wide pen&lt;/td&gt;&lt;td&gt;Three pixel wide pen&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;a name=&quot;coordinates&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Coordinates&lt;/h3&gt;
&lt;p&gt;The &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; class provides a collection of functions that return the various rectangle coordinates, and enable manipulation of these. &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; also provide functions to move the rectangle relative to the various coordinates.&lt;/p&gt;
&lt;p&gt;For example the &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QRect.html#setLeft(int)&quot;&gt;&lt;tt&gt;setLeft&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#moveLeft(int)&quot;&gt;&lt;tt&gt;moveLeft&lt;/tt&gt;&lt;/a&gt; functions as an example: &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; returns the x-coordinate of the rectangle's left edge, &lt;a href=&quot;QRect.html#setLeft(int)&quot;&gt;&lt;tt&gt;setLeft&lt;/tt&gt;&lt;/a&gt; sets the left edge of the rectangle to the given x coordinate (it may change the width, but will never change the rectangle's right edge) and &lt;a href=&quot;QRect.html#moveLeft(int)&quot;&gt;&lt;tt&gt;moveLeft&lt;/tt&gt;&lt;/a&gt; moves the entire rectangle horizontally, leaving the rectangle's left edge at the given x coordinate and its size unchanged.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qrect-coordinates.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;Note that for historical reasons the values returned by the &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; functions deviate from the true bottom-right corner of the rectangle: The &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; function returns &lt;i&gt; &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; - 1&lt;/i&gt; and the &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt; function returns &lt;i&gt;&lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; - 1&lt;/i&gt;. The same is the case for the point returned by the &lt;a href=&quot;QRect.html#bottomRight()&quot;&gt;&lt;tt&gt;bottomRight&lt;/tt&gt;&lt;/a&gt; convenience function. In addition, the x and y coordinate of the &lt;a href=&quot;QRect.html#topRight()&quot;&gt;&lt;tt&gt;topRight&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#bottomLeft()&quot;&gt;&lt;tt&gt;bottomLeft&lt;/tt&gt;&lt;/a&gt; functions, respectively, contain the same deviation from the true right and bottom edges.&lt;/p&gt;
&lt;p&gt;We recommend that you use &lt;a href=&quot;QRect.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; to find the true bottom-right corner, and avoid &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;. Another solution is to use &lt;a href=&quot;QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;: The &lt;a href=&quot;QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; class defines a rectangle in the plane using floating point accuracy for coordinates, and the QRectF::right() and QRectF::bottom() functions &lt;i&gt;do&lt;/i&gt; return the right and bottom coordinates.&lt;/p&gt;
&lt;p&gt;It is also possible to add offsets to this rectangle's coordinates using the &lt;a href=&quot;QRect.html#adjust(int, int, int, int)&quot;&gt;&lt;tt&gt;adjust&lt;/tt&gt;&lt;/a&gt; function, as well as retrieve a new rectangle based on adjustments of the original one using the &lt;a href=&quot;QRect.html#adjusted(int, int, int, int)&quot;&gt;&lt;tt&gt;adjusted&lt;/tt&gt;&lt;/a&gt; function. If either of the width and height is negative, use the &lt;a href=&quot;QRect.html#normalized()&quot;&gt;&lt;tt&gt;normalized&lt;/tt&gt;&lt;/a&gt; function to retrieve a rectangle where the corners are swapped.&lt;/p&gt;
&lt;p&gt;In addition, &lt;a href=&quot;QRect.html#QRect(int, int, int, int)&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; provides the getCoords() function which extracts the position of the rectangle's top-left and bottom-right corner, and the getRect() function which extracts the rectangle's top-left corner, width and height. Use the &lt;a href=&quot;QRect.html#setCoords(int, int, int, int)&quot;&gt;&lt;tt&gt;setCoords&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#setRect(int, int, int, int)&quot;&gt;&lt;tt&gt;setRect&lt;/tt&gt;&lt;/a&gt; function to manipulate the rectangle's coordinates and dimensions in one go.&lt;/p&gt;

@see &lt;a href=&quot;QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/gui/QRegion.html&quot;&gt;&lt;tt&gt;QRegion&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QRect()" doc="/**
&lt;p&gt;Constructs a null rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QRect(com.trolltech.qt.core.QPoint topleft, com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Constructs a rectangle with the given &lt;tt&gt;topleft&lt;/tt&gt; corner and the given &lt;tt&gt;size&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QRect(com.trolltech.qt.core.QPoint topleft, com.trolltech.qt.core.QPoint bottomright)" doc="/**
&lt;p&gt;Constructs a rectangle with the given &lt;tt&gt;topleft&lt;/tt&gt; and &lt;tt&gt;bottomright&lt;/tt&gt; corners.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setBottomRight(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setBottomRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QRect(int left, int top, int width, int height)" doc="/**
&lt;p&gt;Constructs a rectangle with (&lt;tt&gt;left&lt;/tt&gt;, &lt;tt&gt;top&lt;/tt&gt;) as its top-left corner and the given &lt;tt&gt;width&lt;/tt&gt; and &lt;tt&gt;height&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setRect(int, int, int, int)&quot;&gt;&lt;tt&gt;setRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void adjust(int x1, int y1, int x2, int y2)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;, &lt;tt&gt;x2&lt;/tt&gt; and &lt;tt&gt;y2&lt;/tt&gt; respectively to the existing coordinates of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#adjusted(int, int, int, int)&quot;&gt;&lt;tt&gt;adjusted&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setRect(int, int, int, int)&quot;&gt;&lt;tt&gt;setRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect adjusted(int x1, int y1, int x2, int y2)" doc="/**
&lt;p&gt;Returns a new rectangle with &lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;, &lt;tt&gt;x2&lt;/tt&gt; and &lt;tt&gt;y2&lt;/tt&gt; added respectively to the existing coordinates of this rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#adjust(int, int, int, int)&quot;&gt;&lt;tt&gt;adjust&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int bottom()" doc="/**
&lt;p&gt;Returns the y-coordinate of the rectangle's bottom edge.&lt;/p&gt;
&lt;p&gt;Note that for historical reasons this function returns &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; - 1; use &lt;a href=&quot;QRect.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; to retrieve the true y-coordinate.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setBottom(int)&quot;&gt;&lt;tt&gt;setBottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#bottomLeft()&quot;&gt;&lt;tt&gt;bottomLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#bottomRight()&quot;&gt;&lt;tt&gt;bottomRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint bottomLeft()" doc="/**
&lt;p&gt;Returns the position of the rectangle's bottom-left corner. Note that for historical reasons this function returns &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; - 1).&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setBottomLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setBottomLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint bottomRight()" doc="/**
&lt;p&gt;Returns the position of the rectangle's bottom-right corner.&lt;/p&gt;
&lt;p&gt;Note that for historical reasons this function returns &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; -1, &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; - 1).&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setBottomRight(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setBottomRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint center()" doc="/**
&lt;p&gt;Returns the center point of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#moveCenter(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveCenter&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean contains(int x, int y)" doc="/**
&lt;p&gt;Returns true if the point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) is inside this rectangle, otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QRect r, boolean proper)" doc="/**
&lt;p&gt;Returns true if the given &lt;tt&gt;r&lt;/tt&gt; is inside this rectangle. otherwise returns false. If &lt;tt&gt;proper&lt;/tt&gt; is true, this function only returns true if the &lt;tt&gt;r&lt;/tt&gt; is entirely inside this rectangle (not on the edge).&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QRect r)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QRect.html#contains(com.trolltech.qt.core.QPoint, boolean)&quot;&gt;contains&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, false). */"/>
    <method name="public final boolean contains(int x, int y, boolean proper)" doc="/**
&lt;p&gt;Returns true if the point (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;) is inside or on the edge of the rectangle, otherwise returns false. If &lt;tt&gt;proper&lt;/tt&gt; is true, this function only returns true if the point is entirely inside the rectangle(not on the edge).&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QPoint p, boolean proper)" doc="/**
&lt;p&gt;Returns true if the the given &lt;tt&gt;p&lt;/tt&gt; is inside or on the edge of the rectangle, otherwise returns false. If &lt;tt&gt;proper&lt;/tt&gt; is true, this function only returns true if the given &lt;tt&gt;p&lt;/tt&gt; is &lt;i&gt;inside&lt;/i&gt; the rectangle (i.e&amp;#x2e;, not on the edge).&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#intersects(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;intersects&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QRect.html#contains(com.trolltech.qt.core.QPoint, boolean)&quot;&gt;contains&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;p&lt;/tt&gt;, false). */"/>
    <method name="public final int height()" doc="/**
&lt;p&gt;Returns the height of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect intersected(com.trolltech.qt.core.QRect other)" doc="/**
&lt;p&gt;Returns the intersection of this rectangle and the given &lt;tt&gt;other&lt;/tt&gt;. Note that &lt;tt&gt;r.intersected(s)&lt;/tt&gt; is equivalent to &lt;tt&gt;r &amp;amp; s&lt;/tt&gt;.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qrect-intersect.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QRect.html#intersects(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;intersects&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#united(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;united&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;operator&amp;amp;=&lt;/tt&gt; */"/>
    <method name="public final boolean intersects(com.trolltech.qt.core.QRect r)" doc="/**
&lt;p&gt;Returns true if this rectangle intersects with the given &lt;tt&gt;r&lt;/tt&gt; (i.e&amp;#x2e;, there is at least one pixel that is within both rectangles), otherwise returns false.&lt;/p&gt;
&lt;p&gt;The intersection rectangle can be retrieved using the &lt;a href=&quot;QRect.html#intersected(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;intersected&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#contains(com.trolltech.qt.core.QPoint, boolean)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if the rectangle is empty, otherwise returns false.&lt;/p&gt;
&lt;p&gt;An empty rectangle has a &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; &amp;gt; &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; &amp;gt; &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;. An empty rectangle is not valid (i.e&amp;#x2e;, &lt;a href=&quot;QRect.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; == !&lt;a href=&quot;QRect.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Use the &lt;a href=&quot;QRect.html#normalized()&quot;&gt;&lt;tt&gt;normalized&lt;/tt&gt;&lt;/a&gt; function to retrieve a rectangle where the corners are swapped.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#normalized()&quot;&gt;&lt;tt&gt;normalized&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if the rectangle is a null rectangle, otherwise returns false.&lt;/p&gt;
&lt;p&gt;A null rectangle has both the width and the height set to 0 (i.e&amp;#x2e;, &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; == &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; - 1 and &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt; == &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; - 1). A null rectangle is also empty, and hence is not valid.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if the rectangle is valid, otherwise returns false.&lt;/p&gt;
&lt;p&gt;A valid rectangle has a &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; &amp;lt; &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt; &amp;lt; &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;. Note that non-trivial operations like intersections are not defined for invalid rectangles. A valid rectangle is not empty (i.e&amp;#x2e;, &lt;a href=&quot;QRect.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; == !&lt;a href=&quot;QRect.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#normalized()&quot;&gt;&lt;tt&gt;normalized&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int left()" doc="/**
&lt;p&gt;Returns the x-coordinate of the rectangle's left edge. Equivalent to &lt;a href=&quot;QRect.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setLeft(int)&quot;&gt;&lt;tt&gt;setLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#topLeft()&quot;&gt;&lt;tt&gt;topLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#bottomLeft()&quot;&gt;&lt;tt&gt;bottomLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveBottom(int pos)" doc="/**
&lt;p&gt;Moves the rectangle vertically, leaving the rectangle's bottom edge at the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setBottom(int)&quot;&gt;&lt;tt&gt;setBottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTop(int)&quot;&gt;&lt;tt&gt;moveTop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveBottomLeft(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Moves the rectangle, leaving the bottom-left corner at the given &lt;tt&gt;p&lt;/tt&gt;. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setBottomLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setBottomLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveBottom(int)&quot;&gt;&lt;tt&gt;moveBottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveLeft(int)&quot;&gt;&lt;tt&gt;moveLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveBottomRight(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Moves the rectangle, leaving the bottom-right corner at the given &lt;tt&gt;p&lt;/tt&gt;. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setBottomRight(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setBottomRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveRight(int)&quot;&gt;&lt;tt&gt;moveRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveBottom(int)&quot;&gt;&lt;tt&gt;moveBottom&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveCenter(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Moves the rectangle, leaving the center point at the given &lt;tt&gt;p&lt;/tt&gt;. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#center()&quot;&gt;&lt;tt&gt;center&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveLeft(int pos)" doc="/**
&lt;p&gt;Moves the rectangle horizontally, leaving the rectangle's left edge at the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setLeft(int)&quot;&gt;&lt;tt&gt;setLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveRight(int)&quot;&gt;&lt;tt&gt;moveRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveRight(int pos)" doc="/**
&lt;p&gt;Moves the rectangle horizontally, leaving the rectangle's right edge at the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setRight(int)&quot;&gt;&lt;tt&gt;setRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveLeft(int)&quot;&gt;&lt;tt&gt;moveLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveTo(int x, int t)" doc="/**
&lt;p&gt;Moves the rectangle, leaving the top-left corner at the given position (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;t&lt;/tt&gt;). The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveTopLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveTo(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Moves the rectangle, leaving the top-left corner at the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void moveTop(int pos)" doc="/**
&lt;p&gt;Moves the rectangle vertically, leaving the rectangle's top edge at the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setTop(int)&quot;&gt;&lt;tt&gt;setTop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveBottom(int)&quot;&gt;&lt;tt&gt;moveBottom&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveTopLeft(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Moves the rectangle, leaving the top-left corner at the given &lt;tt&gt;p&lt;/tt&gt;. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTop(int)&quot;&gt;&lt;tt&gt;moveTop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveLeft(int)&quot;&gt;&lt;tt&gt;moveLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void moveTopRight(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Moves the rectangle, leaving the top-right corner at the given &lt;tt&gt;p&lt;/tt&gt;. The rectangle's size is unchanged.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setTopRight(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTop(int)&quot;&gt;&lt;tt&gt;moveTop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveRight(int)&quot;&gt;&lt;tt&gt;moveRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect normalized()" doc="/**
&lt;p&gt;Returns a normalized rectangle; i.e&amp;#x2e;, a rectangle that has a non-negative width and height.&lt;/p&gt;
&lt;p&gt;If &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; &amp;lt; 0 the function swaps the left and right corners, and it swaps the top and bottom corners if &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; &amp;lt; 0.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final int right()" doc="/**
&lt;p&gt;Returns the x-coordinate of the rectangle's right edge.&lt;/p&gt;
&lt;p&gt;Note that for historical reasons this function returns &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; - 1; use &lt;a href=&quot;QRect.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; to retrieve the true x-coordinate.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setRight(int)&quot;&gt;&lt;tt&gt;setRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#topRight()&quot;&gt;&lt;tt&gt;topRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#bottomRight()&quot;&gt;&lt;tt&gt;bottomRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBottom(int pos)" doc="/**
&lt;p&gt;Sets the bottom edge of the rectangle to the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. May change the height, but will never change the top edge of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveBottom(int)&quot;&gt;&lt;tt&gt;moveBottom&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBottomLeft(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Set the bottom-left corner of the rectangle to the given &lt;tt&gt;p&lt;/tt&gt;. May change the size, but will the never change the top-right corner of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#bottomLeft()&quot;&gt;&lt;tt&gt;bottomLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveBottomLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveBottomLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBottomRight(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Set the bottom-right corner of the rectangle to the given &lt;tt&gt;p&lt;/tt&gt;. May change the size, but will the never change the top-left corner of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#bottomRight()&quot;&gt;&lt;tt&gt;bottomRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveBottomRight(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveBottomRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCoords(int x1, int y1, int x2, int y2)" doc="/**
&lt;p&gt;Sets the coordinates of the rectangle's top-left corner to (&lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;), and the coordinates of its bottom-right corner to (&lt;tt&gt;x2&lt;/tt&gt;, &lt;tt&gt;y2&lt;/tt&gt;).&lt;/p&gt;

@see &lt;tt&gt;getCoords&lt;/tt&gt;
@see &lt;a href=&quot;QRect.html#setRect(int, int, int, int)&quot;&gt;&lt;tt&gt;setRect&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHeight(int h)" doc="/**
&lt;p&gt;Sets the height of the rectangle to the given &lt;tt&gt;h&lt;/tt&gt;. The bottom edge is changed, but not the top one.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setLeft(int pos)" doc="/**
&lt;p&gt;Sets the left edge of the rectangle to the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. May change the width, but will never change the right edge of the rectangle.&lt;/p&gt;
&lt;p&gt;Equivalent to &lt;a href=&quot;QRect.html#setX(int)&quot;&gt;&lt;tt&gt;setX&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveLeft(int)&quot;&gt;&lt;tt&gt;moveLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRect(int x, int y, int w, int h)" doc="/**
&lt;p&gt;Sets the coordinates of the rectangle's top-left corner to (&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;), and its size to the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;getRect&lt;/tt&gt;
@see &lt;a href=&quot;QRect.html#setCoords(int, int, int, int)&quot;&gt;&lt;tt&gt;setCoords&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRight(int pos)" doc="/**
&lt;p&gt;Sets the right edge of the rectangle to the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. May change the width, but will never change the left edge of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveRight(int)&quot;&gt;&lt;tt&gt;moveRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSize(com.trolltech.qt.core.QSize s)" doc="/**
&lt;p&gt;Sets the size of the rectangle to the given &lt;tt&gt;s&lt;/tt&gt;. The top-left corner is not moved.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTop(int pos)" doc="/**
&lt;p&gt;Sets the top edge of the rectangle to the given &lt;tt&gt;pos&lt;/tt&gt; coordinate. May change the height, but will never change the bottom edge of the rectangle.&lt;/p&gt;
&lt;p&gt;Equivalent to &lt;a href=&quot;QRect.html#setY(int)&quot;&gt;&lt;tt&gt;setY&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTop(int)&quot;&gt;&lt;tt&gt;moveTop&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTopLeft(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Set the top-left corner of the rectangle to the given &lt;tt&gt;p&lt;/tt&gt;. May change the size, but will the never change the bottom-right corner of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#topLeft()&quot;&gt;&lt;tt&gt;topLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveTopLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTopRight(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Set the top-right corner of the rectangle to the given &lt;tt&gt;p&lt;/tt&gt;. May change the size, but will the never change the bottom-left corner of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#topRight()&quot;&gt;&lt;tt&gt;topRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTopRight(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveTopRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWidth(int w)" doc="/**
&lt;p&gt;Sets the width of the rectangle to the given &lt;tt&gt;w&lt;/tt&gt;. The right edge is changed, but not the left one.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setX(int x)" doc="/**
&lt;p&gt;Sets the left edge of the rectangle to the given &lt;tt&gt;x&lt;/tt&gt; coordinate. May change the width, but will never change the right edge of the rectangle.&lt;/p&gt;
&lt;p&gt;Equivalent to &lt;a href=&quot;QRect.html#setLeft(int)&quot;&gt;&lt;tt&gt;setLeft&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setY(int)&quot;&gt;&lt;tt&gt;setY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setY(int y)" doc="/**
&lt;p&gt;Sets the top edge of the rectangle to the given &lt;tt&gt;y&lt;/tt&gt; coordinate. May change the height, but will never change the bottom edge of the rectangle.&lt;/p&gt;
&lt;p&gt;Equivalent to &lt;a href=&quot;QRect.html#setTop(int)&quot;&gt;&lt;tt&gt;setTop&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setX(int)&quot;&gt;&lt;tt&gt;setX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#setTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize size()" doc="/**
&lt;p&gt;Returns the size of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int top()" doc="/**
&lt;p&gt;Returns the y-coordinate of the rectangle's top edge. Equivalent to &lt;a href=&quot;QRect.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setTop(int)&quot;&gt;&lt;tt&gt;setTop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#topLeft()&quot;&gt;&lt;tt&gt;topLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#topRight()&quot;&gt;&lt;tt&gt;topRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint topLeft()" doc="/**
&lt;p&gt;Returns the position of the rectangle's top-left corner.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint topRight()" doc="/**
&lt;p&gt;Returns the position of the rectangle's top-right corner.&lt;/p&gt;
&lt;p&gt;Note that for historical reasons this function returns &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;(&lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; + &lt;a href=&quot;QRect.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; -1, &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setTopRight(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setTopRight&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void translate(int dx, int dy)" doc="/**
&lt;p&gt;Moves the rectangle &lt;tt&gt;dx&lt;/tt&gt; along the x axis and &lt;tt&gt;dy&lt;/tt&gt; along the y axis, relative to the current position. Positive values move the rectangle to the right and down.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#moveTopLeft(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveTopLeft&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#moveTo(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;moveTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#translated(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translated&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void translate(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Moves the rectangle &lt;tt&gt;p&lt;/tt&gt;.x() along the x axis and &lt;tt&gt;p&lt;/tt&gt;.y() along the y axis, relative to the current position.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRect translated(int dx, int dy)" doc="/**
&lt;p&gt;Returns a copy of the rectangle that is translated &lt;tt&gt;dx&lt;/tt&gt; along the x axis and &lt;tt&gt;dy&lt;/tt&gt; along the y axis, relative to the current position. Positive values move the rectangle to the right and down.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QRect translated(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Returns a copy of the rectangle that is translated &lt;tt&gt;p&lt;/tt&gt;.x() along the x axis and &lt;tt&gt;p&lt;/tt&gt;.y() along the y axis, relative to the current position.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QRect united(com.trolltech.qt.core.QRect other)" doc="/**
&lt;p&gt;Returns the bounding rectangle of this rectangle and the given &lt;tt&gt;other&lt;/tt&gt;.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qrect-unite.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QRect.html#intersected(com.trolltech.qt.core.QRect)&quot;&gt;&lt;tt&gt;intersected&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int width()" doc="/**
&lt;p&gt;Returns the width of the rectangle.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int x()" doc="/**
&lt;p&gt;Returns the x-coordinate of the rectangle's left edge. Equivalent to &lt;a href=&quot;QRect.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setX(int)&quot;&gt;&lt;tt&gt;setX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#topLeft()&quot;&gt;&lt;tt&gt;topLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int y()" doc="/**
&lt;p&gt;Returns the y-coordinate of the rectangle's top edge. Equivalent to &lt;a href=&quot;QRect.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QRect.html#setY(int)&quot;&gt;&lt;tt&gt;setY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html#topLeft()&quot;&gt;&lt;tt&gt;topLeft&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
