File indexing completed on 2025-04-27 14:21:35
0001 /* 0002 * Copyright 2011 by Aaron Seigo <aseigo@kde.org> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU Library General Public License version 2, 0006 * or (at your option) any later version. 0007 * 0008 * This program is distributed in the hope that it will be useful, 0009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0011 * GNU General Public License for more details 0012 * 0013 * You should have received a copy of the GNU Library General Public 0014 * License along with this program; if not, write to the 0015 * Free Software Foundation, Inc., 0016 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef PANELSHADOWS_P_H 0020 #define PANELSHADOWS_P_H 0021 0022 #include <QSet> 0023 0024 #include "plasma/framesvg.h" 0025 #include "plasma/svg.h" 0026 0027 0028 class PanelShadows : public Plasma::Svg 0029 { 0030 Q_OBJECT 0031 0032 public: 0033 explicit PanelShadows(QObject *parent = nullptr, const QString &prefix = QStringLiteral("widgets/panel-background")); 0034 ~PanelShadows() override; 0035 0036 static PanelShadows *self(); 0037 0038 void addWindow(const QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders); 0039 void removeWindow(const QWindow *window); 0040 0041 void setEnabledBorders(const QWindow *window, Plasma::FrameSvg::EnabledBorders enabledBorders = Plasma::FrameSvg::AllBorders); 0042 0043 bool hasShadows() const; 0044 0045 private: 0046 class Private; 0047 Private * const d; 0048 }; 0049 0050 #endif 0051