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

#ifndef TESTING_NODES_H
#define TESTING_NODES_H

#include "kis_node.h"
#include "kis_image.h"

namespace TestUtil {

struct DefaultNode : public KisNode {
    DefaultNode() : KisNode(nullptr)
    {
    }

    KisPaintDeviceSP paintDevice() const override {
        return KisPaintDeviceSP();
    }

    KisPaintDeviceSP original() const override {
        return KisPaintDeviceSP();
    }

    KisPaintDeviceSP projection() const override {
        return KisPaintDeviceSP();
    }

    bool allowAsChild(KisNodeSP) const override {
        return true;
    }
    const KoColorSpace * colorSpace() const override {
        return 0;
    }
    const KoCompositeOp * compositeOp() const override {
        return 0;
    }
};

}

#endif // TESTING_NODES_H