|Q3CanvasLine(Q3Canvas * canvas)|
|void||setPoints(int xa, int ya, int xb, int yb)|
Reimplemented Public Functions
- 9 public functions inherited from Q3CanvasPolygonalItem
- 34 public functions inherited from Q3CanvasItem
Reimplemented Protected Functions
- 6 protected functions inherited from Q3CanvasPolygonalItem
- 1 protected function inherited from Q3CanvasItem
Member Function Documentation
Q3CanvasLine::Q3CanvasLine(Q3Canvas * canvas)
Constructs a line from (0,0) to (0,0) on canvas.
See also setPoints().
Destroys the line.
[virtual protected] Q3PointArray Q3CanvasLine::areaPoints() const
Reimplemented from Q3CanvasPolygonalItem::areaPoints().
Note that the area defined by the line is somewhat thicker than the line that is actually drawn.
[virtual protected] void Q3CanvasLine::drawShape(QPainter & p)
Reimplemented from Q3CanvasPolygonalItem::drawShape().
QPoint Q3CanvasLine::endPoint() const
Returns the end point of the line.
Reimplemented from Q3CanvasItem::moveBy().
Reimplemented from Q3CanvasItem::rtti().
Returns 7 (Q3CanvasItem::Rtti_Line).
See also Q3CanvasItem::rtti().
[virtual] void Q3CanvasLine::setPen(QPen p)
Reimplemented from Q3CanvasPolygonalItem::setPen().
Sets the line's start point to (xa, ya) and its end point to (xb, yb).
QPoint Q3CanvasLine::startPoint() const
Returns the start point of the line.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.