Krita Source Code Documentation
Loading...
Searching...
No Matches
KoCanvasResourcesInterface.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 KOCANVASRESOURCESINTERFACE_H
7#define KOCANVASRESOURCESINTERFACE_H
8
9#include "kritaresources_export.h"
10#include <QSharedPointer>
11
12class QVariant;
13
14#include <kritaresources_export.h>
15
23class KRITARESOURCES_EXPORT KoCanvasResourcesInterface
24{
25public:
27
28 virtual QVariant resource(int key) const = 0;
29};
30
32
33#endif // KOCANVASRESOURCESINTERFACE_H
An abstract class for providing access to canvas resources like current gradient and Fg/Bg colors.
virtual QVariant resource(int key) const =0