Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPaintDeviceCache::NonDefaultPixelCache Struct Reference
+ Inheritance diagram for KisPaintDeviceCache::NonDefaultPixelCache:

Public Member Functions

QRect calculateNewValue () const override
 
 NonDefaultPixelCache (KisPaintDevice *paintDevice)
 
- Public Member Functions inherited from KisLockFreeCacheWithModeConsistency< QRect, bool >
QRect getValue (bool mode) const
 
void invalidate ()
 
bool tryGetValue (QRect &result, bool mode) const
 
virtual ~KisLockFreeCacheWithModeConsistency ()
 

Private Attributes

KisPaintDevicem_paintDevice
 

Additional Inherited Members

Detailed Description

Definition at line 128 of file kis_paint_device_cache.h.

Constructor & Destructor Documentation

◆ NonDefaultPixelCache()

KisPaintDeviceCache::NonDefaultPixelCache::NonDefaultPixelCache ( KisPaintDevice * paintDevice)
inline

Definition at line 129 of file kis_paint_device_cache.h.

129: m_paintDevice(paintDevice) {}

Member Function Documentation

◆ calculateNewValue()

QRect KisPaintDeviceCache::NonDefaultPixelCache::calculateNewValue ( ) const
inlineoverridevirtual

Calculate the value. Used by the cache internally. Reimplemented by the user.

Implements KisLockFreeCacheWithModeConsistency< QRect, bool >.

Definition at line 131 of file kis_paint_device_cache.h.

131 {
133 }
QRect calculateExactBounds(bool nonDefaultOnly) const

References KisPaintDevice::calculateExactBounds(), and m_paintDevice.

Member Data Documentation

◆ m_paintDevice

KisPaintDevice* KisPaintDeviceCache::NonDefaultPixelCache::m_paintDevice
private

Definition at line 135 of file kis_paint_device_cache.h.


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