Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLassoEnclosingProducer.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 KISLASSOENCLOSINGPRODUCER
10#define KISLASSOENCLOSINGPRODUCER
11
12#include <kis_pixel_selection.h>
13#include <KisToolOutlineBase.h>
14
16
17class KisLassoEnclosingProducer : public KisDynamicDelegateTool<KisToolOutlineBase>
18{
19 Q_OBJECT
20
21public:
24
25 bool hasUserInteractionRunning() const;
26
27protected:
28 void finishOutline(const QVector<QPointF> &points) 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
KisLassoEnclosingProducer(KoCanvasBase *canvas)
void finishOutline(const QVector< QPointF > &points) override
void enclosingMaskProduced(KisPixelSelectionSP enclosingMask)
KisCanvas2 * canvas