Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSmudgeSourcePaintDevice Struct Reference

#include <KisColorSmudgeSource.h>

+ Inheritance diagram for KisColorSmudgeSourcePaintDevice:

Public Member Functions

const KoColorSpacecolorSpace () const override
 
 KisColorSmudgeSourcePaintDevice (KisOverlayPaintDeviceWrapper &overlayDevice, int overlayIndex=0)
 
void readBytes (quint8 *dstPtr, const QRect &rect) override
 
void readRects (const QVector< QRect > &rects) override
 
- Public Member Functions inherited from KisColorSmudgeSource
void readRect (const QRect &rect)
 
virtual ~KisColorSmudgeSource ()=default
 

Private Attributes

KisOverlayPaintDeviceWrapperm_overlayDevice
 
int m_overlayIndex = 0
 

Detailed Description

Definition at line 28 of file KisColorSmudgeSource.h.

Constructor & Destructor Documentation

◆ KisColorSmudgeSourcePaintDevice()

KisColorSmudgeSourcePaintDevice::KisColorSmudgeSourcePaintDevice ( KisOverlayPaintDeviceWrapper & overlayDevice,
int overlayIndex = 0 )

Definition at line 21 of file KisColorSmudgeSource.cpp.

22 : m_overlayDevice(overlayDevice),
23 m_overlayIndex(overlayIndex)
24{
25}
KisOverlayPaintDeviceWrapper & m_overlayDevice

Member Function Documentation

◆ colorSpace()

const KoColorSpace * KisColorSmudgeSourcePaintDevice::colorSpace ( ) const
overridevirtual

◆ readBytes()

void KisColorSmudgeSourcePaintDevice::readBytes ( quint8 * dstPtr,
const QRect & rect )
overridevirtual

Implements KisColorSmudgeSource.

Definition at line 31 of file KisColorSmudgeSource.cpp.

31 {
33}
KisPaintDeviceSP overlay(int index=0) const
void readBytes(quint8 *data, qint32 x, qint32 y, qint32 w, qint32 h) const

References m_overlayDevice, m_overlayIndex, KisOverlayPaintDeviceWrapper::overlay(), and KisPaintDevice::readBytes().

◆ readRects()

void KisColorSmudgeSourcePaintDevice::readRects ( const QVector< QRect > & rects)
overridevirtual

Implements KisColorSmudgeSource.

Definition at line 27 of file KisColorSmudgeSource.cpp.

27 {
29}
void readRects(const QVector< QRect > &rects)

References m_overlayDevice, and KisOverlayPaintDeviceWrapper::readRects().

Member Data Documentation

◆ m_overlayDevice

KisOverlayPaintDeviceWrapper& KisColorSmudgeSourcePaintDevice::m_overlayDevice
private

Definition at line 38 of file KisColorSmudgeSource.h.

◆ m_overlayIndex

int KisColorSmudgeSourcePaintDevice::m_overlayIndex = 0
private

Definition at line 39 of file KisColorSmudgeSource.h.


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