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

Public Member Functions

QRect calculateNewValue () const override
 
 ExactBoundsCache (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 118 of file kis_paint_device_cache.h.

Constructor & Destructor Documentation

◆ ExactBoundsCache()

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

Definition at line 119 of file kis_paint_device_cache.h.

119: m_paintDevice(paintDevice) {}

Member Function Documentation

◆ calculateNewValue()

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

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

Implements KisLockFreeCacheWithModeConsistency< QRect, bool >.

Definition at line 121 of file kis_paint_device_cache.h.

121 {
122 return m_paintDevice->calculateExactBounds(false);
123 }
QRect calculateExactBounds(bool nonDefaultOnly) const

References KisPaintDevice::calculateExactBounds(), and m_paintDevice.

Member Data Documentation

◆ m_paintDevice

KisPaintDevice* KisPaintDeviceCache::ExactBoundsCache::m_paintDevice
private

Definition at line 125 of file kis_paint_device_cache.h.


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