42 #ifndef QDECLARATIVEFLICKABLE_H 43 #define QDECLARATIVEFLICKABLE_H 107 qreal contentWidth()
const;
108 void setContentWidth(
qreal);
110 qreal contentHeight()
const;
111 void setContentHeight(
qreal);
113 qreal contentX()
const;
114 virtual void setContentX(
qreal pos);
116 qreal contentY()
const;
117 virtual void setContentY(
qreal pos);
119 bool isMoving()
const;
120 bool isMovingHorizontally()
const;
121 bool isMovingVertically()
const;
122 bool isFlicking()
const;
123 bool isFlickingHorizontally()
const;
124 bool isFlickingVertically()
const;
126 int pressDelay()
const;
127 void setPressDelay(
int delay);
129 qreal maximumFlickVelocity()
const;
130 void setMaximumFlickVelocity(
qreal);
132 qreal flickDeceleration()
const;
133 void setFlickDeceleration(
qreal);
135 bool isInteractive()
const;
136 void setInteractive(
bool);
138 qreal horizontalVelocity()
const;
139 qreal verticalVelocity()
const;
141 bool isAtXEnd()
const;
142 bool isAtXBeginning()
const;
143 bool isAtYEnd()
const;
144 bool isAtYBeginning()
const;
148 enum FlickableDirection { AutoFlickDirection=0x00, HorizontalFlick=0x01, VerticalFlick=0x02, HorizontalAndVerticalFlick=0x03 };
156 void contentWidthChanged();
157 void contentHeightChanged();
158 void contentXChanged();
159 void contentYChanged();
160 void movingChanged();
161 void movingHorizontallyChanged();
162 void movingVerticallyChanged();
163 void flickingChanged();
164 void flickingHorizontallyChanged();
165 void flickingVerticallyChanged();
166 void horizontalVelocityChanged();
167 void verticalVelocityChanged();
168 void isAtBoundaryChanged();
169 void flickableDirectionChanged();
170 void interactiveChanged();
171 void boundsBehaviorChanged();
172 void maximumFlickVelocityChanged();
173 void flickDecelerationChanged();
174 void pressDelayChanged();
175 void movementStarted();
176 void movementEnded();
191 virtual void ticked();
192 void movementStarting();
193 void movementEnding();
196 void movementXEnding();
197 void movementYEnding();
198 virtual qreal minXExtent()
const;
199 virtual qreal minYExtent()
const;
200 virtual qreal maxXExtent()
const;
201 virtual qreal maxYExtent()
const;
202 qreal vWidth()
const;
203 qreal vHeight()
const;
204 virtual void viewportMoved();
206 const QRectF &oldGeometry);
#define Q_CLASSINFO(name, value)
This macro associates extra information to the class, which is available using QObject::metaObject()...
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
QDeclarativeItem * contentItem
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.
virtual void timerEvent(QTimerEvent *)
This event handler can be reimplemented in a subclass to receive timer events for the object...
bool flickingHorizontally
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse press events for this item...
virtual void wheelEvent(QGraphicsSceneWheelEvent *event)
This event handler, for event event, can be reimplemented to receive wheel events for this item...
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
FlickableDirection flickableDirection
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeItem class provides the most basic of all visual items in QML.
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse move events for this item...
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
QDeclarativeListProperty< QObject > flickableData
BoundsBehavior boundsBehavior
qreal maximumFlickVelocity
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
This function is called to handle this item's changes in geometry from oldGeometry to newGeometry...
Q_CORE_EXPORT QTextStream & center(QTextStream &s)
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
The QTimerEvent class contains parameters that describe a timer event.
QDeclarativeListProperty< QGraphicsObject > flickableChildren
#define Q_AUTOTEST_EXPORT
virtual bool sceneEvent(QEvent *)
The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.
QDeclarativeFlickableVisibleArea * visibleArea
The QGraphicsObject class provides a base class for all graphics items that require signals...
The QEvent class is the base class of all event classes.
virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Filters events for the item watched.
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
This event handler, for event event, can be reimplemented to receive mouse release events for this it...