digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2014-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QString>
20#include <QSize>
21#include <QPixmap>
22#include <QObject>
23#include <QVector>
24
25// Local includes
26
27#include "digikam_export.h"
28
29namespace Digikam
30{
31
34class DIGIKAM_EXPORT DWorkingPixmap : public QObject
35{
36 Q_OBJECT
37
38public:
39
40 explicit DWorkingPixmap(QObject* const parent = nullptr);
41 ~DWorkingPixmap() override = default;
42
43 bool isEmpty() const;
44 QSize frameSize() const;
45 int frameCount() const;
46 QPixmap frameAt(int index) const;
47
48private:
49
50 QVector<QPixmap> m_frames;
51};
52
53} // namespace Digikam
Definition dworkingpixmap.h:35
~DWorkingPixmap() override=default
Definition datefolderview.cpp:34