Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSnapPointStrategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISSNAPPOINTSTRATEGY_H
8#define KISSNAPPOINTSTRATEGY_H
9
10#include <QScopedPointer>
11
12#include "KoSnapStrategy.h"
13#include "kritaui_export.h"
14
22class KRITAUI_EXPORT KisSnapPointStrategy : public KoSnapStrategy
23{
24public:
26 ~KisSnapPointStrategy() override;
27
28 bool snap(const QPointF &mousePosition, KoSnapProxy * proxy, qreal maxSnapDistance) override;
29 QPainterPath decoration(const KoViewConverter &converter) const override;
30
31 void addPoint(const QPointF &pt);
32
33private:
34 struct Private;
35 const QScopedPointer<Private> m_d;
36};
37
38#endif // KISSNAPPOINTSTRATEGY_H
const QScopedPointer< Private > m_d
Strategy
the different possible snap Strategies
Definition KoSnapGuide.h:49
virtual QPainterPath decoration(const KoViewConverter &converter) const =0
returns the current snap strategy decoration
virtual bool snap(const QPointF &mousePosition, KoSnapProxy *proxy, qreal maxSnapDistance)=0