Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmnghandler_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
6#ifndef QMNGHANDLER_P_H
7#define QMNGHANDLER_P_H
8
9#include <QtCore/qscopedpointer.h>
10#include <QtGui/qimageiohandler.h>
11
13
14class QImage;
15class QByteArray;
16class QIODevice;
17class QVariant;
18class QMngHandlerPrivate;
19
21{
22 public:
24 ~QMngHandler();
25 bool canRead() const override;
26 bool read(QImage *image) override;
27 bool write(const QImage &image) override;
28 int currentImageNumber() const override;
29 int imageCount() const override;
30 bool jumpToImage(int imageNumber) override;
32 int loopCount() const override;
33 int nextImageDelay() const override;
34 static bool canRead(QIODevice *device);
35 QVariant option(ImageOption option) const override;
36 void setOption(ImageOption option, const QVariant & value) override;
37 bool supportsOption(ImageOption option) const override;
38
39 private:
42};
43
44QT_END_NAMESPACE
45
46#endif // QMNGHANDLER_P_H
ImageOption
This enum describes the different options supported by QImageIOHandler.
int imageCount() const override
\reimp
static bool canRead(QIODevice *device)
bool supportsOption(ImageOption option) const override
\reimp
bool read(QImage *image) override
\reimp
int loopCount() const override
\reimp
bool jumpToNextImage() override
\reimp
QVariant option(ImageOption option) const override
\reimp
void setOption(ImageOption option, const QVariant &value) override
\reimp
int currentImageNumber() const override
\reimp
int nextImageDelay() const override
\reimp
bool write(const QImage &image) override
\reimp
bool canRead() const override
\reimp
bool jumpToImage(int imageNumber) override
\reimp
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
Definition main.cpp:46
Combined button and popup list for selecting options.