|
Schim
|
A visual line object. More...
#include <line.h>
Public Member Functions | |
| Line () | |
| Construct a null line. | |
| Line (qreal x1, qreal y1, qreal x2, qreal y2) | |
| Usual way to construct a line. | |
| Line (const Line &line) | |
| Copy constructor. | |
| QPointF | getPos () const override |
| Return the position of the object in the sheet. | |
| void | setPos (const QPointF &pos) override |
| Set the position of the object in the sheet. | |
Public Member Functions inherited from Object | |
| virtual | ~Object ()=default |
| This destructor does nothing. More... | |
A visual line object.
A line is represented by two points. We take its position to be the first of those points.
Line is derived from QLineF, so you can use all its base functions.
1.8.13