Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
836 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2020 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */
#ifndef KOCANVASRESOURCESINTERFACE_H
#define KOCANVASRESOURCESINTERFACE_H

#include "kritaresources_export.h"
#include <QSharedPointer>

class QVariant;

#include <kritaresources_export.h>

/**
 * @brief An abstract class for providing access to canvas resources
 * like current gradient and Fg/Bg colors.
 *
 * Specific implementations may forward the requests either to
 * KoCanvasResourceProvider or to a local storage.
 */
class KRITARESOURCES_EXPORT KoCanvasResourcesInterface
{
public:
    virtual ~KoCanvasResourcesInterface();

    virtual QVariant resource(int key) const = 0;
};

using KoCanvasResourcesInterfaceSP = QSharedPointer<KoCanvasResourcesInterface>;

#endif // KOCANVASRESOURCESINTERFACE_H