Warning, file /graphics/krita/sdk/tests/testing_nodes.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef TESTING_NODES_H
0008 #define TESTING_NODES_H
0009 
0010 #include "kis_node.h"
0011 #include "kis_image.h"
0012 
0013 namespace TestUtil {
0014 
0015 struct DefaultNode : public KisNode {
0016     DefaultNode() : KisNode(nullptr)
0017     {
0018     }
0019 
0020     KisPaintDeviceSP paintDevice() const override {
0021         return KisPaintDeviceSP();
0022     }
0023 
0024     KisPaintDeviceSP original() const override {
0025         return KisPaintDeviceSP();
0026     }
0027 
0028     KisPaintDeviceSP projection() const override {
0029         return KisPaintDeviceSP();
0030     }
0031 
0032     bool allowAsChild(KisNodeSP) const override {
0033         return true;
0034     }
0035     const KoColorSpace * colorSpace() const override {
0036         return 0;
0037     }
0038     const KoCompositeOp * compositeOp() const override {
0039         return 0;
0040     }
0041 };
0042 
0043 }
0044 
0045 #endif // TESTING_NODES_H
0046