Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2161

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QPointF" doc="/**
&lt;p&gt;The &lt;a href=&quot;QPointF.html#QPointF(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt; class defines a point in the plane using floating point precision.&lt;/p&gt;
&lt;p&gt;A point is specified by a x coordinate and an y coordinate which can be accessed using the &lt;a href=&quot;QPointF.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPointF.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt; functions. The coordinates of the point are specified using floating point numbers for accuracy. The &lt;a href=&quot;QPointF.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; function returns true if both x and y are set to 0.0&amp;#x2e; The coordinates can be set (or altered) using the &lt;a href=&quot;QPointF.html#setX(double)&quot;&gt;&lt;tt&gt;setX&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QPointF.html#setY(double)&quot;&gt;&lt;tt&gt;setY&lt;/tt&gt;&lt;/a&gt; functions, or alternatively the rx() and ry() functions which return references to the coordinates (allowing direct manipulation).&lt;/p&gt;
&lt;p&gt;Given a point &lt;i&gt;p&lt;/i&gt;, the following statements are all equivalent:&lt;/p&gt;
&lt;pre&gt;    QPointF p;

    p.setX(p.x() + 1.0);
    p += QPoint(1.0, 0.0);
    p.rx()++;&lt;/pre&gt;
&lt;p&gt;A &lt;a href=&quot;QPointF.html#QPointF(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt; object can also be used as a vector: Addition and subtraction are defined as for vectors (each component is added separately). A &lt;a href=&quot;QPointF.html#QPointF(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt; object can also be divided or multiplied by an &lt;tt&gt;int&lt;/tt&gt; or a &lt;tt&gt;qreal&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;In addition, the &lt;a href=&quot;QPointF.html#QPointF(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt; class provides a constructor converting a &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt; object into a &lt;a href=&quot;QPointF.html#QPointF(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt; object, and a corresponding &lt;a href=&quot;QPointF.html#toPoint()&quot;&gt;&lt;tt&gt;toPoint&lt;/tt&gt;&lt;/a&gt; function which returns a &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt; copy of &lt;i&gt;this&lt;/i&gt; point. Finally, &lt;a href=&quot;QPointF.html#QPointF(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt; objects can be streamed as well as compared.&lt;/p&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;%2E%2E/gui/QPolygonF.html&quot;&gt;&lt;tt&gt;QPolygonF&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QPointF(double xpos, double ypos)" doc="/**
&lt;p&gt;Constructs a point with the given coordinates (&lt;tt&gt;xpos&lt;/tt&gt;, &lt;tt&gt;ypos&lt;/tt&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#setX(double)&quot;&gt;&lt;tt&gt;setX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPointF.html#setY(double)&quot;&gt;&lt;tt&gt;setY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QPointF()" doc="/**
&lt;p&gt;Constructs a null point, i.e&amp;#x2e; with coordinates (0.0, 0.0)&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QPointF(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Constructs a copy of the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#toPoint()&quot;&gt;&lt;tt&gt;toPoint&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if both the x and y coordinates are set to 0.0, otherwise returns false.&lt;/p&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 setX(double x)" doc="/**
&lt;p&gt;Sets the x coordinate of this point to the given &lt;tt&gt;x&lt;/tt&gt; coordinate.&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPointF.html#setY(double)&quot;&gt;&lt;tt&gt;setY&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setY(double y)" doc="/**
&lt;p&gt;Sets the y coordinate of this point to the given &lt;tt&gt;y&lt;/tt&gt; coordinate.&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPointF.html#setX(double)&quot;&gt;&lt;tt&gt;setX&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint toPoint()" doc="/**
&lt;p&gt;Rounds the coordinates of this point to the nearest integer, and returns a &lt;a href=&quot;QPoint.html&quot;&gt;&lt;tt&gt;QPoint&lt;/tt&gt;&lt;/a&gt; object with the rounded coordinates.&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#QPointF(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QPointF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final double x()" doc="/**
&lt;p&gt;Returns the x-coordinate of this point.&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#setX(double)&quot;&gt;&lt;tt&gt;setX&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;rx&lt;/tt&gt; */"/>
    <method name="public final double y()" doc="/**
&lt;p&gt;Returns the y-coordinate of this point.&lt;/p&gt;

@see &lt;a href=&quot;QPointF.html#setY(double)&quot;&gt;&lt;tt&gt;setY&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;ry&lt;/tt&gt; */"/>
</class>