Merge remote-tracking branch 'origin/tizen' into new_text
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / src / animation / animation-api.h
1 #ifndef __DALI_V8PLUGIN_ANIMATION_API_H__
2 #define __DALI_V8PLUGIN_ANIMATION_API_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21
22 // EXTERNAL INCLUDES
23 #include <v8.h>
24 #include <dali/public-api/animation/animation.h>
25
26
27 namespace Dali
28 {
29
30 namespace V8Plugin
31 {
32
33 namespace AnimationApi
34 {
35   /**
36    * Constructor
37    */
38   Animation New( const v8::FunctionCallbackInfo< v8::Value >& args );
39
40
41   /**
42    * Animation API see animation.h for a description
43    */
44   void SetDuration( const v8::FunctionCallbackInfo< v8::Value >& args );
45   void GetDuration( const v8::FunctionCallbackInfo< v8::Value >& args );
46   void SetLooping( const v8::FunctionCallbackInfo< v8::Value >& args );
47   void IsLooping( const v8::FunctionCallbackInfo< v8::Value >& args );
48   void SetEndAction( const v8::FunctionCallbackInfo< v8::Value >& args );
49   void GetEndAction( const v8::FunctionCallbackInfo< v8::Value >& args );
50   void SetDisconnectAction( const v8::FunctionCallbackInfo< v8::Value >& args );
51   void GetDisconnectAction( const v8::FunctionCallbackInfo< v8::Value >& args );
52   void SetDefaultAlphaFunction( const v8::FunctionCallbackInfo< v8::Value >& args );
53   void GetDefaultAlphaFunction( const v8::FunctionCallbackInfo< v8::Value >& args );
54   void GetCurrentProgress( const v8::FunctionCallbackInfo< v8::Value >& args );
55   void SetSpeedFactor( const v8::FunctionCallbackInfo< v8::Value >& args );
56   void GetSpeedFactor( const v8::FunctionCallbackInfo< v8::Value >& args );
57   void SetPlayRange( const v8::FunctionCallbackInfo< v8::Value >& args );
58   void GetPlayRange( const v8::FunctionCallbackInfo< v8::Value >& args );
59   void SetCurrentProgress( const v8::FunctionCallbackInfo< v8::Value >& args );
60   void PlayFrom( const v8::FunctionCallbackInfo< v8::Value >& args );
61   void Play( const v8::FunctionCallbackInfo< v8::Value >& args );
62   void Pause( const v8::FunctionCallbackInfo< v8::Value >& args );
63   void Stop( const v8::FunctionCallbackInfo< v8::Value >& args );
64   void Clear( const v8::FunctionCallbackInfo< v8::Value >& args );
65   void Animate( const v8::FunctionCallbackInfo< v8::Value >& args );
66   void AnimateBy( const v8::FunctionCallbackInfo< v8::Value >& args );
67   void AnimateTo( const v8::FunctionCallbackInfo< v8::Value >& args );
68   void AnimateBetween( const v8::FunctionCallbackInfo< v8::Value >& args );
69   void Show( const v8::FunctionCallbackInfo< v8::Value >& args );
70   void Hide( const v8::FunctionCallbackInfo< v8::Value >& args );
71
72   enum AnimationParameterType
73   {
74     PROPERTY_VALUE,
75     KEYFRAMES
76   };
77
78 }; // namespace AnimationApi
79
80 } // namespace V8Plugin
81
82 } // namespace Dali
83
84 #endif // header __DALI_V8PLUGIN_ANIMATION_API_H__