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
22
class
KRITAUI_EXPORT
KisSnapPointStrategy
:
public
KoSnapStrategy
23
{
24
public
:
25
KisSnapPointStrategy
(
KoSnapGuide::Strategy
type =
KoSnapGuide::CustomSnapping
);
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
33
private
:
34
struct
Private
;
35
const
QScopedPointer<Private>
m_d
;
36
};
37
38
#endif
// KISSNAPPOINTSTRATEGY_H
KoSnapStrategy.h
KisSnapPointStrategy
Definition
KisSnapPointStrategy.h:23
KisSnapPointStrategy::m_d
const QScopedPointer< Private > m_d
Definition
KisSnapPointStrategy.h:35
KoSnapGuide::Strategy
Strategy
the different possible snap Strategies
Definition
KoSnapGuide.h:49
KoSnapGuide::CustomSnapping
@ CustomSnapping
Definition
KoSnapGuide.h:59
KoSnapProxy
Definition
KoSnapProxy.h:23
KoSnapStrategy
Definition
KoSnapStrategy.h:23
KoSnapStrategy::decoration
virtual QPainterPath decoration(const KoViewConverter &converter) const =0
returns the current snap strategy decoration
KoSnapStrategy::snap
virtual bool snap(const QPointF &mousePosition, KoSnapProxy *proxy, qreal maxSnapDistance)=0
KoViewConverter
Definition
KoViewConverter.h:32
Private
Definition
SvgTransformParser.cpp:20
libs
ui
canvas
KisSnapPointStrategy.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52