QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskPanGestureRecognizer Class Reference

Detailed Description

Definition at line 12 of file QskPanGestureRecognizer.h.

Inheritance diagram for QskPanGestureRecognizer:

Public Member Functions

 QskPanGestureRecognizer (QObject *=nullptr)
 
void setMinDistance (int pixels)
 
int minDistance () const
 
void setOrientations (Qt::Orientations)
 
Qt::Orientations orientations () const
 
- Public Member Functions inherited from QskGestureRecognizer
 QskGestureRecognizer (QObject *parent=nullptr)
 
bool eventFilter (QObject *, QEvent *) override
 
void setWatchedItem (QQuickItem *)
 
QQuickItem * watchedItem () const
 
void setTargetItem (QQuickItem *)
 
QQuickItem * targetItem () const
 
void setAcceptedMouseButtons (Qt::MouseButtons)
 
Qt::MouseButtons acceptedMouseButtons () const
 
void setRejectOnTimeout (bool)
 
bool rejectOnTimeout () const
 
void setTimeout (int)
 
int timeout () const
 
quint64 timestampStarted () const
 
void reject ()
 
void accept ()
 
void abort ()
 
State state () const
 
virtual bool isAcceptedPos (const QPointF &) const
 

Protected Member Functions

void processPress (const QPointF &, quint64 timestamp, bool isFinal) override
 
void processMove (const QPointF &, quint64 timestamp) override
 
void processRelease (const QPointF &, quint64 timestamp) override
 
- Protected Member Functions inherited from QskGestureRecognizer
void timerEvent (QTimerEvent *) override
 

Additional Inherited Members

- Public Types inherited from QskGestureRecognizer
enum  State { Idle , Pending , Accepted }
 
- Properties inherited from QskGestureRecognizer
State state
 
QQuickItem * watchedItem
 
QQuickItem * targetItem
 
Qt::MouseButtons acceptedMouseButtons
 
int timeout
 
- Signals inherited from QskGestureRecognizer
void stateChanged (State from, State to)
 

Constructor & Destructor Documentation

◆ QskPanGestureRecognizer()

QskPanGestureRecognizer::QskPanGestureRecognizer ( QObject *  parent = nullptr)

Definition at line 166 of file QskPanGestureRecognizer.cpp.

◆ ~QskPanGestureRecognizer()

QskPanGestureRecognizer::~QskPanGestureRecognizer ( )
override

Definition at line 173 of file QskPanGestureRecognizer.cpp.

Member Function Documentation

◆ minDistance()

int QskPanGestureRecognizer::minDistance ( ) const

Definition at line 192 of file QskPanGestureRecognizer.cpp.

◆ orientations()

Qt::Orientations QskPanGestureRecognizer::orientations ( ) const

Definition at line 182 of file QskPanGestureRecognizer.cpp.

◆ processMove()

void QskPanGestureRecognizer::processMove ( const QPointF &  pos,
quint64  timestamp 
)
overrideprotectedvirtual

Reimplemented from QskGestureRecognizer.

Definition at line 211 of file QskPanGestureRecognizer.cpp.

◆ processPress()

void QskPanGestureRecognizer::processPress ( const QPointF &  pos,
quint64  timestamp,
bool  isFinal 
)
overrideprotectedvirtual

Reimplemented from QskGestureRecognizer.

Definition at line 197 of file QskPanGestureRecognizer.cpp.

◆ processRelease()

void QskPanGestureRecognizer::processRelease ( const QPointF &  ,
quint64  timestamp 
)
overrideprotectedvirtual

Reimplemented from QskGestureRecognizer.

Definition at line 263 of file QskPanGestureRecognizer.cpp.

◆ setMinDistance()

void QskPanGestureRecognizer::setMinDistance ( int  pixels)

Definition at line 187 of file QskPanGestureRecognizer.cpp.

◆ setOrientations()

void QskPanGestureRecognizer::setOrientations ( Qt::Orientations  orientations)

Definition at line 177 of file QskPanGestureRecognizer.cpp.