Base class for logic that can be used to resolve a Pixmap resource and turn it into a QPixmap for use by the NDEVR API.
More...
|
| virtual bool | canPotentiallyResolve (const StringView &pixmap_resource)=0 |
| | Checks whether this resolver can potentially resolve the given pixmap resource.
|
| virtual UUID | id () const =0 |
| | Returns the unique identifier for this resolver.
|
| virtual bool | requestSet (const StringView &pixmap_resource, QPixmap map, QIcon::Mode mode)=0 |
| | Requests that a pixmap be stored for the given resource identifier.
|
| virtual QPixmap | resolve (const StringView &pixmap_resource, QIcon::Mode mode, const QSize &requested_size, Dictionary< UUID, QPixmap > &pixmaps)=0 |
| | Resolves a pixmap resource identifier into a QPixmap.
|
Base class for logic that can be used to resolve a Pixmap resource and turn it into a QPixmap for use by the NDEVR API.
Definition at line 206 of file QTIconManager.h.
◆ canPotentiallyResolve()
| virtual bool PixmapResolver::canPotentiallyResolve |
( |
const StringView & | pixmap_resource | ) |
|
|
pure virtual |
Checks whether this resolver can potentially resolve the given pixmap resource.
- Parameters
-
| [in] | pixmap_resource | The resource identifier to check. |
- Returns
- True if resolution may be possible.
◆ id()
| virtual UUID PixmapResolver::id |
( |
| ) |
const |
|
pure virtual |
Returns the unique identifier for this resolver.
- Returns
- The resolver UUID.
◆ requestSet()
| virtual bool PixmapResolver::requestSet |
( |
const StringView & | pixmap_resource, |
|
|
QPixmap | map, |
|
|
QIcon::Mode | mode ) |
|
pure virtual |
Requests that a pixmap be stored for the given resource identifier.
- Parameters
-
| [in] | pixmap_resource | The resource identifier. |
| [in] | map | The pixmap to store. |
| [in] | mode | The icon mode. |
- Returns
- True if the pixmap was successfully stored.
◆ resolve()
| virtual QPixmap PixmapResolver::resolve |
( |
const StringView & | pixmap_resource, |
|
|
QIcon::Mode | mode, |
|
|
const QSize & | requested_size, |
|
|
Dictionary< UUID, QPixmap > & | pixmaps ) |
|
pure virtual |
Resolves a pixmap resource identifier into a QPixmap.
- Parameters
-
| [in] | pixmap_resource | The resource identifier to resolve. |
| [in] | mode | The icon mode. |
| [in] | requested_size | The desired pixmap size. |
| [in] | pixmaps | Cache dictionary for storing resolved pixmaps. |
- Returns
- The resolved QPixmap.
The documentation for this class was generated from the following file: