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

Detailed Description

Definition at line 97 of file QskGesture.h.

Inheritance diagram for QskPanGesture:

Public Member Functions

void setVelocity (qreal)
 
qreal velocity () const
 
void setOrigin (const QPointF &)
 
const QPointF & origin () const
 
void setLastPosition (const QPointF &)
 
QPointF lastPosition () const
 
void setPosition (const QPointF &)
 
const QPointF & position () const
 
void setAngle (qreal degrees)
 
qreal angle () const
 
QPointF delta () const
 
- Public Member Functions inherited from QskGesture
Type type () const
 
void setState (State)
 
State state () const
 

Additional Inherited Members

- Public Types inherited from QskGesture
enum  Type {
  NoType = -1 , Tap , TapAndHold , Pan ,
  Swipe , CustomType = 16
}
 
enum  State {
  NoGesture , Started , Updated , Finished ,
  Canceled
}
 
- Protected Member Functions inherited from QskGesture
 QskGesture (Type type)
 
- Protected Attributes inherited from QskGesture
const Type m_type
 
State m_state
 

Constructor & Destructor Documentation

◆ QskPanGesture()

QskPanGesture::QskPanGesture ( )

Definition at line 57 of file QskGesture.cpp.

◆ ~QskPanGesture()

QskPanGesture::~QskPanGesture ( )
override

Definition at line 64 of file QskGesture.cpp.

Member Function Documentation

◆ angle()

qreal QskPanGesture::angle ( ) const
inline

Definition at line 118 of file QskGesture.h.

◆ delta()

QPointF QskPanGesture::delta ( ) const
inline

Definition at line 120 of file QskGesture.h.

◆ lastPosition()

QPointF QskPanGesture::lastPosition ( ) const
inline

Definition at line 112 of file QskGesture.h.

◆ origin()

const QPointF & QskPanGesture::origin ( ) const
inline

Definition at line 109 of file QskGesture.h.

◆ position()

const QPointF & QskPanGesture::position ( ) const
inline

Definition at line 115 of file QskGesture.h.

◆ setAngle()

void QskPanGesture::setAngle ( qreal  degrees)

Definition at line 73 of file QskGesture.cpp.

◆ setLastPosition()

void QskPanGesture::setLastPosition ( const QPointF &  pos)

Definition at line 83 of file QskGesture.cpp.

◆ setOrigin()

void QskPanGesture::setOrigin ( const QPointF &  pos)

Definition at line 78 of file QskGesture.cpp.

◆ setPosition()

void QskPanGesture::setPosition ( const QPointF &  pos)

Definition at line 88 of file QskGesture.cpp.

◆ setVelocity()

void QskPanGesture::setVelocity ( qreal  velocity)

Definition at line 68 of file QskGesture.cpp.

◆ velocity()

qreal QskPanGesture::velocity ( ) const
inline

Definition at line 106 of file QskGesture.h.