trikRuntime
|
Presents a rectangle to draw on display. More...
#include <rectangle.h>
Public Member Functions | |
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. More... | |
void | draw (QPainter *painter) override |
Draws a shape with a given painter. More... | |
bool | equals (const Shape *other) const override |
Checks whether to shapes are equal. More... | |
Public Member Functions inherited from trikControl::Shape | |
Shape (const QColor &color, int penWidth) | |
virtual | ~Shape ()=default |
Additional Inherited Members | |
Protected Attributes inherited from trikControl::Shape | |
QColor | mColor |
int | mPenWidth |
Presents a rectangle to draw on display.
Rectangle::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.
|
overridevirtual |
Draws a shape with a given painter.
Implements trikControl::Shape.
|
overridevirtual |
Checks whether to shapes are equal.
Implements trikControl::Shape.