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
10
11#include <QScopedPointer>
12#include <QSharedPointer>
13
14#include <kritaresources_export.h>
15
16class KRITARESOURCES_EXPORT KoLocalStrokeCanvasResources : public KoCanvasResourcesInterface
17{
18public:
23
24 QVariant resource(int key) const override;
25 void storeResource(int key, const QVariant &resource);
26
27private:
28 struct Private;
29 const QScopedPointer<Private> m_d;
30};
31
33
34#endif // KOLOCALSTROKECANVASRESOURCES_H
An abstract class for providing access to canvas resources like current gradient and Fg/Bg colors.
virtual QVariant resource(int key) const =0
const QScopedPointer< Private > m_d