Krita Source Code Documentation
Loading...
Searching...
No Matches
KisBatchNodeUpdate.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISBATCHNODEUPDATE_H
8#define KISBATCHNODEUPDATE_H
9
10#include "kritaimage_export.h"
11
12#include <QRect>
13#include <QSharedPointer>
14#include <boost/operators.hpp>
15#include <kis_types.h>
16
23class KRITAIMAGE_EXPORT KisBatchNodeUpdate
24 : public std::vector<std::pair<KisNodeSP, QRect>>,
25 boost::orable<KisBatchNodeUpdate>
26{
27public:
28 KisBatchNodeUpdate() = default;
32
33 KisBatchNodeUpdate(const std::vector<std::pair<KisNodeSP, QRect>> &rhs);
34
45 void addUpdate(KisNodeSP node, const QRect &rc);
46
60 void compress();
61
65 KisBatchNodeUpdate compressed() const;
66
73 KisBatchNodeUpdate& operator|=(const KisBatchNodeUpdate &rhs);
74
75};
76
77KRITAIMAGE_EXPORT QDebug operator<<(QDebug dbg, const KisBatchNodeUpdate &update);
78
81
82#endif // KISBATCHNODEUPDATE_H
KRITAIMAGE_EXPORT QDebug operator<<(QDebug dbg, const KisBatchNodeUpdate &update)
KisBatchNodeUpdate()=default
KisBatchNodeUpdate(const KisBatchNodeUpdate &rhs)=default
KisBatchNodeUpdate & operator=(const KisBatchNodeUpdate &rhs)=default
KisBatchNodeUpdate(KisBatchNodeUpdate &&rhs)=default