2021-08-04 10:11:12 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
2020-10-06 15:49:46 +02:00
|
|
|
|
|
|
|
#include <QSGGeometryNode>
|
|
|
|
|
|
|
|
class QColor;
|
|
|
|
class QskBoxShapeMetrics;
|
|
|
|
|
|
|
|
class BoxShadowNodePrivate;
|
|
|
|
|
|
|
|
class BoxShadowNode : public QSGGeometryNode
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
BoxShadowNode();
|
|
|
|
~BoxShadowNode() override;
|
|
|
|
|
|
|
|
void setRect( const QRectF& );
|
|
|
|
void setShape( const QskBoxShapeMetrics& );
|
|
|
|
void setColor( const QColor& );
|
|
|
|
void setShadow( qreal extent, qreal dx, qreal dy );
|
|
|
|
|
|
|
|
void updateGeometry();
|
|
|
|
|
2020-12-05 15:09:31 +01:00
|
|
|
private:
|
2020-10-06 15:49:46 +02:00
|
|
|
Q_DECLARE_PRIVATE( BoxShadowNode )
|
|
|
|
};
|