1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef META_INTERFACE_ANIMATION_MODIFIERS_INTF_SPEED_H
17 #define META_INTERFACE_ANIMATION_MODIFIERS_INTF_SPEED_H
18 
19 #include <meta/base/meta_types.h>
20 #include <meta/interface/interface_macros.h>
21 
22 META_BEGIN_NAMESPACE()
23 
24 META_REGISTER_INTERFACE(ISpeed, "1822d284-d256-4088-98ea-01ff620e709e")
25 
26 namespace AnimationModifiers {
27 
28 /**
29  * @brief Defines interface for the loop animation modifier
30  */
31 class ISpeed : public CORE_NS::IInterface {
32     META_INTERFACE(IInterface, ISpeed)
33 public:
34     /**
35      * @brief Speed factor to use for the animation.
36      *        Negative factor will cause the animation to run in reverse.
37      *        The default value is 1.
38      */
39     META_PROPERTY(float, SpeedFactor)
40 };
41 
42 } // namespace AnimationModifiers
43 
44 META_END_NAMESPACE()
45 
46 META_TYPE(META_NS::AnimationModifiers::ISpeed::Ptr)
47 
48 #endif // META_INTERFACE_ANIMATION_MODIFIERS_INTF_SPEED_H
49