2 * Copyright (c) 2021 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-extension/devel-api/rive-animation-view/rive-animation-view.h>
25 using namespace Dali::Toolkit;
26 using namespace Dali::Extension;
32 static const char *nullExceptMsg = "Attempt to dereference null Dali::Extension::RiveAnimationView";
34 SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_RiveAnimationView_New__SWIG_0(char * jarg1) {
35 void *jresult = nullptr;
36 RiveAnimationView result;
39 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
42 std::string arg1_str(jarg1);
45 result = RiveAnimationView::New(arg1_str);
46 jresult = new Dali::Extension::RiveAnimationView((const Dali::Extension::RiveAnimationView &)result);
47 } CALL_CATCH_EXCEPTION(0);
53 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RiveAnimationView_EnableAnimation(char * jarg1, char * jarg2, bool jarg3) {
54 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
57 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
61 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
64 std::string arg2_str(jarg2);
67 arg1->EnableAnimation(arg2_str, jarg3);
69 CALL_CATCH_EXCEPTION();
73 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RiveAnimationView_PlayAnimation(char * jarg1) {
74 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
77 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
82 arg1->PlayAnimation();
84 CALL_CATCH_EXCEPTION();
88 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RiveAnimationView_PauseAnimation(char * jarg1) {
89 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
92 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
97 arg1->PauseAnimation();
99 CALL_CATCH_EXCEPTION();
103 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RiveAnimationView_StopAnimation(char * jarg1) {
104 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
107 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
112 arg1->StopAnimation();
114 CALL_CATCH_EXCEPTION();
118 SWIGEXPORT void CSharp_Dali_RiveAnimationView_SetShapeFillColor(char * jarg1, char * jarg2, char * jarg3)
120 Dali::Vector4 *arg3 = nullptr;
122 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
124 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
128 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
131 std::string arg2_str(jarg2);
132 arg3 = (Dali::Vector4 *)jarg3;
134 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector4 const & type is null", 0);
143 arg1->SetShapeFillColor(arg2_str, *arg3);
145 CALL_CATCH_EXCEPTION();
149 SWIGEXPORT void CSharp_Dali_RiveAnimationView_SetShapeStrokeColor(char * jarg1, char * jarg2, char * jarg3)
151 Dali::Vector4 *arg3 = nullptr;
153 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
155 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
159 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
162 std::string arg2_str(jarg2);
163 arg3 = (Dali::Vector4 *)jarg3;
165 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector4 const & type is null", 0);
174 arg1->SetShapeStrokeColor(arg2_str, *arg3);
176 CALL_CATCH_EXCEPTION();
180 SWIGEXPORT void CSharp_Dali_RiveAnimationView_SetNodeOpacity(char * jarg1, char * jarg2, float jarg3)
182 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
185 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
189 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
192 std::string arg2_str(jarg2);
195 arg1->SetNodeOpacity(arg2_str, jarg3);
197 CALL_CATCH_EXCEPTION();
201 SWIGEXPORT void CSharp_Dali_RiveAnimationView_SetNodeScale(char * jarg1, char * jarg2, char * jarg3)
203 Dali::Vector2 *arg3 = nullptr;
205 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
207 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
211 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
214 std::string arg2_str(jarg2);
215 arg3 = (Dali::Vector2 *)jarg3;
217 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector2 const & type is null", 0);
222 arg1->SetNodeScale(arg2_str, *arg3);
224 CALL_CATCH_EXCEPTION();
228 SWIGEXPORT void CSharp_Dali_RiveAnimationView_SetNodeRotation(char * jarg1, char * jarg2, char * jarg3)
230 Dali::Degree *arg3 = nullptr;
232 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
234 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
238 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
241 std::string arg2_str(jarg2);
242 arg3 = (Dali::Degree *)jarg3;
244 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Degree const & type is null", 0);
249 arg1->SetNodeRotation(arg2_str, *arg3);
251 CALL_CATCH_EXCEPTION();
255 SWIGEXPORT void CSharp_Dali_RiveAnimationView_SetNodePosition(char * jarg1, char * jarg2, char * jarg3)
257 Dali::Vector2 *arg3 = nullptr;
259 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
261 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
265 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
268 std::string arg2_str(jarg2);
269 arg3 = (Dali::Vector2 *)jarg3;
271 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector2 const & type is null", 0);
276 arg1->SetNodePosition(arg2_str, *arg3);
278 CALL_CATCH_EXCEPTION();
282 SWIGEXPORT void CSharp_Dali_RiveAnimationView_PointerMove(char * jarg1, float jarg2, float jarg3)
284 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
286 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
291 arg1->PointerMove(jarg2, jarg3);
293 CALL_CATCH_EXCEPTION();
297 SWIGEXPORT void CSharp_Dali_RiveAnimationView_PointerDown(char * jarg1, float jarg2, float jarg3)
299 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
301 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
306 arg1->PointerDown(jarg2, jarg3);
308 CALL_CATCH_EXCEPTION();
312 SWIGEXPORT void CSharp_Dali_RiveAnimationView_PointerUp(char * jarg1, float jarg2, float jarg3)
314 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
316 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
321 arg1->PointerUp(jarg2, jarg3);
323 CALL_CATCH_EXCEPTION();
327 SWIGEXPORT bool CSharp_Dali_RiveAnimationView_SetNumberState(char * jarg1, char * jarg2, char * jarg3, float jarg4)
329 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
331 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
335 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
338 std::string arg2_str(jarg2);
340 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg3 is null string", 0);
343 std::string arg3_str(jarg3);
346 return arg1->SetNumberState(arg2_str, arg3_str, jarg4);
348 CALL_CATCH_EXCEPTION(false);
352 SWIGEXPORT bool CSharp_Dali_RiveAnimationView_SetBooleanState(char * jarg1, char * jarg2, char * jarg3, bool jarg4)
354 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
356 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
360 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
363 std::string arg2_str(jarg2);
365 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg3 is null string", 0);
368 std::string arg3_str(jarg3);
371 return arg1->SetBooleanState(arg2_str, arg3_str, jarg4);
373 CALL_CATCH_EXCEPTION(false);
377 SWIGEXPORT bool CSharp_Dali_RiveAnimationView_FireState(char * jarg1, char * jarg2, char * jarg3)
379 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
381 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
385 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
388 std::string arg2_str(jarg2);
390 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg3 is null string", 0);
393 std::string arg3_str(jarg3);
396 return arg1->FireState(arg2_str, arg3_str);
398 CALL_CATCH_EXCEPTION(false);
402 SWIGEXPORT void CSharp_Dali_RiveAnimationView_SetAnimationElapsedTime(char * jarg1, char * jarg2, float jarg3)
404 RiveAnimationView *arg1 = (RiveAnimationView *)jarg1;
406 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, nullExceptMsg, 0);
410 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "jarg2 is null string", 0);
413 std::string arg2_str(jarg2);
416 arg1->SetAnimationElapsedTime(arg2_str, jarg3);
418 CALL_CATCH_EXCEPTION();