File indexing completed on 2024-10-13 10:49:36

0001 /*
0002     SPDX-FileCopyrightText: 2011 Aaron Seigo <aseigo@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QSet>
0010 
0011 #include "plasma/framesvg.h"
0012 #include "plasma/svg.h"
0013 
0014 class PanelShadows : public Plasma::Svg
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit PanelShadows(QObject *parent = nullptr, const QString &prefix = QStringLiteral("widgets/panel-background"));
0020     ~PanelShadows() override;
0021 
0022     static PanelShadows *self();
0023 
0024     void addWindow(QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders);
0025     void removeWindow(QWindow *window);
0026 
0027     void setEnabledBorders(QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders);
0028 
0029 private:
0030     class Private;
0031     Private *const d;
0032 };