QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskPanGestureRecognizer.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_PAN_GESTURE_RECOGNIZER_H
7#define QSK_PAN_GESTURE_RECOGNIZER_H
8
9#include "QskGestureRecognizer.h"
10#include <memory>
11
13{
15
16 public:
17 QskPanGestureRecognizer( QObject* = nullptr );
18 ~QskPanGestureRecognizer() override;
19
20 void setMinDistance( int pixels );
21 int minDistance() const;
22
23 void setOrientations( Qt::Orientations );
24 Qt::Orientations orientations() const;
25
26 protected:
27 void processPress( const QPointF&, quint64 timestamp, bool isFinal ) override;
28 void processMove( const QPointF&, quint64 timestamp ) override;
29 void processRelease( const QPointF&, quint64 timestamp ) override;
30
31 private:
32 class PrivateData;
33 std::unique_ptr< PrivateData > m_data;
34};
35
36#endif