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