X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscrollable-impl.h;h=8abf7d5484058c64f9b8eecb492858fd4f285423;hp=10d9f1d75df91977ff42a0327eeb87971768126c;hb=a2cf5defe3e8e41bad76c68246c6a13bef373d83;hpb=63106d0a9407c87ff624f4b93e2627a0c7cc1e2a diff --git a/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h b/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h index 10d9f1d..8abf7d5 100644 --- a/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h +++ b/base/dali-toolkit/internal/controls/scrollable/scrollable-impl.h @@ -18,9 +18,10 @@ * */ -// INTERNAL INCLUDES -#include +// EXTERNAL INCLUDES +#include +// INTERNAL INCLUDES #include #include #include @@ -45,7 +46,6 @@ class Scrollable : public Control public: static const std::string SCROLLABLE_CAN_SCROLL_VERTICAL; static const std::string SCROLLABLE_CAN_SCROLL_HORIZONTAL; - static const Vector4 DEFAULT_OVERSHOOT_COLOUR; /** * Create a new Scrollable. @@ -107,6 +107,28 @@ public: */ virtual void ScrollTo(const Vector3 &position, float duration) = 0; + /** + * Set the color of the overshoot effect. + * @parm[in] color The color of the overshoot effect + */ + virtual void SetOvershootEffectColor( const Vector4& color ) = 0; + + /** + * Retrieve the color of the overshoot effect. + * @return The color of the overshoot effect. + */ + Vector4 GetOvershootEffectColor() const; + + /** + * @copydoc Dali::Toolkit::Scrollable::SetOvershootAnimationSpeed(float pixelsPerSecond) + */ + void SetOvershootAnimationSpeed( float pixelsPerSecond ); + + /** + * @copydoc Dali::Toolkit::Scrollable::GetOvershootAnimationSpeed() + */ + float GetOvershootAnimationSpeed() const; + private: /** @@ -149,6 +171,24 @@ public: //Signals */ static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ); + //properties + + /** + * Called when a property of an object of this type is set. + * @param[in] object The object whose property is set. + * @param[in] index The property index. + * @param[in] value The new property value. + */ + static void SetProperty( BaseObject* object, Property::Index index, const Property::Value& value ); + + /** + * Called to retrieve a property of an object of this type. + * @param[in] object The object whose property is to be retrieved. + * @param[in] index The property index. + * @return The current value of the property. + */ + static Property::Value GetProperty( BaseObject* object, Property::Index index ); + protected: /** @@ -193,6 +233,9 @@ private: protected: + Vector4 mOvershootEffectColor; ///