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
12
class
QVariant;
13
14
#include <kritaresources_export.h>
15
23
class
KRITARESOURCES_EXPORT
KoCanvasResourcesInterface
24
{
25
public
:
26
virtual
~KoCanvasResourcesInterface
();
27
28
virtual
QVariant
resource
(
int
key)
const
= 0;
29
};
30
31
using
KoCanvasResourcesInterfaceSP
=
QSharedPointer<KoCanvasResourcesInterface>
;
32
33
#endif
// 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
QSharedPointer< KoCanvasResourcesInterface >
libs
resources
KoCanvasResourcesInterface.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52