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++
915 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2017 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef KISRUNNABLEBASEDSTROKESTRATEGY_H
#define KISRUNNABLEBASEDSTROKESTRATEGY_H

#include "kis_simple_stroke_strategy.h"

class KisRunnableStrokeJobsInterface;

class KRITAIMAGE_EXPORT KisRunnableBasedStrokeStrategy : public KisSimpleStrokeStrategy
{
private:
    struct JobsInterface;

public:
    KisRunnableBasedStrokeStrategy(const QLatin1String &id, const KUndo2MagicString &name = KUndo2MagicString());
    KisRunnableBasedStrokeStrategy(const KisRunnableBasedStrokeStrategy &rhs);
    ~KisRunnableBasedStrokeStrategy();

    void doStrokeCallback(KisStrokeJobData *data) override;

    KisRunnableStrokeJobsInterface *runnableJobsInterface() const;

private:
    const QScopedPointer<KisRunnableStrokeJobsInterface> m_jobsInterface;
};

#endif // KISRUNNABLEBASEDSTROKESTRATEGY_H