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

Public Member Functions

 ~TemporaryResourcesWithoutOwning () override
 
- Public Member Functions inherited from KisDabCacheUtils::DabRenderingResources
 DabRenderingResources ()
 
virtual void syncResourcesToSeqNo (int seqNo, const KisPaintInformation &info)
 
virtual ~DabRenderingResources ()
 

Additional Inherited Members

- Public Attributes inherited from KisDabCacheUtils::DabRenderingResources
KisBrushSP brush
 
QScopedPointer< KisColorSourcecolorSource
 
KisPaintDeviceSP colorSourceDevice
 
QScopedPointer< KisSharpnessOptionsharpnessOption
 
QScopedPointer< KisTextureOptiontextureOption
 

Detailed Description

A special hack class that allows creation of temporary object with resources without taking ownership over the option classes

Definition at line 141 of file kis_dab_cache.cpp.

Constructor & Destructor Documentation

◆ ~TemporaryResourcesWithoutOwning()

TemporaryResourcesWithoutOwning::~TemporaryResourcesWithoutOwning ( )
inlineoverride

Definition at line 143 of file kis_dab_cache.cpp.

143 {
144 // we do not own these resources, so just
145 // release them before destruction
146 colorSource.take();
147 sharpnessOption.take();
148 textureOption.take();
149 }
QScopedPointer< KisColorSource > colorSource
QScopedPointer< KisSharpnessOption > sharpnessOption
QScopedPointer< KisTextureOption > textureOption

References KisDabCacheUtils::DabRenderingResources::colorSource, KisDabCacheUtils::DabRenderingResources::sharpnessOption, and KisDabCacheUtils::DabRenderingResources::textureOption.


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