This class extends the MPhysics2DPanning
to provide a paged effect to the viewport.
More...
#include <pagedpanning.h>
List of all members.
Detailed Description
This class extends the MPhysics2DPanning
to provide a paged effect to the viewport.
The paging is only supported in the horizontal direction.
Constructor & Destructor Documentation
PagedPanning::PagedPanning |
( |
QObject * |
parent |
) |
|
PagedPanning::~PagedPanning |
( |
|
) |
[virtual] |
Member Function Documentation
int PagedPanning::activePage |
( |
|
) |
const |
- Returns:
- the currently active page
void PagedPanning::integrateAxis |
( |
Qt::Orientation |
orientation, |
|
|
qreal & |
position, |
|
|
qreal & |
velocity, |
|
|
qreal & |
acceleration, |
|
|
qreal & |
pointerDifference, |
|
|
bool |
pointerPressed | |
|
) |
| | [protected, virtual] |
void PagedPanning::pageChanged |
( |
int |
page |
) |
[signal] |
Indicates that the page has changed
- Parameters:
-
int PagedPanning::pageCount |
( |
|
) |
const |
- Returns:
- the current page count
void PagedPanning::pageIsPanning |
( |
bool |
panning |
) |
[signal] |
Indicates that the page is panning
- Parameters:
-
| panning | true is page is panning. false otherwise |
float PagedPanning::pageWidth |
( |
|
) |
const |
bool PagedPanning::pageWrapMode |
( |
|
) |
const |
Queries the current page wrap mode.
void PagedPanning::pageWrapped |
( |
|
) |
[signal] |
A signal that gets emitted when a page wrap happens.
- See also:
- setPageWrapMode
void PagedPanning::panToPage |
( |
int |
page |
) |
|
Pans the view automatically to the given item index
void PagedPanning::pointerMove |
( |
const QPointF & |
pos |
) |
[virtual] |
void PagedPanning::pointerPress |
( |
const QPointF & |
pos |
) |
[virtual] |
void PagedPanning::pointerRelease |
( |
|
) |
[virtual] |
void PagedPanning::setDragThreshold |
( |
qreal |
value |
) |
|
Sets the snap activation drag threshold
void PagedPanning::setPage |
( |
uint |
page |
) |
|
Sets the specified page immediately
- Parameters:
-
void PagedPanning::setPageCount |
( |
int |
pageCount |
) |
|
Sets the number of pages.
- Parameters:
-
void PagedPanning::setPageSnapFriction |
( |
qreal |
value |
) |
|
Sets the page snapping spring damping friction factor
void PagedPanning::setPageSnapSpringK |
( |
qreal |
value |
) |
|
Sets the page snapping spring stiffness factor
void PagedPanning::setPageWrapMode |
( |
bool |
enable |
) |
|
Enables or disables the page wrapping mode.
- Parameters:
-
| enable | enables or disables the mode |
- See also:
- pageWrapped
void PagedPanning::setPanThreshold |
( |
qreal |
value |
) |
|
Sets the pan treshold value
void PagedPanning::setSlideLimit |
( |
int |
value |
) |
|
Sets the maximum number of pages to change per gesture
void PagedPanning::setVelocityThreshold |
( |
qreal |
value |
) |
|
Sets the snap activation velocity threshold
int PagedPanning::targetPage |
( |
|
) |
const |
Gets the target page where the panning is going to if there is panning going on. If panning is not going on, then this returns the current page.
The documentation for this class was generated from the following files:
- /home/bifh4/cs2009q3-i386/work/meegotouchhome-1.0.4/src/libmeegotouchhome/pagedpanning.h
- /home/bifh4/cs2009q3-i386/work/meegotouchhome-1.0.4/src/libmeegotouchhome/pagedpanning.cpp