Krita Source Code Documentation
Loading...
Searching...
No Matches
KoLocalStrokeCanvasResources.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#ifndef KOLOCALSTROKECANVASRESOURCES_H
7
#define KOLOCALSTROKECANVASRESOURCES_H
8
9
#include "
KoCanvasResourcesInterface.h
"
10
11
#include <QScopedPointer>
12
#include <QSharedPointer>
13
14
#include <kritaresources_export.h>
15
16
class
KRITARESOURCES_EXPORT
KoLocalStrokeCanvasResources
:
public
KoCanvasResourcesInterface
17
{
18
public
:
19
KoLocalStrokeCanvasResources
();
20
KoLocalStrokeCanvasResources
(
const
KoLocalStrokeCanvasResources
&rhs);
21
KoLocalStrokeCanvasResources
& operator=(
const
KoLocalStrokeCanvasResources
&rhs);
22
~KoLocalStrokeCanvasResources
();
23
24
QVariant
resource
(
int
key)
const override
;
25
void
storeResource(
int
key,
const
QVariant &resource);
26
27
private
:
28
struct
Private
;
29
const
QScopedPointer<Private>
m_d
;
30
};
31
32
using
KoLocalStrokeCanvasResourcesSP
=
QSharedPointer<KoLocalStrokeCanvasResources>
;
33
34
#endif
// KOLOCALSTROKECANVASRESOURCES_H
KoCanvasResourcesInterface.h
KoCanvasResourcesInterface
An abstract class for providing access to canvas resources like current gradient and Fg/Bg colors.
Definition
KoCanvasResourcesInterface.h:24
KoCanvasResourcesInterface::resource
virtual QVariant resource(int key) const =0
KoLocalStrokeCanvasResources
Definition
KoLocalStrokeCanvasResources.h:17
KoLocalStrokeCanvasResources::m_d
const QScopedPointer< Private > m_d
Definition
KoLocalStrokeCanvasResources.h:29
QSharedPointer
Definition
KoCanvasResourceProvider.h:20
Private
Definition
SvgTransformParser.cpp:20
libs
resources
KoLocalStrokeCanvasResources.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52