Krita Source Code Documentation
Loading...
Searching...
No Matches
KisBrushStrokePreviewCache::Private Struct Reference

Classes

struct  PlaceholderStroke
 

Public Member Functions

void removeScaledVariants (const QString &baseKey)
 Remove all scaled cache entries for a base key.
 

Public Attributes

QList< QString > accessOrder
 
QHash< QString, QImage > cache
 Cached stroke previews.
 
KisPaintOpPresetSP currentPreset
 
QString currentSettingsFingerprint
 
QString diskCachePath
 
QScopedPointer< KisBrushStrokePreviewGenerator > generator
 
int maxCacheSize = 500
 
std::optional< PlaceholderStroke > noPreviewPlaceholder
 
std::optional< PlaceholderStroke > placeholder
 
KisSignalAutoConnectionsStore presetConnections
 
QHash< QString, QImage > scaledCache
 Scaled images.
 

Detailed Description

Definition at line 43 of file KisBrushStrokePreviewCache.cpp.

Member Function Documentation

◆ removeScaledVariants()

void KisBrushStrokePreviewCache::Private::removeScaledVariants ( const QString & baseKey)
inline

Remove all scaled cache entries for a base key.

Definition at line 65 of file KisBrushStrokePreviewCache.cpp.

66 {
67 QMutableHashIterator<QString, QImage> it(scaledCache);
68 const QString prefix = baseKey + QLatin1Char('_');
69 while (it.hasNext()) {
70 it.next();
71 if (it.key().startsWith(prefix)) {
72 it.remove();
73 }
74 }
75 }
QHash< QString, QImage > scaledCache
Scaled images.

References scaledCache.

Member Data Documentation

◆ accessOrder

QList<QString> KisBrushStrokePreviewCache::Private::accessOrder

Definition at line 48 of file KisBrushStrokePreviewCache.cpp.

◆ cache

QHash<QString, QImage> KisBrushStrokePreviewCache::Private::cache

Cached stroke previews.

Definition at line 45 of file KisBrushStrokePreviewCache.cpp.

◆ currentPreset

KisPaintOpPresetSP KisBrushStrokePreviewCache::Private::currentPreset

Definition at line 50 of file KisBrushStrokePreviewCache.cpp.

◆ currentSettingsFingerprint

QString KisBrushStrokePreviewCache::Private::currentSettingsFingerprint

Definition at line 52 of file KisBrushStrokePreviewCache.cpp.

◆ diskCachePath

QString KisBrushStrokePreviewCache::Private::diskCachePath

Definition at line 53 of file KisBrushStrokePreviewCache.cpp.

◆ generator

QScopedPointer<KisBrushStrokePreviewGenerator> KisBrushStrokePreviewCache::Private::generator

Definition at line 54 of file KisBrushStrokePreviewCache.cpp.

◆ maxCacheSize

int KisBrushStrokePreviewCache::Private::maxCacheSize = 500

Definition at line 49 of file KisBrushStrokePreviewCache.cpp.

◆ noPreviewPlaceholder

std::optional<PlaceholderStroke> KisBrushStrokePreviewCache::Private::noPreviewPlaceholder

Definition at line 62 of file KisBrushStrokePreviewCache.cpp.

◆ placeholder

std::optional<PlaceholderStroke> KisBrushStrokePreviewCache::Private::placeholder

Definition at line 61 of file KisBrushStrokePreviewCache.cpp.

◆ presetConnections

KisSignalAutoConnectionsStore KisBrushStrokePreviewCache::Private::presetConnections

Definition at line 51 of file KisBrushStrokePreviewCache.cpp.

◆ scaledCache

QHash<QString, QImage> KisBrushStrokePreviewCache::Private::scaledCache

Scaled images.

Definition at line 47 of file KisBrushStrokePreviewCache.cpp.


The documentation for this struct was generated from the following file: