1 #ifndef __DALI_TOOLKIT_SCROLL_VIEW_WOBBLE_EFFECT_H__
2 #define __DALI_TOOLKIT_SCROLL_VIEW_WOBBLE_EFFECT_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.0 (the License);
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://floralicense.org/license/
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an AS IS BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
21 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-effect.h>
23 namespace Dali DALI_IMPORT_API
29 class ScrollViewEffect;
31 namespace Internal DALI_INTERNAL
33 class ScrollViewWobbleEffect;
37 * ScrollView Wobble-Effect.
39 * Using this effect, a %wobble% property is produced which swings
40 * towards the origin in accordance to how the user pans the ScrollView.
42 class ScrollViewWobbleEffect : public ScrollViewEffect
46 static const std::string EFFECT_OVERSHOOT;
47 static const std::string EFFECT_TIME;
52 * Create an initialized ScrollViewWobbleEffect.
53 * @return A handle to a newly allocated Dali resource.
55 static ScrollViewWobbleEffect New();
58 * Create an uninitialized ScrollViewWobbleEffect; this can be initialized with ScrollViewWobbleEffect::New()
59 * Calling member functions with an uninitialized Toolkit::ScrollViewWobbleEffect is not allowed.
61 ScrollViewWobbleEffect();
66 * This constructor is used by Dali New() methods.
67 * @param [in] impl A pointer to a newly allocated Dali resource
69 ScrollViewWobbleEffect(Internal::ScrollViewWobbleEffect *impl);
73 } // namespace Toolkit
77 #endif // __DALI_TOOLKIT_SCROLL_VIEW_WOBBLE_EFFECT_H__