Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qscroller.cpp File Reference

(71f156fff07f6c876941096134f6ee4ac90a9309)

#include "qevent.h"
#include "qwidget.h"
#include "qscroller.h"
#include "private/qflickgesture_p.h"
#include "private/qscroller_p.h"
#include "qscrollerproperties.h"
#include "private/qscrollerproperties_p.h"
#include "qnumeric.h"
#include "math.h"
#include <QTime>
#include <QElapsedTimer>
#include <QMap>
#include <QApplication>
#include <QAbstractScrollArea>
#include <QVector2D>
#include <QtCore/qmath.h>
#include <QtGui/qevent.h>
#include <QtDebug>
#include <QtCore/qloggingcategory.h>
#include "moc_qscroller.cpp"
#include "moc_qscroller_p.cpp"
+ Include dependency graph for qscroller.cpp:

Go to the source code of this file.

Typedefs

typedef QMap< QObject *, QScroller * > ScrollerHash
 

Functions

QT_BEGIN_NAMESPACE bool qt_sendSpontaneousEvent (QObject *receiver, QEvent *event)
 
bool operator<= (const QPointF &p, qreal f)
 
bool operator< (const QPointF &p, qreal f)
 
bool operator>= (const QPointF &p, qreal f)
 
bool operator> (const QPointF &p, qreal f)
 
QPointF qAbs (const QPointF &p)
 
QPointF operator* (const QPointF &p1, const QPointF &p2)
 
QPointF operator/ (const QPointF &p1, const QPointF &p2)
 
QPointF clampToRect (const QPointF &p, const QRectF &rect)
 
int qSign (qreal r)
 
static qreal differentialForProgress (const QEasingCurve &curve, qreal pos)
 
static qreal progressForValue (const QEasingCurve &curve, qreal value)
 

Typedef Documentation

◆ ScrollerHash

Definition at line 232 of file qscroller.cpp.

Function Documentation

◆ clampToRect()

QPointF clampToRect ( const QPointF & p,
const QRectF & rect )
inline

Definition at line 95 of file qscroller.cpp.

References qBound(), and rect.

Referenced by QScroller::ensureVisible(), QScrollerPrivate::prepareScrolling(), QScroller::scrollTo(), QScrollerPrivate::setContentPositionHelperDragging(), QScrollerPrivate::setContentPositionHelperScrolling(), and QScroller::stop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ differentialForProgress()

static qreal differentialForProgress ( const QEasingCurve & curve,
qreal pos )
static

Definition at line 111 of file qscroller.cpp.

References d, pos, qCDebug, QEasingCurve::type(), and QEasingCurve::valueForProgress().

Referenced by QScrollerPrivate::createScrollingSegments(), and QScroller::velocity().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator*()

QPointF operator* ( const QPointF & p1,
const QPointF & p2 )
inline

Definition at line 84 of file qscroller.cpp.

References p1, and p2.

◆ operator/()

QPointF operator/ ( const QPointF & p1,
const QPointF & p2 )
inline

Definition at line 90 of file qscroller.cpp.

References p1, and p2.

◆ operator<()

bool operator< ( const QPointF & p,
qreal f )
inline

Definition at line 60 of file qscroller.cpp.

References qAbs().

+ Here is the call graph for this function:

◆ operator<=()

bool operator<= ( const QPointF & p,
qreal f )
inline

Definition at line 54 of file qscroller.cpp.

References qAbs().

+ Here is the call graph for this function:

◆ operator>()

bool operator> ( const QPointF & p,
qreal f )
inline

Definition at line 72 of file qscroller.cpp.

References qAbs().

+ Here is the call graph for this function:

◆ operator>=()

bool operator>= ( const QPointF & p,
qreal f )
inline

Definition at line 66 of file qscroller.cpp.

References qAbs().

+ Here is the call graph for this function:

◆ progressForValue()

static qreal progressForValue ( const QEasingCurve & curve,
qreal value )
static

Definition at line 127 of file qscroller.cpp.

References QEasingCurve::Custom, QEasingCurve::InElastic, Q_UNLIKELY, qWarning, QEasingCurve::type(), and QEasingCurve::valueForProgress().

Referenced by QScrollerPrivate::createScrollingSegments().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qAbs()

QPointF qAbs ( const QPointF & p)
inline

Definition at line 78 of file qscroller.cpp.

References qAbs().

Referenced by operator<(), operator<=(), operator>(), operator>=(), and qAbs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qSign()

int qSign ( qreal r)
inline

Definition at line 103 of file qscroller.cpp.

Referenced by QScrollerPrivate::createScrollingSegments(), QScrollerPrivate::updateVelocity(), and QScroller::velocity().

+ Here is the caller graph for this function:

◆ qt_sendSpontaneousEvent()

QT_BEGIN_NAMESPACE bool qt_sendSpontaneousEvent ( QObject * receiver,
QEvent * event )
related

References operator<<().

+ Here is the call graph for this function: