FMX.InertialMovement

From RAD Studio API Documentation
Jump to: navigation, search

Provides support for inertial moving of the scroll view window during scrolling within the larger content. Scrolling can be managed with the mouse or finger.

Among other things, the InertialMovement unit defines the constants described in the InertialMovement Constants table.

Package fmx240.bpl

Classes

TAniCalculationsProvides support for the inertial scrolling of the viewport window within the larger content. Scrolling can be managed with the mouse or finger.
TTargetForward declaration of the TAniCalculations.TTarget type, which is required for the C++ compiler.

Types

TPointDDefines the point coordinates in logical units.
TRectDDefines a rectangle with coordinates in logical units.

Constants

DecelerationRateFastDecelerationRateFast: Comp = 9.5;
DecelerationRateNormalDecelerationRateNormal: Comp = 1.95;
DefaultDeadZoneDefaultDeadZone: Integer = 8;
DefaultElasticityDefaultElasticity: Integer = $64;
DefaultIntervalOfAniDefaultIntervalOfAni: Integer = $A;
DefaultMaxVelocityDefaultMaxVelocity: Integer = $1388;
DefaultMinVelocityDefaultMinVelocity: Integer = $A;
DefaultStorageTimeDefaultStorageTime: Comp = 0.15;


InertialMovement Constants

These constants define default values of specific TAniCalculations class properties:

Constant Description

DecelerationRateNormal

Determines the default deceleration rate of scroll view moving after the user lifts the finger (release the mouse button) that initiated the moving.

DecelerationRateFast

A fast deceleration rate for scroll view moving.

DefaultElasticity

The default coefficient of border elasticity.

DefaultMinVelocity

The default minimal velocity of scroll view moving in pixels per second.

DefaultMaxVelocity

The default maximal velocity of scroll view moving in pixels per second.

DefaultDeadZone

Defines the default size of a small area where moving the mouse or finger is not treated as initialization of scrolling.

DefaultStorageTime

The default time for storage of obtained trajectory points. These trajectory points are used to obtain the velocity and direction of inertial moving.

DefaultIntervalOfAni

Defines the default interval between successive updating of inertial moving pictures.