Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qwbmphandler_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
//
7
// W A R N I N G
8
// -------------
9
//
10
// This file is not part of the Qt API. It exists purely as an
11
// implementation detail. This header file may change from version to
12
// version without notice, or even be removed.
13
//
14
// We mean it.
15
//
16
17
#
ifndef
QWBMPHANDLER_P_H
18
#
define
QWBMPHANDLER_P_H
19
20
#
include
<
qimageiohandler
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
WBMPReader;
25
26
class
QWbmpHandler
:
public
QImageIOHandler
27
{
28
public
:
29
QWbmpHandler
(QIODevice *device);
30
~
QWbmpHandler
();
31
32
bool
canRead
()
const
override
;
33
bool
read
(QImage *image)
override
;
34
bool
write
(
const
QImage &image)
override
;
35
36
QVariant
option
(
ImageOption
option)
const
override
;
37
bool
supportsOption
(
ImageOption
option)
const
override
;
38
39
static
bool
canRead
(QIODevice *device);
40
41
private
:
42
WBMPReader *m_reader;
43
};
44
45
QT_END_NAMESPACE
46
47
#
endif
/* QWBMPHANDLER_P_H */
QImageIOHandler::ImageOption
ImageOption
This enum describes the different options supported by QImageIOHandler.
Definition
qimageiohandler.h:42
QWbmpHandler
The QWbmpHandler class provides support for the WBMP image format.
Definition
qwbmphandler_p.h:27
QWbmpHandler::canRead
bool canRead() const override
Verifies if some values (magic bytes) are set as expected in the header of the file.
Definition
qwbmphandler.cpp:245
QWbmpHandler::option
QVariant option(ImageOption option) const override
Only Size option is supported.
Definition
qwbmphandler.cpp:286
QWbmpHandler::canRead
static bool canRead(QIODevice *device)
Definition
qwbmphandler.cpp:317
QWbmpHandler::~QWbmpHandler
~QWbmpHandler()
Destructor for QWbmpHandler.
Definition
qwbmphandler.cpp:236
QWbmpHandler::QWbmpHandler
QWbmpHandler(QIODevice *device)
Constructs an instance of QWbmpHandler initialized to use device.
Definition
qwbmphandler.cpp:228
QWbmpHandler::supportsOption
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
Definition
qwbmphandler.cpp:311
QWbmpHandler::write
bool write(const QImage &image) override
\reimp
Definition
qwbmphandler.cpp:275
QWbmpHandler::read
bool read(QImage *image) override
\reimp
Definition
qwbmphandler.cpp:264
QWbmpPlugin
Definition
main.cpp:19
QWbmpPlugin::create
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
Definition
main.cpp:49
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtimageformats
src
plugins
imageformats
wbmp
qwbmphandler_p.h
Generated on
for Qt by
1.18.0