42 #ifndef QDECLARATIVEFLICKABLE_P_H 43 #define QDECLARATIVEFLICKABLE_P_H 56 #include "private/qdeclarativeflickable_p.h" 58 #include "private/qdeclarativeitem_p.h" 59 #include "private/qdeclarativeitemchangelistener_p.h" 66 #include "qplatformdefs.h" 71 #ifndef QML_FLICK_MINVELOCITY 72 #define QML_FLICK_MINVELOCITY 175 101 : move(fp, func), viewSize(-1), smoothVelocity(fp), atEnd(false), atBeginning(true)
102 , fixingUp(false), inOvershoot(false), moving(false), flicking(false)
106 velocityBuffer.clear();
219 qreal xPosition()
const;
220 qreal widthRatio()
const;
221 qreal yPosition()
const;
222 qreal heightRatio()
const;
224 void updateVisible();
227 void xPositionChanged(
qreal xPosition);
228 void yPositionChanged(
qreal yPosition);
229 void widthRatioChanged(
qreal widthRatio);
230 void heightRatioChanged(
qreal heightRatio);
void flickY(qreal velocity)
static QObject * data_at(QDeclarativeListProperty< QObject > *, int)
QDeclarativeItem * contentItem
#define QT_END_NAMESPACE
This macro expands to.
#define QML_DECLARE_TYPE(TYPE)
QPODVector< qreal, 10 > velocityBuffer
static void fixupY_callback(void *)
QDeclarativeFlickablePrivate::Velocity smoothVelocity
The QPointF class defines a point in the plane using floating point precision.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
void handleMousePressEvent(QGraphicsSceneMouseEvent *)
void captureDelayedPress(QGraphicsSceneMouseEvent *event)
The QObject class is the base class of all Qt objects.
The QElapsedTimer class provides a fast way to calculate elapsed times.
void itemGeometryChanged(QDeclarativeItem *, const QRectF &, const QRectF &)
void setRoundedViewportX(qreal x)
The QDeclarativeTimeLineValue class provides a value that can be modified by QDeclarativeTimeLine.
qreal reportedVelocitySmoothing
AxisData(QDeclarativeFlickablePrivate *fp, void(QDeclarativeFlickablePrivate::*func)(qreal))
qreal overShootDistance(qreal size)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
const qreal MinimumFlickVelocity
Velocity(QDeclarativeFlickablePrivate *p)
The QDeclarativeItem class provides the most basic of all visual items in QML.
void flickX(qreal velocity)
QBasicTimer delayedPressTimer
virtual qreal value() const
Return the current value.
QGraphicsSceneMouseEvent * delayedPressEvent
QDeclarativeTimeLine timeline
void updateBeginningEnd()
virtual void fixup(AxisData &data, qreal minExtent, qreal maxExtent)
QDeclarativeFlickablePrivate()
void handleMouseMoveEvent(QGraphicsSceneMouseEvent *)
QDeclarativeFlickablePrivate * parent
static void data_append(QDeclarativeListProperty< QObject > *, QObject *)
static int data_count(QDeclarativeListProperty< QObject > *)
QDeclarativeFlickable::FlickableDirection flickableDirection
QElapsedTimer lastPosTime
QDeclarativeTimeLine velocityTimeline
void setRoundedViewportY(qreal y)
#define Q_DECLARE_PUBLIC(Class)
QDeclarativeTimeLineValueProxy< QDeclarativeFlickablePrivate > move
bool isOutermostPressDelay() const
QPointF lastFlickablePosition
virtual void setValue(qreal v)
Set the current value.
#define QML_FLICK_MINVELOCITY
The QDeclarativeTimeLine class provides a timeline for controlling animations.
QGraphicsItem * delayedPressTarget
virtual void flick(AxisData &data, qreal minExtent, qreal maxExtent, qreal vSize, QDeclarativeTimeLineCallback::Callback fixupCallback, qreal velocity)
static void fixupX_callback(void *)
The QBasicTimer class provides timer events for objects.
QDeclarativeFlickableVisibleArea * visibleArea
static void data_clear(QDeclarativeListProperty< QObject > *)
virtual void setValue(qreal v)
Set the current value.
QDeclarativeListProperty< QObject > data()
QDeclarativeFlickable * flickable
QElapsedTimer velocityTime
void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *)
QDeclarativeFlickable::BoundsBehavior boundsBehavior