Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRectangleEnclosingProducer.h
Go to the documentation of this file.
1/*
2 * KDE. Krita Project.
3 *
4 * SPDX-FileCopyrightText: 2022 Deif Lou <ginoba@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KISRECTANGLEENCLOSINGPRODUCER
10#define KISRECTANGLEENCLOSINGPRODUCER
11
13#include <kis_pixel_selection.h>
14
16
17class KisRectangleEnclosingProducer : public KisDynamicDelegateTool<KisToolRectangleBase>
18{
19 Q_OBJECT
20
21public:
24
25 bool hasUserInteractionRunning() const;
26
27protected:
28 void finishRect(const QRectF& rect, qreal roundCornersX, qreal roundCornersY) override;
29 void beginShape() override;
30 void endShape() override;
31
32Q_SIGNALS:
34
35private:
37
38protected Q_SLOTS:
39 void resetCursorStyle() override;
40};
41
42#endif
void enclosingMaskProduced(KisPixelSelectionSP enclosingMask)
void finishRect(const QRectF &rect, qreal roundCornersX, qreal roundCornersY) override
KisCanvas2 * canvas