Namespace Tizen.NUI.Utility
Classes
This is utility class for paging very long text.
Calculates the velocity of touch movements over time.
private void OnPanGestureDetected(object source, PanGestureDetector.DetectedEventArgs e)
{
tracker.AddMovement(e.PanGesture.ScreenPosition, e.PanGesture.Time);
if (e.PanGesture.State == Gesture.StateType.Started)
{
}
else if (e.PanGesture.State == Gesture.StateType.Continuing)
{
}
else if (e.PanGesture.State == Gesture.StateType.Finished || e.PanGesture.State == Gesture.StateType.Cancelled)
{
float panVelocity = (ScrollingDirection == Direction.Horizontal) ? tracker.GetVelocity().X : tracker.GetVelocity().Y;
tracker.Clear();
}
}
Structs
Positions and event time information