Krita Source Code Documentation
Loading...
Searching...
No Matches
KisInterstrokeData.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef KISINTERSTROKEDATA_H
8
#define KISINTERSTROKEDATA_H
9
10
#include <kritaimage_export.h>
11
#include <QSharedPointer>
12
#include <QPoint>
13
#include <
kis_types.h
>
14
15
class
KUndo2Command
;
16
class
KoColorSpace
;
17
31
class
KRITAIMAGE_EXPORT
KisInterstrokeData
32
{
33
public
:
34
KisInterstrokeData
(
KisPaintDeviceSP
device);
35
virtual
~KisInterstrokeData
();
36
37
virtual
void
beginTransaction
() = 0;
38
virtual
KUndo2Command
*
endTransaction
() = 0;
39
40
bool
isStillCompatible()
const
;
41
42
private
:
43
QPoint
m_linkedDeviceOffset
;
44
const
KoColorSpace
*m_linkedColorSpace = 0;
45
KisPaintDeviceWSP
m_linkedPaintDevice
;
46
};
47
48
using
KisInterstrokeDataSP
=
QSharedPointer<KisInterstrokeData>
;
49
50
51
#endif
// KISINTERSTROKEDATA_H
KUndo2Command
Definition
kundo2stack.h:87
KisInterstrokeData
Definition
KisInterstrokeData.h:32
KisInterstrokeData::m_linkedPaintDevice
KisPaintDeviceWSP m_linkedPaintDevice
Definition
KisInterstrokeData.h:45
KisInterstrokeData::endTransaction
virtual KUndo2Command * endTransaction()=0
KisInterstrokeData::beginTransaction
virtual void beginTransaction()=0
KisInterstrokeData::m_linkedDeviceOffset
QPoint m_linkedDeviceOffset
Definition
KisInterstrokeData.h:43
KisSharedPtr< KisPaintDevice >
KisWeakSharedPtr< KisPaintDevice >
KoColorSpace
Definition
KoColorSpace.h:78
QSharedPointer< KisInterstrokeData >
kis_types.h
libs
image
KisInterstrokeData.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52