<class name="QSizeF" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSizeF.html#QSizeF()&quot;&gt;&lt;tt&gt;QSizeF&lt;/tt&gt;&lt;/a&gt; class defines the size of a two-dimensional object using floating point precision.&lt;/p&gt;
&lt;p&gt;A size is specified by a &lt;a href=&quot;QSizeF.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt; and a &lt;a href=&quot;QSizeF.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;QSizeF.html#setWidth(double)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSizeF.html#setHeight(double)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QSizeF.html#scale(com.trolltech.qt.core.QSizeF, 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;QSizeF.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;QSizeF.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 or equal to zero. The &lt;a href=&quot;QSizeF.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 &lt;i&gt;less&lt;/i&gt; than (or equal to) zero, while the &lt;a href=&quot;QSizeF.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;QSizeF.html#expandedTo(com.trolltech.qt.core.QSizeF)&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 this size and a given size. Similarly, the &lt;a href=&quot;QSizeF.html#boundedTo(com.trolltech.qt.core.QSizeF)&quot;&gt;&lt;tt&gt;boundedTo&lt;/tt&gt;&lt;/a&gt; function returns a size which holds the minimum height and width of this size and a given size.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QSizeF.html#QSizeF()&quot;&gt;&lt;tt&gt;QSizeF&lt;/tt&gt;&lt;/a&gt; class also provides the &lt;a href=&quot;QSizeF.html#toSize()&quot;&gt;&lt;tt&gt;toSize&lt;/tt&gt;&lt;/a&gt; function returning a &lt;a href=&quot;QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt; copy of this size, constructed by rounding the width and height to the nearest integers.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSizeF.html#QSizeF()&quot;&gt;&lt;tt&gt;QSizeF&lt;/tt&gt;&lt;/a&gt; objects can be streamed as well as compared.&lt;/p&gt;

@see &lt;a href=&quot;QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPointF.html&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRectF.html&quot;&gt;&lt;tt&gt;QRectF&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QSizeF(com.trolltech.qt.core.QSize sz)" doc="/**
&lt;p&gt;Constructs a size with floating point accuracy from the given &lt;tt&gt;sz&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSizeF.html#toSize()&quot;&gt;&lt;tt&gt;toSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QSizeF(double w, double 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;
 */"/>
    <method name="public QSizeF()" doc="/**
&lt;p&gt;Constructs an invalid size.&lt;/p&gt;

@see &lt;a href=&quot;QSizeF.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSizeF boundedTo(com.trolltech.qt.core.QSizeF 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;QSizeF.html#expandedTo(com.trolltech.qt.core.QSizeF)&quot;&gt;&lt;tt&gt;expandedTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.html#scale(com.trolltech.qt.core.QSizeF, 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.QSizeF expandedTo(com.trolltech.qt.core.QSizeF 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;QSizeF.html#boundedTo(com.trolltech.qt.core.QSizeF)&quot;&gt;&lt;tt&gt;boundedTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.html#scale(com.trolltech.qt.core.QSizeF, com.trolltech.qt.core.Qt.AspectRatioMode)&quot;&gt;&lt;tt&gt;scale&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double height()" doc="/**
&lt;p&gt;Returns the height.&lt;/p&gt;

@see &lt;a href=&quot;QSizeF.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.html#setHeight(double)&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;QSizeF.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.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;QSizeF.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.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;QSizeF.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.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(double w, double 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;    QSizeF t1(10, 12);
    t1.scale(60, 60, Qt::IgnoreAspectRatio);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; t1 is (60, 60)

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

    QSizeF 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;QSizeF.html#setWidth(double)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.html#setHeight(double)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void scale(com.trolltech.qt.core.QSizeF 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 setHeight(double h)" doc="/**
&lt;p&gt;Sets the height to the given &lt;tt&gt;h&lt;/tt&gt;.&lt;/p&gt;

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

@see &lt;a href=&quot;QSizeF.html#width()&quot;&gt;&lt;tt&gt;width&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;rwidth&lt;/tt&gt;
@see &lt;a href=&quot;QSizeF.html#setHeight(double)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize toSize()" doc="/**
&lt;p&gt;Returns an integer based copy of this size.&lt;/p&gt;
&lt;p&gt;Note that the coordinates in the returned size will be rounded to the nearest integer.&lt;/p&gt;

@see &lt;a href=&quot;QSizeF.html#QSizeF()&quot;&gt;&lt;tt&gt;QSizeF&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;QSizeF.html#setWidth(double)&quot;&gt;&lt;tt&gt;setWidth&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSizeF.html#setHeight(double)&quot;&gt;&lt;tt&gt;setHeight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double width()" doc="/**
&lt;p&gt;Returns the width.&lt;/p&gt;

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