35 lines
967 B
C++
35 lines
967 B
C++
/******************************************************************************
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
*****************************************************************************/
|
|
|
|
#ifndef QSK_RECTANGLE_NODE_H
|
|
#define QSK_RECTANGLE_NODE_H
|
|
|
|
#include "QskGlobal.h"
|
|
#include <qsgnode.h>
|
|
|
|
class QskGradient;
|
|
class QskBoxShapeMetrics;
|
|
class QskRectangleNodePrivate;
|
|
|
|
/*
|
|
QskRectangleNode is for rounded rectangles without a border.
|
|
Depending on the type of gradient it uses a different
|
|
material/geometry combination.
|
|
*/
|
|
class QSK_EXPORT QskRectangleNode : public QSGGeometryNode
|
|
{
|
|
public:
|
|
QskRectangleNode();
|
|
~QskRectangleNode() override;
|
|
|
|
void updateNode( const QRectF&, const QskGradient& );
|
|
void updateNode( const QRectF&, const QskBoxShapeMetrics&, const QskGradient& );
|
|
|
|
private:
|
|
Q_DECLARE_PRIVATE( QskRectangleNode )
|
|
};
|
|
|
|
#endif
|