17 #include <QtCore/QList> 18 #include <QtCore/QPoint> 19 #include <QtCore/QRect> 20 #include <QtGui/QColor> 63 void drawLine(
int x1,
int y1,
int x2,
int y2);
71 void drawRect(
int x,
int y,
int width,
int height,
bool filled =
false);
79 void drawEllipse(
int x,
int y,
int width,
int height,
bool filled =
false);
88 void drawArc(
int x,
int y,
int width,
int height,
int startAngle,
int spanAngle);
91 void addLabel(
const QString &text,
int x,
int y);
98 virtual void paintEvent(QPaintEvent *paintEvent);
100 void addShape(
Shape *shape);
103 QHash<QPair<int, int>, QPair<QColor, QString>> mLabels;
105 QList<Shape *> mElements;
110 QColor mCurrentPenColor;
113 int mCurrentPenWidth;
116 QScopedPointer<QFontMetrics> mFontMetrics;
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
var y
Definition: file-test.js:5