File indexing completed on 2024-05-05 05:35:16
0001 #ifndef oxygendecohelper_h 0002 #define oxygendecohelper_h 0003 0004 /* 0005 * SPDX-FileCopyrightText: 2013 Hugo Pereira Da Costa <hugo.pereira@free.fr> 0006 * SPDX-FileCopyrightText: 2008 Long Huynh Huu <long.upcase@googlemail.com> 0007 * SPDX-FileCopyrightText: 2007 Matthew Woehlke <mw_triad@users.sourceforge.net> 0008 * SPDX-FileCopyrightText: 2007 Casper Boemann <cbr@boemann.dk> 0009 * SPDX-FileCopyrightText: 2015 David Edmundson <davidedmundson@kde.org> 0010 * 0011 * SPDX-License-Identifier: LGPL-2.0-only 0012 */ 0013 0014 #include "oxygenhelper.h" 0015 #include <ksharedconfig.h> 0016 0017 //* helper class 0018 /*! contains utility functions used at multiple places in oxygen style */ 0019 namespace Oxygen 0020 { 0021 class DecoHelper : public Helper 0022 { 0023 public: 0024 //* constructor 0025 explicit DecoHelper(); 0026 0027 //* reset all caches 0028 void invalidateCaches() override; 0029 0030 //* windeco buttons 0031 QPixmap windecoButton(const QColor &color, const QColor &glow, bool sunken, int size = 21); 0032 0033 private: 0034 //* windeco buttons 0035 Cache<QPixmap> _windecoButtonCache; 0036 }; 0037 } 0038 0039 #endif // __OXYGEN_STYLE_HELPER_H