<class name="QSize" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSize.html#QSize()&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt; class defines the size of a two-dimensional object using integer point precision.&lt;/p&gt;
&lt;p&gt;A size is specified by a &lt;a href=&quot;QSize.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; and a &lt;a href=&quot;QSize.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;. It can be set in the constructor and changed using the &lt;a href=&quot;QSize.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSize.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QSize.html#scale(int, int, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt; functions, or using arithmetic operators. A size can also be manipulated directly by retrieving references to the width and height using the rwidth() and rheight() functions. Finally, the width and height can be swapped using the &lt;a href=&quot;QSize.html#transpose()&quot;&gt;&lt;tt&gt;transpose&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QSize.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; function determines if a size is valid (a valid size has both width and height greater than zero). The &lt;a href=&quot;QSize.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; function returns true if either of the width and height is less than, or equal to, zero, while the &lt;a href=&quot;QSize.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; function returns true only if both the width and the height is zero.&lt;/p&gt;
&lt;p&gt;Use the &lt;a href=&quot;QSize.html#expandedTo(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;expandedTo&lt;/tt&gt;&lt;/a&gt; function to retrieve a size which holds the maximum height and width of &lt;i&gt;this&lt;/i&gt; size and a given size. Similarly, the &lt;a href=&quot;QSize.html#boundedTo(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;boundedTo&lt;/tt&gt;&lt;/a&gt; function returns a size which holds the minimum height and width of &lt;i&gt;this&lt;/i&gt; size and a given size.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSize.html#QSize()&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt; objects can be streamed as well as compared.&lt;/p&gt;

@see &lt;a href=&quot;QSizeF.html&quot;&gt;&lt;tt&gt;QSizeF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QSize(int w, int h)" doc="/**
&lt;p&gt;Constructs a size with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QSize()" doc="/**
&lt;p&gt;Constructs a size with an invalid width and height (i.e&amp;#x2e;, &lt;a href=&quot;QSize.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; returns false).&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize boundedTo(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Returns a size holding the minimum width and height of this size and the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#expandedTo(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;expandedTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#scale(int, int, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize expandedTo(com.trolltech.qt.core.QSize arg__1)" doc="/**
&lt;p&gt;Returns a size holding the maximum width and height of this size and the given &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#boundedTo(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;boundedTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#scale(int, int, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int height()" doc="/**
&lt;p&gt;Returns the height.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if either of the width and height is less than or equal to 0; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if both the width and height is 0; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if both the width and height is equal to or greater than 0; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.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 void scale(com.trolltech.qt.core.QSize s, com.trolltech.qt.core.Qt.AspectRatioMode mode)" doc="/**
&lt;p&gt;Scales the size to a rectangle with the given &lt;tt&gt;s&lt;/tt&gt;, according to the specified &lt;tt&gt;mode&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void scale(int w, int h, com.trolltech.qt.core.Qt.AspectRatioMode mode)" doc="/**
&lt;p&gt;Scales the size to a rectangle with the given &lt;tt&gt;w&lt;/tt&gt; and &lt;tt&gt;h&lt;/tt&gt;, according to the specified &lt;tt&gt;mode&lt;/tt&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If &lt;tt&gt;mode&lt;/tt&gt; is Qt::IgnoreAspectRatio, the size is set to (&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;).&lt;/li&gt;
&lt;li&gt;If &lt;tt&gt;mode&lt;/tt&gt; is Qt::KeepAspectRatio, the current size is scaled to a rectangle as large as possible inside (&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), preserving the aspect ratio.&lt;/li&gt;
&lt;li&gt;If &lt;tt&gt;mode&lt;/tt&gt; is Qt::KeepAspectRatioByExpanding, the current size is scaled to a rectangle as small as possible outside (&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;), preserving the aspect ratio.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QSize t1(10, 12);
    t1.scale(60, 60, Qt::IgnoreAspectRatio);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; t1 is (60, 60)

    QSize t2(10, 12);
    t2.scale(60, 60, Qt::KeepAspectRatio);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; t2 is (50, 60)

    QSize t3(10, 12);
    t3.scale(60, 60, Qt::KeepAspectRatioByExpanding);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; t3 is (60, 72)&lt;/pre&gt;

@see &lt;a href=&quot;QSize.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHeight(int h)" doc="/**
&lt;p&gt;Sets the height to the given &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;rheight&lt;/tt&gt;
@see &lt;a href=&quot;QSize.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setWidth(int w)" doc="/**
&lt;p&gt;Sets the width to the given &lt;tt&gt;w&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;rwidth&lt;/tt&gt;
@see &lt;a href=&quot;QSize.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void transpose()" doc="/**
&lt;p&gt;Swaps the width and height values.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#setHeight(int)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int width()" doc="/**
&lt;p&gt;Returns the width.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html#height()&quot;&gt;&lt;tt&gt;height&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSize.html#setWidth(int)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
