23 lines
425 B
C++
23 lines
425 B
C++
#ifndef LINE_H
|
|
#define LINE_H
|
|
|
|
#include <QPoint>
|
|
#include <QString>
|
|
|
|
class Line
|
|
{
|
|
private:
|
|
QPoint start, end;
|
|
QString color = QString("red");
|
|
public:
|
|
Line();
|
|
void setStartPoint(QPoint newPoint);
|
|
void setEndPoint(QPoint newPoint);
|
|
void setColor(QString color);
|
|
const QPoint& getStart() const;
|
|
const QPoint& getEnd() const;
|
|
QString getColor();
|
|
QString toLuaTable();
|
|
};
|
|
|
|
#endif // LINE_H
|