26 Rectangle(
int x,
int y,
int width,
int height, QColor color,
int penWidth,
bool filled);
28 void draw(QPainter *painter)
override;
void draw(QPainter *painter) override
Draws a shape with a given painter.
Definition: rectangle.cpp:26
Presents a rectangle to draw on display.
Definition: rectangle.h:22
Rectangle(int x, int y, int width, int height, QColor color, int penWidth, bool filled)
Rectangle defined by top left corner (x,y), width and height.
Definition: rectangle.cpp:19
Base class for elements that can be drawn on display.
Definition: shape.h:22
Definition: trikCommunicator.h:27
var x
Definition: file-test.js:2
bool equals(const Shape *other) const override
Checks whether to shapes are equal.
Definition: rectangle.cpp:35
var y
Definition: file-test.js:5