2022-09-26 14:44:23 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef QSK_SHAPE_NODE_H
|
|
|
|
#define QSK_SHAPE_NODE_H
|
|
|
|
|
|
|
|
#include "QskGlobal.h"
|
|
|
|
#include <qsgnode.h>
|
|
|
|
|
2022-09-28 20:14:10 +02:00
|
|
|
class QGradient;
|
2022-09-26 14:44:23 +02:00
|
|
|
class QColor;
|
|
|
|
class QPainterPath;
|
|
|
|
|
|
|
|
class QskShapeNodePrivate;
|
|
|
|
|
2022-09-26 17:49:47 +02:00
|
|
|
class QSK_EXPORT QskShapeNode : public QSGGeometryNode
|
2022-09-26 14:44:23 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
QskShapeNode();
|
|
|
|
|
2022-10-13 19:39:57 +02:00
|
|
|
void updateNode( const QPainterPath&, const QTransform&,
|
|
|
|
const QRectF&, const QGradient*, qreal = 0.0 );
|
|
|
|
|
|
|
|
void updateNode( const QPainterPath&,
|
|
|
|
const QTransform&, const QColor& );
|
2022-09-26 14:44:23 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Q_DECLARE_PRIVATE( QskShapeNode )
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|