Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paint_device_debug_utils.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_PAINT_DEVICE_DEBUG_UTILS_H
8#define __KIS_PAINT_DEVICE_DEBUG_UTILS_H
9
10
11class QRect;
12class QString;
13
14#include <kis_types.h>
15#include <kritaimage_export.h>
16
17void KRITAIMAGE_EXPORT kis_debug_save_device_incremental(KisPaintDeviceSP device,
18 int i,
19 const QRect &rc,
20 const QString &suffix, const QString &prefix);
21
31#define KIS_DUMP_DEVICE_1(device, rc, suffix) \
32 do { \
33 static int i = -1; i++; \
34 kis_debug_save_device_incremental((device), i, (rc), (suffix), QString()); \
35 } while(0)
36
49#define KIS_DUMP_DEVICE_2(device, rc, suffix, prefix) \
50 do { \
51 static int i = -1; i++; \
52 kis_debug_save_device_incremental((device), i, (rc), (suffix), (prefix)); \
53 } while(0)
54
55#endif /* __KIS_PAINT_DEVICE_DEBUG_UTILS_H */
void KRITAIMAGE_EXPORT kis_debug_save_device_incremental(KisPaintDeviceSP device, int i, const QRect &rc, const QString &suffix, const QString &prefix)