Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_qmic_import_tools.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <dimula73@gmail.com>
3 * SPDX-FileCopyrightText: 2013 Lukáš Tvrdý <lukast.dev@gmail.com>
4 * SPDX-FileCopyrightText: 2022 L. E. Segovia <amy@amyspark.me>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KIS_QMIC_IMPORT_TOOLS_H
10#define KIS_QMIC_IMPORT_TOOLS_H
11
12#include <kis_command_utils.h>
13#include <kis_layer_utils.h>
14#include <kis_node.h>
15#include <kis_paint_layer.h>
16#include <kis_painter.h>
17#include <kis_types.h>
18
19#include "gmic.h"
20#include "kis_qmic_interface.h"
22
23namespace KisQmicImportTools
24{
25[[nodiscard]] KUndo2Command *
26applyLayerNameChanges(const KisQMicImage &srcGmicImage,
27 KisNode *node,
28 KisSelectionSP selection);
29
30void gmicImageToPaintDevice(const KisQMicImage &srcGmicImage,
32 KisSelectionSP selection = nullptr,
33 const QRect &dstRect = {});
34
36inputNodes(KisImageSP image, InputLayerMode inputMode, KisNodeSP currentNode);
37} // namespace KisQmicImportTools
38
39#endif // KIS_QMIC_IMPORT_TOOLS_H
InputLayerMode
Definition gmic.h:21
KUndo2Command * applyLayerNameChanges(const KisQMicImage &srcGmicImage, KisNode *node, KisSelectionSP selection)
void gmicImageToPaintDevice(const KisQMicImage &srcGmicImage, KisPaintDeviceSP dst, KisSelectionSP selection, const QRect &dstRect)
KisNodeListSP inputNodes(KisImageSP image, InputLayerMode inputMode, KisNodeSP currentNode)