• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef META_SRC_ANIMATION_MODIFIER_H
16 #define META_SRC_ANIMATION_MODIFIER_H
17 
18 #include <meta/base/namespace.h>
19 #include <meta/base/types.h>
20 #include <meta/ext/attachment/attachment.h>
21 #include <meta/interface/animation/intf_animation.h>
22 #include <meta/interface/animation/intf_animation_modifier.h>
23 
META_BEGIN_NAMESPACE()24 META_BEGIN_NAMESPACE()
25 
26 class AnimationModifierFwd : public IntroduceInterfaces<AttachmentFwd, IAnimationModifier> {
27 public:
28     using Super = IntroduceInterfaces<AttachmentFwd, IAnimationModifier>;
29 
30 public:
31     bool AttachTo(const META_NS::IAttach::Ptr& target, const META_NS::IObject::Ptr& dataContext) override
32     {
33         return true;
34     }
35     bool DetachFrom(const META_NS::IAttach::Ptr& target) override
36     {
37         return true;
38     }
39 
40 public: // IAnimationModifier
41     bool ProcessOnGetDuration(IAnimationModifier::DurationData& duration) const override
42     {
43         return true;
44     }
45     bool ProcessOnStep(IAnimationModifier::StepData& step) const override
46     {
47         return true;
48     }
49 };
50 
51 META_END_NAMESPACE()
52 
53 #endif // META_SRC_ANIMATION_MODIFIER_H
54