diff options
Diffstat (limited to 'softwarecontext/rectanglenode.h')
-rw-r--r-- | softwarecontext/rectanglenode.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/softwarecontext/rectanglenode.h b/softwarecontext/rectanglenode.h new file mode 100644 index 0000000000..1b5f1af0a0 --- /dev/null +++ b/softwarecontext/rectanglenode.h @@ -0,0 +1,33 @@ +#ifndef RECTANGLENODE_H +#define RECTANGLENODE_H + +#include <private/qsgadaptationlayer_p.h> + +#include <QPen> +#include <QBrush> + +class RectangleNode : public QSGRectangleNode +{ +public: + RectangleNode(); + + virtual void setRect(const QRectF &rect); + virtual void setColor(const QColor &color); + virtual void setPenColor(const QColor &color); + virtual void setPenWidth(qreal width); + virtual void setGradientStops(const QGradientStops &stops); + virtual void setRadius(qreal radius); + virtual void setAntialiasing(bool antialiasing) { Q_UNUSED(antialiasing) } + virtual void setAligned(bool aligned); + + virtual void update(); + + virtual void paint(QPainter *); + +private: + QPen m_pen; + QBrush m_brush; + QRectF m_rect; +}; + +#endif // RECTANGLENODE_H |