Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qicohandler.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#ifndef QTICOHANDLER_H
4#define QTICOHANDLER_H
5
6#include <QtGui/QImageIOHandler>
7
9
10class ICOReader;
12{
13public:
15 virtual ~QtIcoHandler();
16
17 bool canRead() const override;
18 bool read(QImage *image) override;
19 bool write(const QImage &image) override;
20
21 int imageCount() const override;
22 bool jumpToImage(int imageNumber) override;
23 bool jumpToNextImage() override;
24
25 static bool canRead(QIODevice *device);
26
27 bool supportsOption(ImageOption option) const override;
28 QVariant option(ImageOption option) const override;
29
30private:
31 int m_currentIconIndex;
32 ICOReader *m_pICOReader;
33 mutable bool knownCanRead = false;
34};
35
37
38#endif /* QTICOHANDLER_H */
39
\inmodule QtCore \reentrant
Definition qiodevice.h:34
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt.
ImageOption
This enum describes the different options supported by QImageIOHandler.
QIODevice * device() const
Returns the device currently assigned to the QImageIOHandler.
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore
Definition qvariant.h:65
The QtIcoHandler class provides support for the ICO image format.
Definition qicohandler.h:12
bool canRead() const override
Verifies if some values (magic bytes) are set as expected in the header of the file.
bool read(QImage *image) override
\reimp
virtual ~QtIcoHandler()
Destructor for QtIcoHandler.
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
bool jumpToNextImage() override
\reimp
int imageCount() const override
\reimp
bool jumpToImage(int imageNumber) override
\reimp
bool write(const QImage &image) override
\reimp
QtIcoHandler(QIODevice *device)
Constructs an instance of QtIcoHandler initialized to use device.
Combined button and popup list for selecting options.
Definition image.cpp:4
GLuint GLenum option