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
qsvgiconengine.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 QSVGICONENGINE_H
5#define QSVGICONENGINE_H
6
7#include <QtGui/qiconengine.h>
8#include <QtCore/qshareddata.h>
9
11
13
15{
16public:
20 void paint(QPainter *painter, const QRect &rect,
23 QIcon::State state) override;
25 QIcon::State state) override;
26
28 QIcon::State state) override;
29 void addFile(const QString &fileName, const QSize &size,
31
32 QString key() const override;
33 QIconEngine *clone() const override;
34 bool read(QDataStream &in) override;
35 bool write(QDataStream &out) const override;
36
37 void virtual_hook(int id, void *data) override;
38private:
39 QSharedDataPointer<QSvgIconEnginePrivate> d;
40};
41
43
44#endif
\inmodule QtCore\reentrant
Definition qdatastream.h:46
The QIconEngine class provides an abstract base class for QIcon renderers.
Definition qiconengine.h:15
Mode
This enum type describes the mode for which a pixmap is intended to be used.
Definition qicon.h:22
State
This enum describes the state for which a pixmap is intended to be used.
Definition qicon.h:23
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QIconEngine * clone() const override
Reimplement this method to return a clone of this icon engine.
void virtual_hook(int id, void *data) override
bool read(QDataStream &in) override
Reads icon engine contents from the QDataStream in.
bool write(QDataStream &out) const override
Writes the contents of this engine to the QDataStream out.
void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state) override
Called by QIcon::addFile().
QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state) override
Returns the actual size of the icon the engine provides for the requested size, mode and state.
void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state) override
Called by QIcon::addPixmap().
QString key() const override
\variable QIconEngine::ScaledPixmapArgument::size
QPainter paint
rect
[4]
else opt state
[0]
Combined button and popup list for selecting options.
GLenum mode
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint in
QTextStream out(stdout)
[7]
QSharedPointer< T > other(t)
[5]
widget render & pixmap
QPainter painter(this)
[7]