qskinny/src/controls/QskPanGestureRecognizer.h

36 lines
991 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
2023-04-06 09:23:37 +02:00
* SPDX-License-Identifier: BSD-3-Clause
2017-07-21 18:21:34 +02:00
*****************************************************************************/
#ifndef QSK_PAN_GESTURE_RECOGNIZER_H
#define QSK_PAN_GESTURE_RECOGNIZER_H
#include "QskGestureRecognizer.h"
#include <memory>
class QSK_EXPORT QskPanGestureRecognizer : public QskGestureRecognizer
{
using Inherited = QskGestureRecognizer;
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
QskPanGestureRecognizer();
2018-07-31 17:32:25 +02:00
~QskPanGestureRecognizer() override;
2017-07-21 18:21:34 +02:00
void setMinDistance( int pixels );
int minDistance() const;
void setOrientations( Qt::Orientations );
Qt::Orientations orientations() const;
2018-08-03 08:15:28 +02:00
private:
2018-07-31 17:32:25 +02:00
void pressEvent( const QMouseEvent* ) override;
void moveEvent( const QMouseEvent* ) override;
void releaseEvent( const QMouseEvent* ) override;
2017-07-21 18:21:34 +02:00
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif