Schim
Public Member Functions | List of all members
Line Class Reference

A visual line object. More...

#include <line.h>

Inheritance diagram for Line:
[legend]
Collaboration diagram for Line:
[legend]

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...
 

Detailed Description

A visual line object.

A line is represented by two points. We take its position to be the first of those points.

Note
Line is derived from QLineF, so you can use all its base functions.

The documentation for this class was generated from the following file: