![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | CacheInfo |
Public Types | |
using | QGradientColorTableHash = QMultiHash< quint64, std::shared_ptr< const CacheInfo > > |
Public Member Functions | |
std::shared_ptr< const CacheInfo > | getBuffer (const QGradient &gradient, int opacity) |
int | paletteSize () const |
Protected Member Functions | |
int | maxCacheSize () const |
void | generateGradientColorTable (const QGradient &g, QRgba64 *colorTable, int size, int opacity) const |
std::shared_ptr< const CacheInfo > | addCacheElement (quint64 hash_val, const QGradient &gradient, int opacity) |
Protected Attributes | |
QGradientColorTableHash | cache |
QMutex | mutex |
Definition at line 4199 of file qpaintengine_raster.cpp.
using QGradientCache::QGradientColorTableHash = QMultiHash<quint64, std::shared_ptr<const CacheInfo> > |
Definition at line 4213 of file qpaintengine_raster.cpp.
|
inlineprotected |
Definition at line 4245 of file qpaintengine_raster.cpp.
References QMultiHash< Key, T >::begin(), QRandomGenerator::bounded(), cache, QMultiHash< Key, T >::erase(), generateGradientColorTable(), QRandomGenerator::global(), GRADIENT_STOPTABLE_SIZE, i, QMultiHash< Key, T >::insert(), QGradient::interpolationMode(), maxCacheSize(), paletteSize(), QMultiHash< Key, T >::size(), and QGradient::stops().
Referenced by getBuffer().
|
inlineprotected |
Definition at line 4261 of file qpaintengine_raster.cpp.
References QRgba64::alpha(), QRgba64::blue(), QGradient::ColorInterpolation, combineAlpha256(), dist(), QList< T >::first(), GRADIENT_STOPTABLE_SIZE, QRgba64::green(), i, interpolate256(), QGradient::interpolationMode(), pos, Q_ASSERT, qMin(), qPremultiply(), qRgba64(), qRound(), qSwap(), QRgba64::red(), QList< T >::size(), and QGradient::stops().
Referenced by addCacheElement().
|
inline |
Definition at line 4215 of file qpaintengine_raster.cpp.
References addCacheElement(), cache, QMultiHash< quint64, std::shared_ptr< const CacheInfo > >::const_iterator, QMultiHash< Key, T >::constEnd(), QMultiHash< Key, T >::constFind(), i, QGradient::interpolationMode(), it, lock, mutex, QList< T >::size(), and QGradient::stops().
|
inlineprotected |
Definition at line 4241 of file qpaintengine_raster.cpp.
Referenced by addCacheElement().
|
inline |
Definition at line 4239 of file qpaintengine_raster.cpp.
References GRADIENT_STOPTABLE_SIZE.
Referenced by addCacheElement().
|
protected |
Definition at line 4257 of file qpaintengine_raster.cpp.
Referenced by addCacheElement(), and getBuffer().
|
protected |
Definition at line 4258 of file qpaintengine_raster.cpp.
Referenced by getBuffer().