KWidgetsAddons

kpixmapsequence.h
1 /*
2  SPDX-FileCopyrightText: 2008 Aurélien Gâteau <[email protected]>
3  SPDX-FileCopyrightText: 2009 Sebastian Trueg <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7 
8 #ifndef _K_PIXMAPSEQUENCE_H_
9 #define _K_PIXMAPSEQUENCE_H_
10 
11 #include <QSharedDataPointer>
12 #include <QSize>
13 
14 #include <kwidgetsaddons_export.h>
15 
16 class QPixmap;
17 
31 class KWIDGETSADDONS_EXPORT KPixmapSequence
32 {
33 public:
38 
42  KPixmapSequence(const KPixmapSequence &other);
43 
52  explicit KPixmapSequence(const QPixmap &pixmap, const QSize &frameSize = QSize());
53 
60  KPixmapSequence(const QString &fullPath, int size);
61 
65  ~KPixmapSequence();
66 
70  KPixmapSequence &operator=(const KPixmapSequence &other);
71 
77  bool isValid() const;
78 
84  bool isEmpty() const;
85 
89  QSize frameSize() const;
90 
94  int frameCount() const;
95 
101  QPixmap frameAt(int index) const;
102 
103 private:
104  class Private;
106 };
107 
108 #endif
Loads and gives access to the frames of a typical multi-row pixmap as often used for spinners...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Sep 19 2020 22:44:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.