Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSnapPixelStrategy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Kuntal Majumder <hellozee@disroot.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SNAP_PIXEL_STRATEGY_H
8#define __KIS_SNAP_PIXEL_STRATEGY_H
9
10
11#include "KoSnapStrategy.h"
12
13
15{
16public:
18 ~KisSnapPixelStrategy() override;
19
20 bool snap(const QPointF &mousePosition, KoSnapProxy * proxy, qreal maxSnapDistance) override;
21 QPainterPath decoration(const KoViewConverter &converter) const override;
22};
23
24#endif /* __KIS_SNAP_PIXEL_STRATEGY_H */
QPainterPath decoration(const KoViewConverter &converter) const override
returns the current snap strategy decoration
KisSnapPixelStrategy(KoSnapGuide::Strategy type=KoSnapGuide::PixelSnapping)
bool snap(const QPointF &mousePosition, KoSnapProxy *proxy, qreal maxSnapDistance) override
Strategy
the different possible snap Strategies
Definition KoSnapGuide.h:49
KoSnapGuide::Strategy type() const
returns the strategies type