// spacing must be present.
if(mEnabled && fabsf(mSpacing) > Math::MACHINE_EPSILON_1)
{
+ if( wrap )
+ {
+ position = WrapInDomain(position, mDomain.min, mDomain.max);
+ }
page = floor((position - mDomain.min) / mSpacing + 0.5f);
if(wrap)
const std::string ScrollView::SCROLL_OVERSHOOT_X_PROPERTY_NAME( "scroll-overshoot-x" );
const std::string ScrollView::SCROLL_OVERSHOOT_Y_PROPERTY_NAME( "scroll-overshoot-y" );
const std::string ScrollView::SCROLL_FINAL_PROPERTY_NAME( "scroll-final" );
-const std::string ScrollView::SCROLL_X_PROPERTY_NAME( "scroll-x" );
-const std::string ScrollView::SCROLL_Y_PROPERTY_NAME( "scroll-y" );
const std::string ScrollView::SCROLL_SCALE_PROPERTY_NAME( "scroll-scale" );
const std::string ScrollView::SCROLL_WRAP_PROPERTY_NAME( "scroll-wrap" );
const std::string ScrollView::SCROLL_PANNING_PROPERTY_NAME( "scroll-panning" );
GetImpl(*this).SetRulerY(ruler);
}
-void ScrollView::SetRulerScaleX(RulerPtr ruler)
-{
- DALI_LOG_ERROR( "Deprecated" );
-}
-
-void ScrollView::SetRulerScaleY(RulerPtr ruler)
-{
- DALI_LOG_ERROR( "Deprecated" );
-}
-
void ScrollView::SetScrollSensitive(bool sensitive)
{
GetImpl(*this).SetScrollSensitive(sensitive);
GetImpl(*this).SetWrapMode(enable);
}
-int ScrollView::GetRefreshInterval() const
-{
- return GetImpl(*this).GetRefreshInterval();
-}
-
-void ScrollView::SetRefreshInterval(int milliseconds)
-{
- GetImpl(*this).SetRefreshInterval(milliseconds);
-}
-
int ScrollView::GetScrollUpdateDistance() const
{
return GetImpl(*this).GetScrollUpdateDistance();
GetImpl(*this).SetScrollPosition(position);
}
-Vector3 ScrollView::GetCurrentScrollScale() const
-{
- DALI_LOG_ERROR( "Deprecated" );
- return Vector3::ONE;
-}
-
unsigned int ScrollView::GetCurrentPage() const
{
return GetImpl(*this).GetCurrentPage();
}
-void ScrollView::TransformTo(const Vector3& position, const Vector3& scale, float rotation)
-{
- DALI_LOG_ERROR( "Deprecated" );
-
- GetImpl(*this).TransformTo(position);
-}
-
-void ScrollView::TransformTo(const Vector3& position, const Vector3& scale, float rotation, float duration)
-{
- DALI_LOG_ERROR( "Deprecated" );
-
- GetImpl(*this).TransformTo(position, duration);
-}
-
void ScrollView::ScrollTo(const Vector3 &position)
{
GetImpl(*this).ScrollTo(position);
GetImpl(*this).ScrollTo(position, duration);
}
+void ScrollView::ScrollTo(const Vector3 &position, float duration, AlphaFunction alpha)
+{
+ GetImpl(*this).ScrollTo(position, duration, alpha);
+}
+
void ScrollView::ScrollTo(const Vector3 &position, float duration,
DirectionBias horizontalBias, DirectionBias verticalBias)
{
GetImpl(*this).ScrollTo(position, duration, horizontalBias, verticalBias);
}
+void ScrollView::ScrollTo(const Vector3 &position, float duration, AlphaFunction alpha,
+ DirectionBias horizontalBias, DirectionBias verticalBias)
+{
+ GetImpl(*this).ScrollTo(position, duration, alpha, horizontalBias, verticalBias);
+}
+
void ScrollView::ScrollTo(unsigned int page)
{
GetImpl(*this).ScrollTo(page);
return GetImpl(*this).ScrollToSnapPoint();
}
-void ScrollView::ScaleTo(const Vector3 &scale)
-{
- DALI_LOG_ERROR( "Deprecated" );
-}
-
-void ScrollView::ScaleTo(const Vector3 &scale, float duration)
-{
- DALI_LOG_ERROR( "Deprecated" );
-}
-
void ScrollView::ApplyConstraintToChildren(Constraint constraint)
{
GetImpl(*this).ApplyConstraintToChildren(constraint);