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_LOOP_H
17 #define META_INTERFACE_ANIMATION_MODIFIERS_INTF_LOOP_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(ILoop, "08f22131-c65d-4c12-b351-5fc784aa5278")
25 
26 namespace AnimationModifiers {
27 
28 /**
29  * @brief Defines interface for the loop animation modifier
30  */
31 class ILoop : public CORE_NS::IInterface {
32     META_INTERFACE(IInterface, ILoop)
33 public:
34     /**
35      * @brief The number of times the animation should loop. Default 1.
36      *        *  0: Animation is not run at all.
37      *        * >0: Loop the animation this many times.
38      *        * <0: Loop the animation indefinitely.
39      */
40     META_PROPERTY(int32_t, LoopCount)
41 };
42 
43 } // namespace AnimationModifiers
44 
45 META_END_NAMESPACE()
46 
47 META_TYPE(META_NS::AnimationModifiers::ILoop::Ptr)
48 
49 #endif // META_INTERFACE_ANIMATION_MODIFIERS_INTF_LOOP_H
50