[Adaptation Layer] Added rive-tizen adaptation layer class.
[platform/core/uifw/rive-tizen.git] / submodule / include / generated / animation / blend_state_1d_base.hpp
1 #ifndef _RIVE_BLEND_STATE1_DBASE_HPP_
2 #define _RIVE_BLEND_STATE1_DBASE_HPP_
3 #include "animation/blend_state.hpp"
4 #include "core/field_types/core_uint_type.hpp"
5 namespace rive
6 {
7         class BlendState1DBase : public BlendState
8         {
9         protected:
10                 typedef BlendState Super;
11
12         public:
13                 static const uint16_t typeKey = 76;
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 BlendState1DBase::typeKey:
22                                 case BlendStateBase::typeKey:
23                                 case LayerStateBase::typeKey:
24                                 case StateMachineLayerComponentBase::typeKey:
25                                         return true;
26                                 default:
27                                         return false;
28                         }
29                 }
30
31                 uint16_t coreType() const override { return typeKey; }
32
33                 static const uint16_t inputIdPropertyKey = 167;
34
35         private:
36                 int m_InputId = -1;
37         public:
38                 inline int inputId() const { return m_InputId; }
39                 void inputId(int value)
40                 {
41                         if (m_InputId == value)
42                         {
43                                 return;
44                         }
45                         m_InputId = value;
46                         inputIdChanged();
47                 }
48
49                 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
50                 {
51                         switch (propertyKey)
52                         {
53                                 case inputIdPropertyKey:
54                                         m_InputId = CoreUintType::deserialize(reader);
55                                         return true;
56                         }
57                         return BlendState::deserialize(propertyKey, reader);
58                 }
59
60         protected:
61                 virtual void inputIdChanged() {}
62         };
63 } // namespace rive
64
65 #endif