![]() |
NDEVR
API Documentation
|
Used to render any icons or fetch any pixmaps within the software. More...
Public Member Functions | |
| NDEVRIconEngine (const UUID &id) | |
| Constructs an icon engine with the given unique identifier. | |
| virtual bool | canProcess (const StringView &icon, const IconThemeSettings &theme, QIcon::Mode mode) const =0 |
| Checks whether this engine can render the specified icon. | |
| virtual QIcon | createIcon (const StringView &icon, const IconThemeSettings &theme, QIcon::Mode mode=QIcon::Mode::Normal)=0 |
| Creates a QIcon for the specified icon resource and theme. | |
| UUID | id () const |
| Returns the unique identifier for this icon engine. | |
Used to render any icons or fetch any pixmaps within the software.
More rendering engines can be added to create QIcon or QPixmap objects for given resources.
Definition at line 108 of file QTIconManager.h.
|
inline |
Constructs an icon engine with the given unique identifier.
| [in] | id | Unique identifier for this engine. |
Definition at line 115 of file QTIconManager.h.
References id().
|
nodiscardpure virtual |
Checks whether this engine can render the specified icon.
| [in] | icon | The icon resource identifier. |
| [in] | theme | The icon theme settings. |
| [in] | mode | The icon mode. |
Implemented in SVGIconEngine.
|
nodiscardpure virtual |
Creates a QIcon for the specified icon resource and theme.
| [in] | icon | The icon resource identifier. |
| [in] | theme | The icon theme settings to apply. |
| [in] | mode | The icon mode (Normal, Disabled, Active, Selected). |
Implemented in SVGIconEngine.
|
inlinenodiscard |
Returns the unique identifier for this icon engine.
Definition at line 138 of file QTIconManager.h.
Referenced by NDEVRIconEngine().