qskinny/src/controls/QskPanGestureRecognizer.h

36 lines
1017 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#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