1 #ifndef DALI_KEY_FRAMES_DEVEL_H
2 #define DALI_KEY_FRAMES_DEVEL_H
5 * Copyright (c) 2021 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/public-api/animation/key-frames.h>
26 namespace DevelKeyFrames
28 using ValueConvertor = Property::Value (*)(const Property::Value& input);
31 * @brief Get the number of key frames.
32 * @param[in] keyFrames The KeyFrames object to perform this operation on
33 * @return Total number of key frames
35 DALI_CORE_API std::size_t GetKeyFrameCount(KeyFrames keyFrames);
39 * @param[in] keyFrames The KeyFrames object to perform this operation on
40 * @param[in] index The index of the key frame to fetch
41 * @param[out] time The progress of the given key frame
42 * @param[out] value The value of the given key frame
44 DALI_CORE_API void GetKeyFrame(KeyFrames keyFrames, std::size_t index, float& time, Property::Value& value);
46 } // namespace DevelKeyFrames
50 #endif // DALI_KEY_FRAMES_DEVEL_H