[Adaptation Layer] Added rive-tizen adaptation layer class.
[platform/core/uifw/rive-tizen.git] / submodule / include / generated / animation / blend_animation_direct_base.hpp
1 #ifndef _RIVE_BLEND_ANIMATION_DIRECT_BASE_HPP_
2 #define _RIVE_BLEND_ANIMATION_DIRECT_BASE_HPP_
3 #include "animation/blend_animation.hpp"
4 #include "core/field_types/core_uint_type.hpp"
5 namespace rive
6 {
7         class BlendAnimationDirectBase : public BlendAnimation
8         {
9         protected:
10                 typedef BlendAnimation Super;
11
12         public:
13                 static const uint16_t typeKey = 77;
14
15                 /// Helper to quickly determine if a core object extends another without
16                 /// RTTI at runtime.
17                 bool isTypeOf(uint16_t typeKey) const override
18                 {
19                         switch (typeKey)
20                         {
21                                 case BlendAnimationDirectBase::typeKey:
22                                 case BlendAnimationBase::typeKey:
23                                         return true;
24                                 default:
25                                         return false;
26                         }
27                 }
28
29                 uint16_t coreType() const override { return typeKey; }
30
31                 static const uint16_t inputIdPropertyKey = 168;
32
33         private:
34                 int m_InputId = -1;
35         public:
36                 inline int inputId() const { return m_InputId; }
37                 void inputId(int value)
38                 {
39                         if (m_InputId == value)
40                         {
41                                 return;
42                         }
43                         m_InputId = value;
44                         inputIdChanged();
45                 }
46
47                 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
48                 {
49                         switch (propertyKey)
50                         {
51                                 case inputIdPropertyKey:
52                                         m_InputId = CoreUintType::deserialize(reader);
53                                         return true;
54                         }
55                         return BlendAnimation::deserialize(propertyKey, reader);
56                 }
57
58         protected:
59                 virtual void inputIdChanged() {}
60         };
61 } // namespace rive
62
63 #endif