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
4#ifndef QMNGHANDLER_P_H
5#define QMNGHANDLER_P_H
6
7#include <QtCore/qscopedpointer.h>
8#include <QtGui/qimageiohandler.h>
9
11
12class QImage;
13class QByteArray;
14class QIODevice;
15class QVariant;
16class QMngHandlerPrivate;
17
19{
20 public:
22 ~QMngHandler();
23 bool canRead() const override;
24 bool read(QImage *image) override;
25 bool write(const QImage &image) override;
26 int currentImageNumber() const override;
27 int imageCount() const override;
28 bool jumpToImage(int imageNumber) override;
30 int loopCount() const override;
31 int nextImageDelay() const override;
32 static bool canRead(QIODevice *device);
33 QVariant option(ImageOption option) const override;
34 void setOption(ImageOption option, const QVariant & value) override;
35 bool supportsOption(ImageOption option) const override;
36
37 private:
40};
41
42QT_END_NAMESPACE
43
44#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:44