2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/public-api/animation/key-frames.h>
20 #include <dali/public-api/object/property-value.h>
21 #include <dali-scene3d/public-api/model-motion/motion-value.h>
24 #include <dali-csharp-binder/common/common.h>
30 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionValue_New_SWIG_0()
32 Dali::Scene3D::MotionValue result;
37 result = Dali::Scene3D::MotionValue::New();
39 CALL_CATCH_EXCEPTION(0);
42 return new Dali::Scene3D::MotionValue((const Dali::Scene3D::MotionValue&)result);
45 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionValue_New_SWIG_1(void* csPropertyValue)
47 Dali::Property::Value* propertyValue = (Dali::Property::Value*)csPropertyValue;
48 Dali::Scene3D::MotionValue result;
52 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Value const & type is null", 0);
58 result = Dali::Scene3D::MotionValue::New(*propertyValue);
60 CALL_CATCH_EXCEPTION(0);
63 return new Dali::Scene3D::MotionValue((const Dali::Scene3D::MotionValue&)result);
66 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionValue_New_SWIG_2(void* csKeyFrames)
68 Dali::KeyFrames* keyFrames = (Dali::KeyFrames*)csKeyFrames;
69 Dali::Scene3D::MotionValue result;
73 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::KeyFrames const & type is null", 0);
79 result = Dali::Scene3D::MotionValue::New(*keyFrames);
81 CALL_CATCH_EXCEPTION(0);
84 return new Dali::Scene3D::MotionValue((const Dali::Scene3D::MotionValue&)result);
87 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_MotionValue_SWIG_0()
89 Dali::Scene3D::MotionValue* result = 0;
94 result = (Dali::Scene3D::MotionValue*)new Dali::Scene3D::MotionValue();
96 CALL_CATCH_EXCEPTION(0);
102 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_MotionValue_SWIG_1(void* csMotionValue)
104 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
105 Dali::Scene3D::MotionValue* result = 0;
109 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionValue const & type is null", 0);
115 result = (Dali::Scene3D::MotionValue*)new Dali::Scene3D::MotionValue((Dali::Scene3D::MotionValue const&)*motionValue);
117 CALL_CATCH_EXCEPTION(0);
120 return (void*)result;
123 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MotionValue(void* csMotionValue)
125 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
131 CALL_CATCH_EXCEPTION();
135 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionValue_Assign(void* csDestination, void* csSource)
137 Dali::Scene3D::MotionValue* destination = (Dali::Scene3D::MotionValue*)csDestination;
138 Dali::Scene3D::MotionValue* source = (Dali::Scene3D::MotionValue*)csSource;
139 Dali::Scene3D::MotionValue* result = 0;
143 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Scene3D::MotionValue const & type is null", 0);
149 result = (Dali::Scene3D::MotionValue*)&(destination)->operator=((Dali::Scene3D::MotionValue const&)*source);
151 CALL_CATCH_EXCEPTION(0);
154 return (void*)result;
157 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionValue_DownCast(void* csHandle)
159 Dali::BaseHandle* handle = (Dali::BaseHandle*)csHandle;
160 Dali::Scene3D::MotionValue result;
164 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::Model", 0);
170 result = Dali::Scene3D::MotionValue::DownCast(*handle);
172 CALL_CATCH_EXCEPTION(0);
175 return new Dali::Scene3D::MotionValue((const Dali::Scene3D::MotionValue&)result);
178 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MotionValue_GetValueType(void* csMotionValue)
180 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
185 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionValue", 0);
191 result = static_cast<int>(motionValue->GetValueType());
193 CALL_CATCH_EXCEPTION(0);
199 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MotionValue_SetValue_PropertyValue(void* csMotionValue, void* csPropertyValue)
201 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
202 Dali::Property::Value* propertyValue = (Dali::Property::Value*)csPropertyValue;
206 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionValue", 0);
211 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Value const & type is null", 0);
217 motionValue->SetValue(*propertyValue);
219 CALL_CATCH_EXCEPTION();
223 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MotionValue_SetValue_KeyFrames(void* csMotionValue, void* csKeyFrames)
225 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
226 Dali::KeyFrames* keyFrames = (Dali::KeyFrames*)csKeyFrames;
230 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionValue", 0);
235 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::KeyFrames const & type is null", 0);
241 motionValue->SetValue(*keyFrames);
243 CALL_CATCH_EXCEPTION();
247 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MotionValue_Clear(void* csMotionValue)
249 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
253 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionValue", 0);
259 motionValue->Clear();
261 CALL_CATCH_EXCEPTION();
265 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionValue_GetPropertyValue(void* csMotionValue)
267 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
268 Dali::Property::Value result;
272 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionValue", 0);
278 result = motionValue->GetPropertyValue();
280 CALL_CATCH_EXCEPTION(0);
283 return new Dali::Property::Value((Dali::Property::Value const &)result);
286 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_MotionValue_GetKeyFrames(void* csMotionValue)
288 Dali::Scene3D::MotionValue* motionValue = (Dali::Scene3D::MotionValue*)csMotionValue;
289 Dali::KeyFrames result;
293 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Scene3D::MotionValue", 0);
299 result = motionValue->GetKeyFrames();
301 CALL_CATCH_EXCEPTION(0);
304 return new Dali::KeyFrames((Dali::KeyFrames const &)result);