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 Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-effect.h>
30 class ScrollViewEffect;
32 namespace Internal DALI_INTERNAL
34 class ScrollViewWobbleEffect;
38 * ScrollView Wobble-Effect.
40 * Using this effect, a %wobble% property is produced which swings
41 * towards the origin in accordance to how the user pans the ScrollView.
43 class DALI_IMPORT_API ScrollViewWobbleEffect : public ScrollViewEffect
47 static const std::string EFFECT_OVERSHOOT;
48 static const std::string EFFECT_TIME;
53 * Create an initialized ScrollViewWobbleEffect.
54 * @return A handle to a newly allocated Dali resource.
56 static ScrollViewWobbleEffect New();
59 * Create an uninitialized ScrollViewWobbleEffect; this can be initialized with ScrollViewWobbleEffect::New()
60 * Calling member functions with an uninitialized Toolkit::ScrollViewWobbleEffect is not allowed.
62 ScrollViewWobbleEffect();
67 * This constructor is used by Dali New() methods.
68 * @param [in] impl A pointer to a newly allocated Dali resource
70 explicit DALI_INTERNAL ScrollViewWobbleEffect(Internal::ScrollViewWobbleEffect *impl);
74 } // namespace Toolkit
78 #endif // __DALI_TOOLKIT_SCROLL_VIEW_WOBBLE_EFFECT_H__