KDEUI
kpixmapsequence.h
Go to the documentation of this file.
00001 /* 00002 Copyright 2008 Aurélien Gâteau <agateau@kde.org> 00003 Copyright 2009 Sebastian Trueg <trueg@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef _K_PIXMAPSEQUENCE_H_ 00022 #define _K_PIXMAPSEQUENCE_H_ 00023 00024 #include <QtCore/QSharedDataPointer> 00025 #include <QtCore/QSize> 00026 00027 #include "kdeui_export.h" 00028 #include <kiconloader.h> 00029 00030 class QPixmap; 00031 00045 class KDEUI_EXPORT KPixmapSequence 00046 { 00047 public: 00051 KPixmapSequence(); 00052 00056 KPixmapSequence(const KPixmapSequence &other); 00057 00066 explicit KPixmapSequence(const QPixmap &pixmap, const QSize &frameSize = QSize()); 00067 00074 explicit KPixmapSequence(const QString &iconName, int size = KIconLoader::SizeSmall); 00075 00079 ~KPixmapSequence(); 00080 00084 KPixmapSequence &operator=(const KPixmapSequence &other); 00085 00091 bool isValid() const; 00092 00098 bool isEmpty() const; 00099 00103 QSize frameSize() const; 00104 00108 int frameCount() const; 00109 00115 QPixmap frameAt(int index) const; 00116 00117 private: 00118 class Private; 00119 QSharedDataPointer<Private> d; 00120 }; 00121 00122 #endif
KDE 4.6 API Reference