File indexing completed on 2025-02-23 04:09:03

0001 /*
0002  *  SPDX-FileCopyrightText: 2019 Kuntal Majumder <hellozee@disroot.org>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef __KIS_SNAP_PIXEL_STRATEGY_H
0008 #define __KIS_SNAP_PIXEL_STRATEGY_H
0009 
0010 #include <QScopedPointer>
0011 
0012 #include "KoSnapStrategy.h"
0013 
0014 
0015 class KisSnapPixelStrategy : public KoSnapStrategy
0016 {
0017 public:
0018     KisSnapPixelStrategy(KoSnapGuide::Strategy type = KoSnapGuide::PixelSnapping);
0019     ~KisSnapPixelStrategy() override;
0020 
0021     bool snap(const QPointF &mousePosition, KoSnapProxy * proxy, qreal maxSnapDistance) override;
0022     QPainterPath decoration(const KoViewConverter &converter) const override;
0023 };
0024 
0025 #endif /* __KIS_SNAP_PIXEL_STRATEGY_H */