1 #ifndef DALI_TOOLKIT_TEST_TEST_ANIMATION_DATA_H
2 #define DALI_TOOLKIT_TEST_TEST_ANIMATION_DATA_H
5 * Copyright (c) 2016 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.
20 #include <dali/dali.h>
26 class TestAnimationData
33 * @brief AnimationDataElement Describes one part of an animation.
35 struct AnimationDataElement
39 Dali::Property::Value value;
40 Dali::AlphaFunction::BuiltinFunction alphaFunction;
41 float timePeriodDelay;
42 float timePeriodDuration;
44 AnimationDataElement();
48 * @brief AnimationData holds the required data required to define an
49 * animation to be performed on a property source.
51 typedef Dali::Vector< AnimationDataElement* > AnimationDataList;
54 * @brief Adds one AnimationDataElement to the list to describe one animation.
55 * @param[in] animationDataElement A pre-populated struct to add
57 void Add( AnimationDataElement* animationDataElement );
59 std::size_t Size() const;
63 AnimationDataList mAnimationDataList;
66 void NewAnimator( const Dali::Property::Map& map, TestAnimationData::AnimationDataElement& element );
67 void NewAnimation( const Dali::Property::Map& map, TestAnimationData& outputAnimationData );
68 void NewAnimation( const Dali::Property::Array& array, TestAnimationData& outputAnimationData );
71 #endif //DALI_TOOLKIT_TEST_TEST_ANIMATION_DATA_H