virtual QString key() const
Returns a key that identifies this icon engine.
The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
QString iconName()
Returns the name used to create the engine, if available.
virtual QSize actualSize(const QSize &size, QIcon::Mode mode, QIcon::State state)
Returns the actual size of the icon the engine provides for the requested size, mode and state...
virtual QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state)
Returns the icon as a pixmap with the required size, mode, and state.
State
This enum describes the state for which a pixmap is intended to be used.
The QString class provides a Unicode character string.
QIcon::Mode mode
the requested mode of an image.
QList< QSize > availableSizes(QIcon::Mode mode=QIcon::Normal, QIcon::State state=QIcon::Off)
Returns sizes of all images that are contained in the engine for the specific mode and state...
#define QT_BEGIN_NAMESPACE
This macro expands to.
This struct represents arguments to virtual_hook() function when id parameter is QIconEngineV2::Avail...
Mode
This enum type describes the mode for which a pixmap is intended to be used.
virtual void virtual_hook(int id, void *data)
Additional method to allow extending QIconEngineV2 without adding new virtual methods (and without br...
virtual void addPixmap(const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state)
Called by QIcon::addPixmap().
QList< QSize > sizes
image sizes that are available with specified mode and
static const char * data(const QByteArray &arr)
virtual bool read(QDataStream &in)
Reads icon engine contents from the QDataStream in.
void clear()
Removes all items from the list.
virtual QIconEngineV2 * clone() const
Returns a clone of this icon engine.
The QIconEngineV2 class provides an abstract base class for QIcon renderers.
virtual bool write(QDataStream &out) const
Writes the contents of this engine to the QDataStream out.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
The QPixmap class is an off-screen image representation that can be used as a paint device...
virtual ~QIconEngine()
Destroys the icon engine.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QDataStream class provides serialization of binary data to a QIODevice.
QIcon::State state
the requested state of an image.
virtual void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)=0
Uses the given painter to paint the icon with the required mode and state into the rectangle rect...
virtual void addFile(const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
Called by QIcon::addFile().