Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QGradientCache Class Reference
Collaboration diagram for QGradientCache:

Classes

struct  CacheInfo

Public Types

using QGradientColorTableHash = QMultiHash<quint64, std::shared_ptr<const CacheInfo>>
using QGradientColorTableHash = QMultiHash<quint64, std::shared_ptr<const CacheInfo>>

Public Member Functions

std::shared_ptr< const CacheInfogetBuffer (const QGradient &gradient, int opacity)
int paletteSize () const
std::shared_ptr< const CacheInfogetBuffer (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 CacheInfoaddCacheElement (quint64 hash_val, const QGradient &gradient, int opacity)
int maxCacheSize () const
void generateGradientColorTable (const QGradient &g, QRgba64 *colorTable, int size, int opacity) const
std::shared_ptr< const CacheInfoaddCacheElement (quint64 hash_val, const QGradient &gradient, int opacity)

Protected Attributes

QGradientColorTableHash cache
QMutex mutex

Detailed Description

Definition at line 4192 of file qpaintengine_raster.cpp.

Member Typedef Documentation

◆ QGradientColorTableHash [1/2]

Definition at line 4206 of file qpaintengine_raster.cpp.

◆ QGradientColorTableHash [2/2]

Definition at line 4206 of file qpaintengine_raster.cpp.

Member Function Documentation

◆ addCacheElement() [1/2]

std::shared_ptr< const CacheInfo > QGradientCache::addCacheElement ( quint64 hash_val,
const QGradient & gradient,
int opacity )
inlineprotected

Definition at line 4238 of file qpaintengine_raster.cpp.

◆ addCacheElement() [2/2]

std::shared_ptr< const CacheInfo > QGradientCache::addCacheElement ( quint64 hash_val,
const QGradient & gradient,
int opacity )
inlineprotected

Definition at line 4238 of file qpaintengine_raster.cpp.

◆ generateGradientColorTable() [1/2]

void QGradientCache::generateGradientColorTable ( const QGradient & g,
QRgba64 * colorTable,
int size,
int opacity ) const
inlineprotected

Definition at line 4254 of file qpaintengine_raster.cpp.

◆ generateGradientColorTable() [2/2]

void QGradientCache::generateGradientColorTable ( const QGradient & g,
QRgba64 * colorTable,
int size,
int opacity ) const
inlineprotected

◆ getBuffer() [1/2]

std::shared_ptr< const CacheInfo > QGradientCache::getBuffer ( const QGradient & gradient,
int opacity )
inline

Definition at line 4208 of file qpaintengine_raster.cpp.

◆ getBuffer() [2/2]

std::shared_ptr< const CacheInfo > QGradientCache::getBuffer ( const QGradient & gradient,
int opacity )
inline

Definition at line 4208 of file qpaintengine_raster.cpp.

◆ maxCacheSize() [1/2]

int QGradientCache::maxCacheSize ( ) const
inlineprotected

Definition at line 4234 of file qpaintengine_raster.cpp.

◆ maxCacheSize() [2/2]

int QGradientCache::maxCacheSize ( ) const
inlineprotected

Definition at line 4234 of file qpaintengine_raster.cpp.

◆ paletteSize() [1/2]

int QGradientCache::paletteSize ( ) const
inline

Definition at line 4232 of file qpaintengine_raster.cpp.

◆ paletteSize() [2/2]

int QGradientCache::paletteSize ( ) const
inline

Definition at line 4232 of file qpaintengine_raster.cpp.

Member Data Documentation

◆ cache

QGradientColorTableHash QGradientCache::cache
protected

Definition at line 4250 of file qpaintengine_raster.cpp.

◆ mutex

QMutex QGradientCache::mutex
protected

Definition at line 4251 of file qpaintengine_raster.cpp.


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