libosmscout
0.1
|
#include <InputHandler.h>
Public Member Functions | |
bool | touch (const QTouchEvent &event) override |
ZoomGestureHandler (const MapView &view, const QPoint &p, double zoomDistance) | |
~ZoomGestureHandler () override=default | |
![]() | |
virtual bool | animationInProgress () |
virtual bool | currentPosition (bool locationValid, osmscout::GeoCoord currentPosition) |
virtual bool | focusOutEvent (QFocusEvent *event) |
InputHandler (const MapView &view) | |
virtual bool | isFollowVehicle () |
virtual bool | isLockedToPosition () |
virtual bool | move (const QVector2D &vector) |
virtual void | painted () |
virtual bool | pivotBy (double angleChange) |
virtual bool | rotateBy (double angleChange) |
virtual bool | rotateTo (double angle) |
virtual bool | showCoordinates (const osmscout::GeoCoord &coord, const osmscout::Magnification &magnification, const osmscout::Bearing &bearing) |
virtual bool | vehiclePosition (const VehiclePosition &vehiclePosition, bool autoRotateMap) |
virtual void | widgetResized (const QSizeF &widgetSize) |
virtual bool | zoom (double zoomFactor, const QPoint &widgetPosition, const QRect &widgetDimension) |
~InputHandler () override=default | |
Additional Inherited Members | |
![]() | |
void | viewChanged (const MapView &view) |
![]() | |
MapView | view |
Handler for zoom gesture with one finger, activated by tap and press usually.
osmscout::ZoomGestureHandler::ZoomGestureHandler | ( | const MapView & | view, |
const QPoint & | p, | ||
double | zoomDistance | ||
) |
view | |
p | - where the gesture start |
zoomDistance | - distance [in pixels] where zoom is doubled/halved |
|
overridedefault |
|
overridevirtual |