Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSnapProxy.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2008-2009 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6#ifndef KOSNAPPROXY_H
7#define KOSNAPPROXY_H
8
9
10class KoSnapGuide;
11class KoShape;
12class KoPathSegment;
13class KoCanvasBase;
14#include <QList>
15#include "kritaflake_export.h"
16
17class QPointF;
18class QRectF;
22class KRITAFLAKE_EXPORT KoSnapProxy
23{
24public:
25 KoSnapProxy(KoSnapGuide *snapGuide);
26
28 QList<QPointF> pointsInRect(const QRectF &rect, bool omitEditedShape);
29
31 QList<KoShape*> shapesInRect(const QRectF &rect, bool omitEditedShape = false);
32
34 QList<QPointF> pointsFromShape(KoShape *shape);
35
37 QList<KoPathSegment> segmentsInRect(const QRectF &rect, bool omitEditedShape);
38
40 QList<KoShape*> shapes(bool omitEditedShape = false);
41
43 KoCanvasBase *canvas();
44
45private:
47};
48
49#endif
A KoPathSegment consist of two neighboring KoPathPoints.
KoSnapGuide * m_snapGuide
Definition KoSnapProxy.h:46