KIconEngine

KIconEngine Class Reference

#include <KIconEngine>

Inheritance diagram for KIconEngine:

Public Member Functions

 KIconEngine (const QString &iconName, KIconLoader *iconLoader, const QStringList &overlays)
 
 KIconEngine (const QString &iconName, KIconLoader *iconLoader)
 
 ~KIconEngine () override
 
QSize actualSize (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 
QList< QSizeavailableSizes (QIcon::Mode mode, QIcon::State state) const override
 
QIconEngineclone () const override
 
QString iconName () const override
 
QString key () const override
 
void paint (QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override
 
QPixmap pixmap (const QSize &size, QIcon::Mode mode, QIcon::State state) override
 
bool read (QDataStream &in) override
 
void virtual_hook (int id, void *data) override
 
bool write (QDataStream &out) const override
 
- Public Member Functions inherited from QIconEngine
virtual void addFile (const QString &fileName, const QSize &size, QIcon::Mode mode, QIcon::State state)
 
virtual void addPixmap (const QPixmap &pixmap, QIcon::Mode mode, QIcon::State state)
 
bool isNull () const const
 
QPixmap scaledPixmap (const QSize &size, QIcon::Mode mode, QIcon::State state, qreal scale)
 

Detailed Description

A class to provide rendering of KDE icons.

Currently, this class is not much more than a wrapper around QIconEngine. However, it should not be difficult to extend with features such as SVG rendered icons.

Icon themes specifying a KDE-Extensions string list setting, will limit themselves to checking these extensions exclusively, in the order specified in the setting.

Author
Hamish Rodda rodda[email protected]@kde[email protected].org

Definition at line 43 of file kiconengine.h.

Constructor & Destructor Documentation

KIconEngine::KIconEngine ( const QString iconName,
KIconLoader iconLoader,
const QStringList overlays 
)

Constructs an icon engine for a KDE named icon.

Parameters
iconNamethe name of the icon to load
iconLoaderThe KDE icon loader that this engine is to use.
overlaysAdd one or more overlays to the icon. See KIconLoader::Overlays.
See also
KIconLoader

Definition at line 26 of file kiconengine.cpp.

KIconEngine::KIconEngine ( const QString iconName,
KIconLoader iconLoader 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 33 of file kiconengine.cpp.

KIconEngine::~KIconEngine ( )
inlineoverride

Destructor.

Definition at line 93 of file kiconengine.h.

Member Function Documentation

QSize KIconEngine::actualSize ( const QSize size,
QIcon::Mode  mode,
QIcon::State  state 
)
overridevirtual

Reimplementation.

Reimplemented from QIconEngine.

Definition at line 59 of file kiconengine.cpp.

QList<QSize> KIconEngine::availableSizes ( QIcon::Mode  mode,
QIcon::State  state 
) const
overridevirtual

Reimplementation.

Reimplemented from QIconEngine.

QString KIconEngine::iconName ( ) const
overridevirtual

Reimplementation.

Reimplemented from QIconEngine.

Definition at line 123 of file kiconengine.cpp.

void KIconEngine::paint ( QPainter painter,
const QRect rect,
QIcon::Mode  mode,
QIcon::State  state 
)
overridevirtual

Reimplementation.

Implements QIconEngine.

Definition at line 67 of file kiconengine.cpp.

QPixmap KIconEngine::pixmap ( const QSize size,
QIcon::Mode  mode,
QIcon::State  state 
)
overridevirtual

Reimplementation.

Reimplemented from QIconEngine.

Definition at line 118 of file kiconengine.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 1 2020 22:35:13 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.