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

Detailed Description

Definition at line 19 of file QskGestureRecognizer.h.

Inheritance diagram for QskGestureRecognizer:

Public Types

enum  State { Idle , Pending , Accepted }
 

Properties

State state
 
QQuickItem * watchedItem
 
QQuickItem * targetItem
 
Qt::MouseButtons acceptedMouseButtons
 
int timeout
 

Public Member Functions

 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
 

Signals

void stateChanged (State from, State to)
 

Protected Member Functions

void timerEvent (QTimerEvent *) override
 
virtual void processPress (const QPointF &, quint64 timestamp, bool isFinal)
 
virtual void processMove (const QPointF &, quint64 timestamp)
 
virtual void processRelease (const QPointF &, quint64 timestamp)
 

Member Enumeration Documentation

◆ State

enum QskGestureRecognizer::State

Definition at line 35 of file QskGestureRecognizer.h.

Constructor & Destructor Documentation

◆ QskGestureRecognizer()

QskGestureRecognizer::QskGestureRecognizer ( QObject *  parent = nullptr)

Definition at line 89 of file QskGestureRecognizer.cpp.

◆ ~QskGestureRecognizer()

QskGestureRecognizer::~QskGestureRecognizer ( )
override

Definition at line 95 of file QskGestureRecognizer.cpp.

Member Function Documentation

◆ abort()

void QskGestureRecognizer::abort ( )

Definition at line 457 of file QskGestureRecognizer.cpp.

◆ accept()

void QskGestureRecognizer::accept ( )

Definition at line 410 of file QskGestureRecognizer.cpp.

◆ acceptedMouseButtons()

Qt::MouseButtons QskGestureRecognizer::acceptedMouseButtons ( ) const

Definition at line 140 of file QskGestureRecognizer.cpp.

◆ eventFilter()

bool QskGestureRecognizer::eventFilter ( QObject *  object,
QEvent *  event 
)
override

Definition at line 209 of file QskGestureRecognizer.cpp.

◆ isAcceptedPos()

bool QskGestureRecognizer::isAcceptedPos ( const QPointF &  pos) const
virtual

Definition at line 145 of file QskGestureRecognizer.cpp.

◆ processMove()

void QskGestureRecognizer::processMove ( const QPointF &  pos,
quint64  timestamp 
)
protectedvirtual

Definition at line 398 of file QskGestureRecognizer.cpp.

◆ processPress()

void QskGestureRecognizer::processPress ( const QPointF &  pos,
quint64  timestamp,
bool  isFinal 
)
protectedvirtual

Definition at line 390 of file QskGestureRecognizer.cpp.

◆ processRelease()

void QskGestureRecognizer::processRelease ( const QPointF &  pos,
quint64  timestamp 
)
protectedvirtual

Definition at line 404 of file QskGestureRecognizer.cpp.

◆ reject()

void QskGestureRecognizer::reject ( )

Definition at line 420 of file QskGestureRecognizer.cpp.

◆ rejectOnTimeout()

bool QskGestureRecognizer::rejectOnTimeout ( ) const

Definition at line 155 of file QskGestureRecognizer.cpp.

◆ setAcceptedMouseButtons()

void QskGestureRecognizer::setAcceptedMouseButtons ( Qt::MouseButtons  buttons)

Definition at line 135 of file QskGestureRecognizer.cpp.

◆ setRejectOnTimeout()

void QskGestureRecognizer::setRejectOnTimeout ( bool  on)

Definition at line 150 of file QskGestureRecognizer.cpp.

◆ setTargetItem()

void QskGestureRecognizer::setTargetItem ( QQuickItem *  item)

Definition at line 125 of file QskGestureRecognizer.cpp.

◆ setTimeout()

void QskGestureRecognizer::setTimeout ( int  ms)

Definition at line 160 of file QskGestureRecognizer.cpp.

◆ setWatchedItem()

void QskGestureRecognizer::setWatchedItem ( QQuickItem *  item)

Definition at line 100 of file QskGestureRecognizer.cpp.

◆ state()

QskGestureRecognizer::State QskGestureRecognizer::state ( ) const

Definition at line 204 of file QskGestureRecognizer.cpp.

◆ targetItem()

QQuickItem * QskGestureRecognizer::targetItem ( ) const

Definition at line 130 of file QskGestureRecognizer.cpp.

◆ timeout()

int QskGestureRecognizer::timeout ( ) const

Definition at line 165 of file QskGestureRecognizer.cpp.

◆ timerEvent()

void QskGestureRecognizer::timerEvent ( QTimerEvent *  event)
overrideprotected

Definition at line 170 of file QskGestureRecognizer.cpp.

◆ timestampStarted()

quint64 QskGestureRecognizer::timestampStarted ( ) const

Definition at line 188 of file QskGestureRecognizer.cpp.

◆ watchedItem()

QQuickItem * QskGestureRecognizer::watchedItem ( ) const

Definition at line 120 of file QskGestureRecognizer.cpp.

Property Documentation

◆ acceptedMouseButtons

Qt::MouseButtons QskGestureRecognizer::acceptedMouseButtons
readwrite

Definition at line 27 of file QskGestureRecognizer.h.

◆ state

State QskGestureRecognizer::state
read

Definition at line 23 of file QskGestureRecognizer.h.

◆ targetItem

QQuickItem* QskGestureRecognizer::targetItem
readwrite

Definition at line 25 of file QskGestureRecognizer.h.

◆ timeout

int QskGestureRecognizer::timeout
readwrite

Definition at line 30 of file QskGestureRecognizer.h.

◆ watchedItem

QQuickItem* QskGestureRecognizer::watchedItem
readwrite

Definition at line 24 of file QskGestureRecognizer.h.