Krita Source Code Documentation
Loading...
Searching...
No Matches
KisCachedPaintDevice::Guard Struct Reference

#include <kis_cached_paint_device.h>

Public Member Functions

KisPaintDeviceSP device () const
 
 Guard (KisPaintDeviceSP prototype, const KoColorSpace *cs, KisCachedPaintDevice &parent)
 
 Guard (KisPaintDeviceSP prototype, KisCachedPaintDevice &parent)
 
 ~Guard ()
 

Private Attributes

KisPaintDeviceSP m_device
 
KisCachedPaintDevicem_parent
 

Detailed Description

Definition at line 59 of file kis_cached_paint_device.h.

Constructor & Destructor Documentation

◆ Guard() [1/2]

KisCachedPaintDevice::Guard::Guard ( KisPaintDeviceSP prototype,
KisCachedPaintDevice & parent )
inline

Definition at line 60 of file kis_cached_paint_device.h.

61 : m_parent(parent)
62 {
63 m_device = m_parent.getDevice(prototype);
64 }
KisPaintDeviceSP getDevice(KisPaintDeviceSP prototype)

References KisCachedPaintDevice::getDevice(), m_device, and m_parent.

◆ Guard() [2/2]

KisCachedPaintDevice::Guard::Guard ( KisPaintDeviceSP prototype,
const KoColorSpace * cs,
KisCachedPaintDevice & parent )
inline

Definition at line 66 of file kis_cached_paint_device.h.

67 : m_parent(parent)
68 {
69 m_device = m_parent.getDevice(prototype, cs);
70 }

References KisCachedPaintDevice::getDevice(), m_device, and m_parent.

◆ ~Guard()

KisCachedPaintDevice::Guard::~Guard ( )
inline

Definition at line 72 of file kis_cached_paint_device.h.

72 {
74 }
void putDevice(KisPaintDeviceSP device)

References m_device, m_parent, and KisCachedPaintDevice::putDevice().

Member Function Documentation

◆ device()

KisPaintDeviceSP KisCachedPaintDevice::Guard::device ( ) const
inline

Definition at line 76 of file kis_cached_paint_device.h.

76 {
77 return m_device;
78 }

References m_device.

Member Data Documentation

◆ m_device

KisPaintDeviceSP KisCachedPaintDevice::Guard::m_device
private

Definition at line 82 of file kis_cached_paint_device.h.

◆ m_parent

KisCachedPaintDevice& KisCachedPaintDevice::Guard::m_parent
private

Definition at line 81 of file kis_cached_paint_device.h.


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