digiKam
dworkingpixmap.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2014-09-12
7  * Description : A working pixmap manager.
8  *
9  * Copyright (C) 2014-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_DWORKING_PIXMAP_H
25 #define DIGIKAM_DWORKING_PIXMAP_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QSize>
31 #include <QPixmap>
32 #include <QObject>
33 #include <QVector>
34 
35 // Local includes
36 
37 #include "digikam_export.h"
38 
39 namespace Digikam
40 {
41 
44 class DIGIKAM_EXPORT DWorkingPixmap : public QObject
45 {
46  Q_OBJECT
47 
48 public:
49 
50  explicit DWorkingPixmap(QObject* const parent = nullptr);
51  ~DWorkingPixmap() override;
52 
53  bool isEmpty() const;
54  QSize frameSize() const;
55  int frameCount() const;
56  QPixmap frameAt(int index) const;
57 
58 private:
59 
60  QVector<QPixmap> m_frames;
61 };
62 
63 } // namespace Digikam
64 
65 #endif // DIGIKAM_DWORKING_PIXMAP_H
Definition: dworkingpixmap.h:45
Definition: datefolderview.cpp:43