25 Rect(qreal x, qreal y, qreal width, qreal height);
30 Object *clone()
const override;
33 QPointF
getPos()
const override;
34 float getLinewidth()
const;
35 QString getProperty(
const QString &name)
const override;
38 void setPos(
const QPointF &pos)
override;
39 void setLinewidth(
float lw);
40 void setProperty(
const QString &name,
const QString &value)
override;
43 bool operator==(
const Rect &obj)
const;
44 bool operator!=(
const Rect &obj)
const;
49 float linewidth = 0.5;
The abstract base class for all objects in a sheet.
Definition: object.h:21
Rect()
Construct a null rectangle.
A visual rectangle object.
Definition: rect.h:14
void setPos(const QPointF &pos) override
Set the position of the object in the sheet.
QPointF getPos() const override
Return the position of the object in the sheet.