Dali 3D User Interface Engine
animation-data.h
Go to the documentation of this file.
1 #ifndef __DALI_ANIMATION_DATA_H__
2 #define __DALI_ANIMATION_DATA_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 // EXTERNAL INCLUDES
22 #include <string>
23 
24 // INTERNAL INCLUDES
30 
31 namespace Dali
32 {
33 
41 {
42 public:
43 
44  AnimationData();
45 
46  ~AnimationData();
47 
52  {
53  std::string actor;
54  std::string property;
59 
61  : alphaFunction( AlphaFunction::DEFAULT ),
62  timePeriodDelay( 0.0f ),
63  timePeriodDuration( 1.0f )
64  {
65  }
66  };
67 
68 
74 
75 
80  void Add( AnimationDataElement* animationDataElement );
81 
82 
93  Dali::Animation CreateAnimation( Dali::Actor targetActor, float duration );
94 
95 
99  void Clear();
100 
101 private:
102 
104 
105 };
106 
107 
108 } // namespace Dali
109 
110 #endif // __DALI_ANIMATION_DATA_H__
111 
Dali Docs Home
Read more about Dali