QCanvasLine - A lines on a canvas

       #include <qcanvas.h>

       Inherits QCanvasPolygonalItem.

   Public Members
       QCanvasLine ( QCanvas * canvas )
       ~QCanvasLine ()
       void setPoints ( int x1, int y1, int x2, int y2 )
       QPoint startPoint () const
       QPoint endPoint () const
       virtual int rtti () const


DESCRIPTION

       A lines on a canvas.

       Currently, only width==1 lines are supported.


MEMBER FUNCTION DOCUMENTATION


QCanvasLine::QCanvasLine ( QCanvas * canvas )

       Constructs a line from (0,0) to (0,0) on canvas.

       See also setPoints().


QCanvasLine::~QCanvasLine ()

       Destroys the line, removing it from its canvas.


QPointArray QCanvasLine::areaPoints () const [virtual protected]

       Reimplemented for internal reasons; the API is not
       affected.

       Note that the area defined by the line is somewhat thicker
       than the line that is actually drawn.

       Reimplemented from QCanvasPolygonalItem.


void QCanvasLine::drawShape ( QPainter & p ) [virtual protected]

       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QCanvasPolygonalItem.


QPoint QCanvasLine::endPoint () const

       Returns the end of the line.

       See also setPoints() and startPoint().


int QCanvasLine::rtti () const [virtual]

       Returns 7.

       See also QCanvasItem::rtti().



void QCanvasLine::setPen ( QPen p ) [virtual]

       Reimplemented for internal reasons; the API is not
       affected.

       Reimplemented from QCanvasPolygonalItem.


void QCanvasLine::setPoints ( int xa, int ya, int xb, int yb )

       Sets the ends of the line to (xa, ya) and (xb, yb).


QPoint QCanvasLine::startPoint () const

       Returns the start of the line.

       See also  setPoints() and endPoint().


SEE ALSO

       http://doc.trolltech.com/qcanvasline.html
       http://www.trolltech.com/faq/tech.html


COPYRIGHT

       Copyright 1992-2001 Trolltech AS,
       http://www.trolltech.com.  See the license file included
       in the distribution for a complete license statement.


AUTHOR

       Generated automatically from the source code.


BUGS

       If you find a bug in Qt, please report it as described in
       http://doc.trolltech.com/bughowto.html.  Good bug reports
       make our job much simpler. Thank you.

       In case of content or formattting problems with this
       manual page, please report them to qt-bugs@trolltech.com.
       Please include the name of the manual page
       (qcanvasline.3qt) and the Qt version (2.3.1).


Man(1) output converted with man2html