2021-08-04 10:11:12 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
2023-04-06 09:23:37 +02:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2021-08-04 10:11:12 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
2020-10-06 15:49:46 +02:00
|
|
|
|
2022-06-13 17:01:15 +02:00
|
|
|
#include <QskBox.h>
|
2020-10-06 15:49:46 +02:00
|
|
|
|
2022-06-13 17:01:15 +02:00
|
|
|
class QskShadowMetrics;
|
2020-10-06 15:49:46 +02:00
|
|
|
|
2022-06-13 17:01:15 +02:00
|
|
|
class ShadowedBox : public QskBox
|
2020-10-06 15:49:46 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2020-12-05 15:09:31 +01:00
|
|
|
public:
|
2022-06-14 11:58:56 +02:00
|
|
|
ShadowedBox( QQuickItem* parent = nullptr );
|
2020-10-06 15:49:46 +02:00
|
|
|
~ShadowedBox() override;
|
|
|
|
|
2022-06-14 11:58:56 +02:00
|
|
|
qreal offsetX() const;
|
|
|
|
qreal offsetY() const;
|
2020-10-06 15:49:46 +02:00
|
|
|
|
2022-06-14 11:58:56 +02:00
|
|
|
qreal spreadRadius() const;
|
|
|
|
qreal blurRadius() const;
|
2021-09-18 14:48:25 +02:00
|
|
|
|
2022-06-14 11:58:56 +02:00
|
|
|
qreal opacity() const;
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
void setOffsetX( qreal );
|
|
|
|
void setOffsetY( qreal );
|
|
|
|
|
|
|
|
void setSpreadRadius( qreal );
|
|
|
|
void setBlurRadius( qreal );
|
|
|
|
|
|
|
|
void setOpacity( qreal );
|
|
|
|
|
|
|
|
private:
|
|
|
|
QskShadowMetrics shadowMetrics() const;
|
|
|
|
void setShadowMetrics( const QskShadowMetrics& );
|
2020-10-06 15:49:46 +02:00
|
|
|
};
|