Dali 3D User Interface Engine
Functions | Variables
anonymous_namespace{scroll-view-impl.cpp} Namespace Reference

Functions

const float DEFAULT_SLOW_SNAP_ANIMATION_DURATION (0.5f)
 Default Drag-Release animation time. More...
 
const float DEFAULT_FAST_SNAP_ANIMATION_DURATION (0.25f)
 Default Drag-Flick animation time. More...
 
const float DEFAULT_SNAP_OVERSHOOT_DURATION (0.5f)
 Default Overshoot snapping animation time. More...
 
const float DEFAULT_MAX_OVERSHOOT (100.0f)
 Default maximum allowed overshoot in pixels. More...
 
const float DEFAULT_AXIS_AUTO_LOCK_GRADIENT (0.36f)
 Default Axis-AutoLock gradient threshold. default is 0.36:1 (20 degrees) More...
 
const float DEFAULT_FRICTION_COEFFICIENT (1.0f)
 Default Friction Co-efficient. (in stage diagonals per second) More...
 
const float DEFAULT_FLICK_SPEED_COEFFICIENT (1.0f)
 Default Flick speed coefficient (multiples input touch velocity) More...
 
const float DEFAULT_MAX_FLICK_SPEED (3.0f)
 Default Maximum flick speed. (in stage diagonals per second) More...
 
const float DEFAULT_MIN_FLICK_SPEED_THRESHOLD (500.0f)
 Minimum pan speed required for flick in pixels/s. More...
 
const unsigned long MINIMUM_TIME_BETWEEN_DOWN_AND_UP_FOR_RESET (150u)
 
const float DEFAULT_SCROLL_UPDATE_DISTANCE (30.0f)
 Default distance to travel in pixels for scroll update signal. More...
 
const std::string INTERNAL_MAX_POSITION_PROPERTY_NAME ("internalMaxPosition")
 
float VectorInDomain (float a, float b, float start, float end, Dali::Toolkit::DirectionBias bias)
 Find the vector (distance) from (a) to (b) in domain (start) to (end) (\ / start) (\ / end) |-a b<-—|. More...
 
Vector3 GetPositionOfAnchor (Actor &actor, const Vector3 &anchor)
 Returns the position of the anchor within actor. More...
 
float FinalDefaultAlphaFunction (float offset)
 
float ConstantDecelerationAlphaFunction (float progress)
 ConstantDecelerationAlphaFunction Newtoninan distance for constant deceleration v = 1 - t, s = t - 1/2 t^2 when t = 0, s = 0.0 (min distance) when t = 1, s = 0.5 (max distance) progress = s / (max-min) = 2t - t^2. More...
 
void InternalRelativePositionConstraint (Vector2 &relativePosition, const PropertyInputContainer &inputs)
 Internal Relative position Constraint Generates the relative position value of the scroll view based on the absolute position, and it's relation to the scroll domain. More...
 
void InternalScrollDomainConstraint (Vector2 &scrollDomain, const PropertyInputContainer &inputs)
 Internal scroll domain Constraint Generates the scroll domain of the scroll view. More...
 
void InternalPrePositionMaxConstraint (Vector2 &scrollMax, const PropertyInputContainer &inputs)
 Internal maximum scroll position Constraint Generates the maximum scroll position of the scroll view. More...
 

Variables

const Vector2 DEFAULT_MIN_FLICK_DISTANCE (30.0f, 30.0f)
 minimum distance for pan before flick allowed More...
 
const float FREE_FLICK_SPEED_THRESHOLD = 200.0f
 Free-Flick threshold in pixels/ms. More...
 
const float AUTOLOCK_AXIS_MINIMUM_DISTANCE2 = 100.0f
 Auto-lock axis after minimum distance squared. More...
 
const float FLICK_ORTHO_ANGLE_RANGE = 75.0f
 degrees. (if >45, then supports diagonal flicking) More...
 
const Vector2 DEFAULT_WHEEL_SCROLL_DISTANCE_STEP_PROPORTION = Vector2(0.17f, 0.1f)
 The step of horizontal scroll distance in the proportion of stage size for each wheel event received. More...
 
const float TOUCH_DOWN_TIMER_INTERVAL = 100.0f
 

Function Documentation

float anonymous_namespace{scroll-view-impl.cpp}::ConstantDecelerationAlphaFunction ( float  progress)

ConstantDecelerationAlphaFunction Newtoninan distance for constant deceleration v = 1 - t, s = t - 1/2 t^2 when t = 0, s = 0.0 (min distance) when t = 1, s = 0.5 (max distance) progress = s / (max-min) = 2t - t^2.

Parameters
[in]offsetThe input progress
Returns
The output progress

Definition at line 170 of file scroll-view-impl.cpp.

Referenced by Dali::Toolkit::Internal::ScrollView::SnapWithVelocity().

Here is the caller graph for this function:

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_AXIS_AUTO_LOCK_GRADIENT ( 0.  36f)

Default Axis-AutoLock gradient threshold. default is 0.36:1 (20 degrees)

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_FAST_SNAP_ANIMATION_DURATION ( 0.  25f)

Default Drag-Flick animation time.

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_FLICK_SPEED_COEFFICIENT ( 1.  0f)

Default Flick speed coefficient (multiples input touch velocity)

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_FRICTION_COEFFICIENT ( 1.  0f)

Default Friction Co-efficient. (in stage diagonals per second)

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_MAX_FLICK_SPEED ( 3.  0f)

Default Maximum flick speed. (in stage diagonals per second)

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_MAX_OVERSHOOT ( 100.  0f)

Default maximum allowed overshoot in pixels.

Referenced by UtcDaliToolkitScrollViewOvershoot().

Here is the caller graph for this function:

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_MIN_FLICK_SPEED_THRESHOLD ( 500.  0f)

Minimum pan speed required for flick in pixels/s.

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_SCROLL_UPDATE_DISTANCE ( 30.  0f)

Default distance to travel in pixels for scroll update signal.

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_SLOW_SNAP_ANIMATION_DURATION ( 0.  5f)

Default Drag-Release animation time.

const float anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_SNAP_OVERSHOOT_DURATION ( 0.  5f)

Default Overshoot snapping animation time.

Referenced by UtcDaliToolkitScrollViewOvershoot().

Here is the caller graph for this function:

float anonymous_namespace{scroll-view-impl.cpp}::FinalDefaultAlphaFunction ( float  offset)

Definition at line 154 of file scroll-view-impl.cpp.

Referenced by Dali::Toolkit::Internal::ScrollView::UpdateMainInternalConstraint().

Here is the caller graph for this function:

Vector3 anonymous_namespace{scroll-view-impl.cpp}::GetPositionOfAnchor ( Actor actor,
const Vector3 anchor 
)

Returns the position of the anchor within actor.

Parameters
actorThe Actor
anchorThe Anchor point of interest.
Returns
The position of the Anchor

Definition at line 143 of file scroll-view-impl.cpp.

References Dali::Actor::GetCurrentAnchorPoint(), Dali::Actor::GetCurrentPosition(), and Dali::Actor::GetCurrentSize().

Referenced by Dali::Toolkit::Internal::ScrollView::FindClosestActorToPosition(), and Dali::Toolkit::Internal::ScrollView::SnapWithVelocity().

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string anonymous_namespace{scroll-view-impl.cpp}::INTERNAL_MAX_POSITION_PROPERTY_NAME ( "internalMaxPosition"  )
void anonymous_namespace{scroll-view-impl.cpp}::InternalPrePositionMaxConstraint ( Vector2 scrollMax,
const PropertyInputContainer inputs 
)

Internal maximum scroll position Constraint Generates the maximum scroll position of the scroll view.

Definition at line 217 of file scroll-view-impl.cpp.

References Dali::Vector3::GetVectorXY().

Referenced by Dali::Toolkit::Internal::ScrollView::UpdateMainInternalConstraint().

Here is the call graph for this function:

Here is the caller graph for this function:

void anonymous_namespace{scroll-view-impl.cpp}::InternalRelativePositionConstraint ( Vector2 relativePosition,
const PropertyInputContainer inputs 
)

Internal Relative position Constraint Generates the relative position value of the scroll view based on the absolute position, and it's relation to the scroll domain.

This is a value from 0.0f to 1.0f in each scroll position axis.

Definition at line 184 of file scroll-view-impl.cpp.

References Dali::Vector3::GetVectorXY(), Dali::Math::MACHINE_EPSILON_1, Dali::Toolkit::Text::min(), Dali::WrapInDomain(), Dali::Vector2::x, and Dali::Vector2::y.

Referenced by Dali::Toolkit::Internal::ScrollView::UpdateMainInternalConstraint().

Here is the call graph for this function:

Here is the caller graph for this function:

void anonymous_namespace{scroll-view-impl.cpp}::InternalScrollDomainConstraint ( Vector2 scrollDomain,
const PropertyInputContainer inputs 
)

Internal scroll domain Constraint Generates the scroll domain of the scroll view.

Definition at line 204 of file scroll-view-impl.cpp.

References Dali::Vector3::GetVectorXY(), and Dali::Toolkit::Text::min().

Referenced by Dali::Toolkit::Internal::ScrollView::UpdateMainInternalConstraint().

Here is the call graph for this function:

Here is the caller graph for this function:

const unsigned long anonymous_namespace{scroll-view-impl.cpp}::MINIMUM_TIME_BETWEEN_DOWN_AND_UP_FOR_RESET ( 150u  )

Referenced by Dali::Toolkit::Internal::ScrollView::OnTouchEvent().

Here is the caller graph for this function:

float anonymous_namespace{scroll-view-impl.cpp}::VectorInDomain ( float  a,
float  b,
float  start,
float  end,
Dali::Toolkit::DirectionBias  bias 
)

Find the vector (distance) from (a) to (b) in domain (start) to (end) (\ / start) (\ / end) |-a b<-—|.

Note
assumes both (a) and (b) are already with the domain (start) to (end)
Parameters
[in]athe current point
[in]bthe target point
[in]startthe start of the domain
[in]endthe end of the domain
[in]biaswhether to only take the right direction or the left direction, or the shortest direction.
Returns
the shortest direction and distance

Definition at line 98 of file scroll-view-impl.cpp.

References a, Dali::Toolkit::DirectionBiasLeft, Dali::Toolkit::DirectionBiasNone, Dali::Toolkit::DirectionBiasRight, and Dali::ShortestDistanceInDomain().

Referenced by Dali::Toolkit::Internal::ScrollView::AnimateTo().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const float anonymous_namespace{scroll-view-impl.cpp}::AUTOLOCK_AXIS_MINIMUM_DISTANCE2 = 100.0f

Auto-lock axis after minimum distance squared.

Definition at line 70 of file scroll-view-impl.cpp.

Referenced by Dali::Toolkit::Internal::anonymous_namespace{scroll-view-impl.cpp}::GetLockAxis().

const Vector2 anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_MIN_FLICK_DISTANCE(30.0f, 30.0f)

minimum distance for pan before flick allowed

const Vector2 anonymous_namespace{scroll-view-impl.cpp}::DEFAULT_WHEEL_SCROLL_DISTANCE_STEP_PROPORTION = Vector2(0.17f, 0.1f)

The step of horizontal scroll distance in the proportion of stage size for each wheel event received.

Definition at line 72 of file scroll-view-impl.cpp.

const float anonymous_namespace{scroll-view-impl.cpp}::FLICK_ORTHO_ANGLE_RANGE = 75.0f

degrees. (if >45, then supports diagonal flicking)

Definition at line 71 of file scroll-view-impl.cpp.

Referenced by Dali::Toolkit::Internal::ScrollView::SnapWithVelocity().

const float anonymous_namespace{scroll-view-impl.cpp}::FREE_FLICK_SPEED_THRESHOLD = 200.0f

Free-Flick threshold in pixels/ms.

Definition at line 69 of file scroll-view-impl.cpp.

Referenced by Dali::Toolkit::Internal::ScrollView::SnapWithVelocity().

const float anonymous_namespace{scroll-view-impl.cpp}::TOUCH_DOWN_TIMER_INTERVAL = 100.0f
Dali Docs Home
Read more about Dali