Sophie

Sophie

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

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

<class name="QLine" doc="/**
&lt;p&gt;The &lt;a href=&quot;QLine.html#QLine()&quot;&gt;&lt;tt&gt;QLine&lt;/tt&gt;&lt;/a&gt; class provides a two-dimensional vector using integer precision.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QLine.html#QLine()&quot;&gt;&lt;tt&gt;QLine&lt;/tt&gt;&lt;/a&gt; describes a finite length line (or a line segment) on a two-dimensional surface. The start and end points of the line are specified using integer point accuracy for coordinates. Use the &lt;a href=&quot;QLineF.html&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt; constructor to retrieve a floating point copy.&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/qline-point.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qline-coordinates.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The positions of the line's start and end points can be retrieved using the &lt;a href=&quot;QLine.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLine.html#x1()&quot;&gt;&lt;tt&gt;x1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLine.html#y1()&quot;&gt;&lt;tt&gt;y1&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLine.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLine.html#x2()&quot;&gt;&lt;tt&gt;x2&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QLine.html#y2()&quot;&gt;&lt;tt&gt;y2&lt;/tt&gt;&lt;/a&gt; functions. The &lt;a href=&quot;QLine.html#dx()&quot;&gt;&lt;tt&gt;dx&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QLine.html#dy()&quot;&gt;&lt;tt&gt;dy&lt;/tt&gt;&lt;/a&gt; functions return the horizontal and vertical components of the line. Use &lt;a href=&quot;QLine.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; to determine whether the &lt;a href=&quot;QLine.html#QLine()&quot;&gt;&lt;tt&gt;QLine&lt;/tt&gt;&lt;/a&gt; represents a valid line or a null line.&lt;/p&gt;
&lt;p&gt;Finally, the line can be translated a given offset using the &lt;a href=&quot;QLine.html#translate(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;translate&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;

@see &lt;a href=&quot;QLineF.html&quot;&gt;&lt;tt&gt;QLineF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QPolygon.html&quot;&gt;&lt;tt&gt;QPolygon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QLine(com.trolltech.qt.core.QPoint pt1, com.trolltech.qt.core.QPoint pt2)" doc="/**
&lt;p&gt;Constructs a line object that represents the line between &lt;tt&gt;pt1&lt;/tt&gt; and &lt;tt&gt;pt2&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QLine(int x1, int y1, int x2, int y2)" doc="/**
&lt;p&gt;Constructs a line object that represents the line between (&lt;tt&gt;x1&lt;/tt&gt;, &lt;tt&gt;y1&lt;/tt&gt;) and (&lt;tt&gt;x2&lt;/tt&gt;, &lt;tt&gt;y2&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public QLine()" doc="/**
&lt;p&gt;Constructs a null line.&lt;/p&gt;
 */"/>
    <method name="public final int dx()" doc="/**
&lt;p&gt;Returns the horizontal component of the line's vector.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#dy()&quot;&gt;&lt;tt&gt;dy&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int dy()" doc="/**
&lt;p&gt;Returns the vertical component of the line's vector.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#dx()&quot;&gt;&lt;tt&gt;dx&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if the line is not set up with valid start and end point; 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 com.trolltech.qt.core.QPoint p1()" doc="/**
&lt;p&gt;Returns the line's start point.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#x1()&quot;&gt;&lt;tt&gt;x1&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLine.html#y1()&quot;&gt;&lt;tt&gt;y1&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLine.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint p2()" doc="/**
&lt;p&gt;Returns the line's end point.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#x2()&quot;&gt;&lt;tt&gt;x2&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLine.html#y2()&quot;&gt;&lt;tt&gt;y2&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QLine.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void translate(int dx, int dy)" doc="/**
&lt;p&gt;Translates this line the distance specified by &lt;tt&gt;dx&lt;/tt&gt; and &lt;tt&gt;dy&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void translate(com.trolltech.qt.core.QPoint p)" doc="/**
&lt;p&gt;Translates this line by the given &lt;tt&gt;p&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final int x1()" doc="/**
&lt;p&gt;Returns the x-coordinate of the line's start point.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int x2()" doc="/**
&lt;p&gt;Returns the x-coordinate of the line's end point.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int y1()" doc="/**
&lt;p&gt;Returns the y-coordinate of the line's start point.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#p1()&quot;&gt;&lt;tt&gt;p1&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int y2()" doc="/**
&lt;p&gt;Returns the y-coordinate of the line's end point.&lt;/p&gt;

@see &lt;a href=&quot;QLine.html#p2()&quot;&gt;&lt;tt&gt;p2&lt;/tt&gt;&lt;/a&gt; */"/>
</class>