#include <pixel_map_generator.h>
|
| static QPixmap | generatePixmap (const QString &symbol, const QSize &size) |
| | Returns a smooth-scaled rendering of the given mana symbol icon.
|
| static void | clear () |
|
| static const QPixmap & | masterIcon (const QString &symbol) |
| | Renders symbol once at a fixed moderate size, so repeated scalings never re-rasterize the source file (SVG sources can be very expensive to rasterize).
|
◆ clear()
| void ManaSymbolPixmapGenerator::clear |
( |
| ) |
|
|
inlinestatic |
◆ generatePixmap()
| QPixmap ManaSymbolPixmapGenerator::generatePixmap |
( |
const QString & | symbol, |
|
|
const QSize & | size ) |
|
static |
Returns a smooth-scaled rendering of the given mana symbol icon.
Results are shared between all callers via a process-wide cache keyed by symbol and size, so scaling work is done once per distinct combination instead of once per widget creation or resize.
◆ masterIcon()
| const QPixmap & ManaSymbolPixmapGenerator::masterIcon |
( |
const QString & | symbol | ) |
|
|
staticprivate |
Renders symbol once at a fixed moderate size, so repeated scalings never re-rasterize the source file (SVG sources can be very expensive to rasterize).
◆ masterCache
| QHash< QString, QPixmap > ManaSymbolPixmapGenerator::masterCache |
|
staticprivate |
◆ scaledCache
| QHash< QString, QPixmap > ManaSymbolPixmapGenerator::scaledCache |
|
staticprivate |
The documentation for this class was generated from the following files: