1 /** Copyright (c) 2017 Samsung Electronics 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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef CSHARP_APPLICATION
18 #define CSHARP_APPLICATION
23 #include <dali/public-api/adaptor-framework/application.h>
24 #include <dali/devel-api/adaptor-framework/application-devel.h>
25 #include <dali/integration-api/adaptors/adaptor.h>
27 /* Callback for returning strings to C# without leaking memory */
28 typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
29 extern SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback;
32 // keep argcs and argv so they're always available to DALi
36 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Empty(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *self){
39 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *self){
40 return self->GetConnectionCount();
42 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Connect(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *self,void (*func)(Dali::DeviceStatus::Battery::Status)){
43 self->Connect( func );
45 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Disconnect(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *self,void (*func)(Dali::DeviceStatus::Battery::Status)){
46 self->Disconnect( func );
48 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Emit(Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *self,Dali::DeviceStatus::Battery::Status arg){
51 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Empty(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *self){
54 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *self){
55 return self->GetConnectionCount();
57 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Connect(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *self,void (*func)(Dali::DeviceStatus::Memory::Status)){
58 self->Connect( func );
60 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Disconnect(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *self,void (*func)(Dali::DeviceStatus::Memory::Status)){
61 self->Disconnect( func );
63 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Emit(Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *self,Dali::DeviceStatus::Memory::Status arg){
67 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Empty(Dali::Signal< void (Dali::Application &) > const *self){
70 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Application &) > const *self){
71 return self->GetConnectionCount();
73 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Connect(Dali::Signal< void (Dali::Application &) > *self,void (*func)(Dali::Application &)){
74 self->Connect( func );
76 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Disconnect(Dali::Signal< void (Dali::Application &) > *self,void (*func)(Dali::Application &)){
77 self->Disconnect( func );
79 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Emit(Dali::Signal< void (Dali::Application &) > *self,Dali::Application &arg){
83 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Empty(Dali::Signal< void (Dali::Application &,void *) > const *self){
86 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Application &,void *) > const *self){
87 return self->GetConnectionCount();
89 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Connect(Dali::Signal< void (Dali::Application &,void *) > *self,void (*func)(Dali::Application &,void *)){
90 self->Connect( func );
92 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Disconnect(Dali::Signal< void (Dali::Application &,void *) > *self,void (*func)(Dali::Application &,void *)){
93 self->Disconnect( func );
95 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Emit(Dali::Signal< void (Dali::Application &,void *) > *self,Dali::Application &arg1,void *arg2){
96 self->Emit( arg1, arg2 );
103 /*Application binding*/
104 SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Application_SWIGUpcast(Dali::Application *jarg1) {
105 return (Dali::BaseHandle *)jarg1;
108 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_0() {
110 Dali::Application result;
114 result = Dali::Application::New();
115 } catch (std::out_of_range& e) {
117 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
119 } catch (std::exception& e) {
121 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
123 } catch (Dali::DaliException e) {
125 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
129 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
134 jresult = new Dali::Application((const Dali::Application &)result);
139 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_1(int jarg1) {
144 Dali::Application result;
146 std::string app_name = "dali-csharp-app";
147 int stringLength = app_name.length();
148 argV = new char*[arg1 + 1];
149 argV[0] = new char[stringLength + 1];
151 strncpy(argV[0], app_name.c_str(), stringLength);
152 argV[0][stringLength] = '\0';
159 result = Dali::Application::New(&arg1, arg2);
160 } catch (std::out_of_range& e) {
162 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
164 } catch (std::exception& e) {
166 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
168 } catch (Dali::DaliException e) {
170 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
174 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
179 jresult = new Dali::Application((const Dali::Application &)result);
184 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_2(int jarg1, char * jarg3) {
188 std::string *arg3 = 0;
190 Dali::Application result;
192 std::string app_name = "dali-csharp-app";
193 int stringLength = app_name.length();
194 argV = new char*[arg1 + 1];
195 argV[0] = new char[stringLength + 1];
197 strncpy(argV[0], app_name.c_str(), stringLength);
198 argV[0][stringLength] = '\0';
205 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
210 std::string arg3_str(jarg3);
214 result = Dali::Application::New(&arg1, arg2,(std::string const &)*arg3);
215 } catch (std::out_of_range& e) {
217 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
219 } catch (std::exception& e) {
221 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
223 } catch (Dali::DaliException e) {
225 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
229 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
234 jresult = new Dali::Application((const Dali::Application &)result);
236 //argout typemap for const std::string&
242 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_3(int jarg1, char * jarg3, int jarg4) {
246 std::string *arg3 = 0;
247 Dali::Application::WINDOW_MODE arg4;
249 Dali::Application result;
251 std::string app_name = "dali-csharp-app";
252 int stringLength = app_name.length();
253 argV = new char*[arg1 + 1];
254 argV[0] = new char[stringLength + 1];
256 strncpy(argV[0], app_name.c_str(), stringLength);
257 argV[0][stringLength] = '\0';
263 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
268 std::string arg3_str(jarg3);
270 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
273 result = Dali::Application::New(&arg1, arg2,(std::string const &)*arg3,arg4);
274 } catch (std::out_of_range& e) {
276 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
278 } catch (std::exception& e) {
280 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
282 } catch (Dali::DaliException e) {
284 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
288 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
293 jresult = new Dali::Application((const Dali::Application &)result);
295 //argout typemap for const std::string&
301 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__MANUAL_4(int jarg1, char * jarg2, char * jarg3, int jarg4) {
303 int *arg1 = (int *) 0 ;
305 std::string *arg3 = 0 ;
306 Dali::Application::WINDOW_MODE arg4 ;
307 Dali::Application result;
309 // Todo generate argv data from the C# args
315 argV = new char*[jarg1 + 1];
317 for(retPtr = strtok_r(jarg2, " ", &nextPtr);
318 retPtr != NULL && index < jarg1;
319 retPtr = strtok_r(NULL, " ", &nextPtr))
322 length = strlen(retPtr);
323 argV[ index ] = new char[ length + 1 ];
324 strncpy( argV[ index ], retPtr, length );
325 argV[ index ][ length ] = '\0';
329 while( index < jarg1 )
331 //if jarg1 - index >1, maybe cause error.
343 std::string arg3_str(jarg3);
345 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
348 result = Dali::Application::New(arg1,arg2,(std::string const &)*arg3,arg4);
349 } catch (std::out_of_range& e) {
351 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
353 } catch (std::exception& e) {
355 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
357 } catch (Dali::DaliException e) {
359 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
363 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
367 jresult = new Dali::Application((const Dali::Application &)result);
371 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Application__SWIG_0() {
373 Dali::Application *result = 0 ;
377 result = (Dali::Application *)new Dali::Application();
378 } catch (std::out_of_range& e) {
380 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
382 } catch (std::exception& e) {
384 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
386 } catch (Dali::DaliException e) {
388 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
392 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
397 jresult = (void *)result;
402 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Application__SWIG_1(void * jarg1) {
404 Dali::Application *arg1 = 0 ;
405 Dali::Application *result = 0 ;
407 arg1 = (Dali::Application *)jarg1;
409 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application const & type is null", 0);
414 result = (Dali::Application *)new Dali::Application((Dali::Application const &)*arg1);
415 } catch (std::out_of_range& e) {
417 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
419 } catch (std::exception& e) {
421 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
423 } catch (Dali::DaliException e) {
425 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
429 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
434 jresult = (void *)result;
439 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_Assign(void * jarg1, void * jarg2) {
441 Dali::Application *arg1 = (Dali::Application *) 0 ;
442 Dali::Application *arg2 = 0 ;
443 Dali::Application *result = 0 ;
445 arg1 = (Dali::Application *)jarg1;
446 arg2 = (Dali::Application *)jarg2;
448 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application const & type is null", 0);
453 result = (Dali::Application *) &(arg1)->operator =((Dali::Application const &)*arg2);
454 } catch (std::out_of_range& e) {
456 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
458 } catch (std::exception& e) {
460 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
462 } catch (Dali::DaliException e) {
464 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
468 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
473 jresult = (void *)result;
478 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Application(void * jarg1) {
479 Dali::Application *arg1 = (Dali::Application *) 0 ;
481 arg1 = (Dali::Application *)jarg1;
488 for( int i=0; i < argC+1; i++)
494 } catch (std::out_of_range& e) {
496 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
498 } catch (std::exception& e) {
500 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
502 } catch (Dali::DaliException e) {
504 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
508 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
516 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_MainLoop__SWIG_0(void * jarg1) {
517 Dali::Application *arg1 = (Dali::Application *) 0 ;
519 arg1 = (Dali::Application *)jarg1;
523 } catch (std::out_of_range& e) {
525 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
527 } catch (std::exception& e) {
529 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
531 } catch (Dali::DaliException e) {
533 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
537 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
545 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_MainLoop__SWIG_1(void * jarg1, void * jarg2) {
546 Dali::Application *arg1 = (Dali::Application *) 0 ;
547 Dali::Configuration::ContextLoss arg2 ;
548 Dali::Configuration::ContextLoss *argp2 ;
550 arg1 = (Dali::Application *)jarg1;
551 argp2 = (Dali::Configuration::ContextLoss *)jarg2;
553 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Configuration::ContextLoss", 0);
559 (arg1)->MainLoop(arg2);
560 } catch (std::out_of_range& e) {
562 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
564 } catch (std::exception& e) {
566 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
568 } catch (Dali::DaliException e) {
570 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
574 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
582 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_Lower(void * jarg1) {
583 Dali::Application *arg1 = (Dali::Application *) 0 ;
585 arg1 = (Dali::Application *)jarg1;
589 } catch (std::out_of_range& e) {
591 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
593 } catch (std::exception& e) {
595 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
597 } catch (Dali::DaliException e) {
599 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
603 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
611 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_Quit(void * jarg1) {
612 Dali::Application *arg1 = (Dali::Application *) 0 ;
614 arg1 = (Dali::Application *)jarg1;
618 } catch (std::out_of_range& e) {
620 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
622 } catch (std::exception& e) {
624 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
626 } catch (Dali::DaliException e) {
628 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
632 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
640 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_AddIdle(void * jarg1, void * jarg2) {
641 unsigned int jresult ;
642 Dali::Application *arg1 = (Dali::Application *) 0 ;
643 Dali::CallbackBase *arg2 = (Dali::CallbackBase *) 0 ;
646 arg1 = (Dali::Application *)jarg1;
647 arg2 = (Dali::CallbackBase *)jarg2;
650 result = (bool)(arg1)->AddIdle(arg2);
651 } catch (std::out_of_range& e) {
653 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
655 } catch (std::exception& e) {
657 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
659 } catch (Dali::DaliException e) {
661 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
665 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
675 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_GetWindow(void * jarg1) {
677 Dali::Application *arg1 = (Dali::Application *) 0 ;
680 arg1 = (Dali::Application *)jarg1;
683 result = (arg1)->GetWindow();
684 } catch (std::out_of_range& e) {
686 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
688 } catch (std::exception& e) {
690 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
692 } catch (Dali::DaliException e) {
694 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
698 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
703 jresult = new Dali::Window((const Dali::Window &)result);
707 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_GetWindowsListSize() {
708 unsigned int jresult ;
709 Dali::WindowContainer result;
712 result = Dali::Adaptor::Get().GetWindows();
713 jresult = result.size();
714 } catch (std::out_of_range& e) {
716 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
718 } catch (std::exception& e) {
720 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
722 } catch (Dali::DaliException e) {
724 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
728 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
735 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_GetWindowsFromList(uint jarg1) {
738 Dali::WindowContainer result;
742 result = Dali::Adaptor::Get().GetWindows();
743 } catch (std::out_of_range& e) {
745 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
747 } catch (std::exception& e) {
749 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
751 } catch (Dali::DaliException e) {
753 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
757 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
761 jresult = new Dali::Window((const Dali::Window &)result[index]);
765 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_ReplaceWindow(void * jarg1, void * jarg2, char * jarg3) {
766 Dali::Application *arg1 = (Dali::Application *) 0 ;
767 Dali::PositionSize arg2 ;
768 std::string *arg3 = 0 ;
769 Dali::PositionSize *argp2 ;
771 arg1 = (Dali::Application *)jarg1;
772 argp2 = (Dali::PositionSize *)jarg2;
774 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
779 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
782 std::string arg3_str(jarg3);
786 (arg1)->ReplaceWindow(arg2,(std::string const &)*arg3);
787 } catch (std::out_of_range& e) {
789 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
791 } catch (std::exception& e) {
793 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
795 } catch (Dali::DaliException e) {
797 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
801 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
807 //argout typemap for const std::string&
812 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetResourcePath() {
818 result = Dali::Application::GetResourcePath();
819 } catch (std::out_of_range& e) {
821 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
823 } catch (std::exception& e) {
825 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
827 } catch (Dali::DaliException e) {
829 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
833 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
838 jresult = SWIG_csharp_string_callback((&result)->c_str());
842 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetRegion(void * jarg1) {
844 Dali::Application *arg1 = (Dali::Application *) 0 ;
847 arg1 = (Dali::Application *)jarg1;
850 result = (arg1)->GetRegion();
851 } catch (std::out_of_range& e) {
853 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
855 } catch (std::exception& e) {
857 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
859 } catch (Dali::DaliException e) {
861 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
865 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
869 jresult = SWIG_csharp_string_callback((&result)->c_str());
874 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetLanguage(void * jarg1) {
876 Dali::Application *arg1 = (Dali::Application *) 0 ;
879 arg1 = (Dali::Application *)jarg1;
882 result = (arg1)->GetLanguage();
883 } catch (std::out_of_range& e) {
885 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
887 } catch (std::exception& e) {
889 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
891 } catch (Dali::DaliException e) {
893 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
897 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
901 jresult = SWIG_csharp_string_callback((&result)->c_str());
905 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetViewMode(void * jarg1, int jarg2) {
906 Dali::Application *arg1 = (Dali::Application *) 0 ;
907 Dali::ViewMode arg2 ;
909 arg1 = (Dali::Application *)jarg1;
910 arg2 = (Dali::ViewMode)jarg2;
913 (arg1)->SetViewMode(arg2);
914 } catch (std::out_of_range& e) {
916 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
918 } catch (std::exception& e) {
920 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
922 } catch (Dali::DaliException e) {
924 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
928 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
936 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Application_GetViewMode(void * jarg1) {
938 Dali::Application *arg1 = (Dali::Application *) 0 ;
939 Dali::ViewMode result;
941 arg1 = (Dali::Application *)jarg1;
944 result = (Dali::ViewMode)((Dali::Application const *)arg1)->GetViewMode();
945 } catch (std::out_of_range& e) {
947 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
949 } catch (std::exception& e) {
951 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
953 } catch (Dali::DaliException e) {
955 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
959 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
964 jresult = (int)result;
969 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetStereoBase(void * jarg1, float jarg2) {
970 Dali::Application *arg1 = (Dali::Application *) 0 ;
973 arg1 = (Dali::Application *)jarg1;
977 (arg1)->SetStereoBase(arg2);
978 } catch (std::out_of_range& e) {
980 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
982 } catch (std::exception& e) {
984 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
986 } catch (Dali::DaliException e) {
988 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
992 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1000 SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Application_GetStereoBase(void * jarg1) {
1002 Dali::Application *arg1 = (Dali::Application *) 0 ;
1005 arg1 = (Dali::Application *)jarg1;
1008 result = (float)((Dali::Application const *)arg1)->GetStereoBase();
1009 } catch (std::out_of_range& e) {
1011 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1013 } catch (std::exception& e) {
1015 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1017 } catch (Dali::DaliException e) {
1019 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1023 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1033 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_InitSignal(void * jarg1) {
1035 Dali::Application *arg1 = (Dali::Application *) 0 ;
1036 Dali::Application::AppSignalType *result = 0 ;
1038 arg1 = (Dali::Application *)jarg1;
1041 result = (Dali::Application::AppSignalType *) &(arg1)->InitSignal();
1042 } catch (std::out_of_range& e) {
1044 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1046 } catch (std::exception& e) {
1048 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1050 } catch (Dali::DaliException e) {
1052 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1056 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1061 jresult = (void *)result;
1066 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_TerminateSignal(void * jarg1) {
1068 Dali::Application *arg1 = (Dali::Application *) 0 ;
1069 Dali::Application::AppSignalType *result = 0 ;
1071 arg1 = (Dali::Application *)jarg1;
1074 result = (Dali::Application::AppSignalType *) &(arg1)->TerminateSignal();
1075 } catch (std::out_of_range& e) {
1077 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1079 } catch (std::exception& e) {
1081 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1083 } catch (Dali::DaliException e) {
1085 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1089 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1094 jresult = (void *)result;
1099 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_PauseSignal(void * jarg1) {
1101 Dali::Application *arg1 = (Dali::Application *) 0 ;
1102 Dali::Application::AppSignalType *result = 0 ;
1104 arg1 = (Dali::Application *)jarg1;
1107 result = (Dali::Application::AppSignalType *) &(arg1)->PauseSignal();
1108 } catch (std::out_of_range& e) {
1110 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1112 } catch (std::exception& e) {
1114 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1116 } catch (Dali::DaliException e) {
1118 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1122 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1127 jresult = (void *)result;
1132 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResumeSignal(void * jarg1) {
1134 Dali::Application *arg1 = (Dali::Application *) 0 ;
1135 Dali::Application::AppSignalType *result = 0 ;
1137 arg1 = (Dali::Application *)jarg1;
1140 result = (Dali::Application::AppSignalType *) &(arg1)->ResumeSignal();
1141 } catch (std::out_of_range& e) {
1143 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1145 } catch (std::exception& e) {
1147 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1149 } catch (Dali::DaliException e) {
1151 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1155 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1160 jresult = (void *)result;
1165 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResetSignal(void * jarg1) {
1167 Dali::Application *arg1 = (Dali::Application *) 0 ;
1168 Dali::Application::AppSignalType *result = 0 ;
1170 arg1 = (Dali::Application *)jarg1;
1173 result = (Dali::Application::AppSignalType *) &(arg1)->ResetSignal();
1174 } catch (std::out_of_range& e) {
1176 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1178 } catch (std::exception& e) {
1180 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1182 } catch (Dali::DaliException e) {
1184 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1188 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1193 jresult = (void *)result;
1198 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResizeSignal(void * jarg1) {
1200 Dali::Application *arg1 = (Dali::Application *) 0 ;
1201 Dali::Application::AppSignalType *result = 0 ;
1203 arg1 = (Dali::Application *)jarg1;
1206 result = (Dali::Application::AppSignalType *) &(arg1)->ResizeSignal();
1207 } catch (std::out_of_range& e) {
1209 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1211 } catch (std::exception& e) {
1213 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1215 } catch (Dali::DaliException e) {
1217 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1221 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1226 jresult = (void *)result;
1231 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_AppControlSignal(void * jarg1) {
1233 Dali::Application *arg1 = (Dali::Application *) 0 ;
1234 Dali::Application::AppControlSignalType *result = 0 ;
1236 arg1 = (Dali::Application *)jarg1;
1239 result = (Dali::Application::AppControlSignalType *) &(arg1)->AppControlSignal();
1240 } catch (std::out_of_range& e) {
1242 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1244 } catch (std::exception& e) {
1246 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1248 } catch (Dali::DaliException e) {
1250 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1254 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1259 jresult = (void *)result;
1264 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_LanguageChangedSignal(void * jarg1) {
1266 Dali::Application *arg1 = (Dali::Application *) 0 ;
1267 Dali::Application::AppSignalType *result = 0 ;
1269 arg1 = (Dali::Application *)jarg1;
1272 result = (Dali::Application::AppSignalType *) &(arg1)->LanguageChangedSignal();
1273 } catch (std::out_of_range& e) {
1275 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1277 } catch (std::exception& e) {
1279 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1281 } catch (Dali::DaliException e) {
1283 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1287 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1292 jresult = (void *)result;
1297 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_RegionChangedSignal(void * jarg1) {
1299 Dali::Application *arg1 = (Dali::Application *) 0 ;
1300 Dali::Application::AppSignalType *result = 0 ;
1302 arg1 = (Dali::Application *)jarg1;
1305 result = (Dali::Application::AppSignalType *) &(arg1)->RegionChangedSignal();
1306 } catch (std::out_of_range& e) {
1308 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1310 } catch (std::exception& e) {
1312 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1314 } catch (Dali::DaliException e) {
1316 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1320 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1325 jresult = (void *)result;
1329 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_LowBatterySignal(void * jarg1) {
1331 Dali::Application *arg1 = (Dali::Application *) 0 ;
1332 Dali::Application::LowBatterySignalType *result = 0 ;
1334 arg1 = (Dali::Application *)jarg1;
1337 result = (Dali::Application::LowBatterySignalType *) &(arg1)->LowBatterySignal();
1338 } catch (std::out_of_range& e) {
1340 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1342 } catch (std::exception& e) {
1344 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1346 } catch (Dali::DaliException e) {
1348 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1352 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1357 jresult = (void *)result;
1362 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_LowMemorySignal(void * jarg1) {
1364 Dali::Application *arg1 = (Dali::Application *) 0 ;
1365 Dali::Application::LowMemorySignalType *result = 0 ;
1367 arg1 = (Dali::Application *)jarg1;
1370 result = (Dali::Application::LowMemorySignalType *) &(arg1)->LowMemorySignal();
1371 } catch (std::out_of_range& e) {
1373 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1375 } catch (std::exception& e) {
1377 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1379 } catch (Dali::DaliException e) {
1381 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1385 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1389 jresult = (void *)result;
1394 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Empty(void * jarg1) {
1395 unsigned int jresult ;
1396 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1399 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1402 result = (bool)Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Empty((Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *)arg1);
1403 } catch (std::out_of_range& e) {
1405 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1407 } catch (std::exception& e) {
1409 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1411 } catch (Dali::DaliException e) {
1413 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1417 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1427 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_GetConnectionCount(void * jarg1) {
1428 unsigned long jresult ;
1429 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1432 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1435 result = Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > const *)arg1);
1436 } catch (std::out_of_range& e) {
1438 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1440 } catch (std::exception& e) {
1442 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1444 } catch (Dali::DaliException e) {
1446 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1450 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1454 jresult = (unsigned long)result;
1459 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Connect(void * jarg1, void * jarg2) {
1460 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1461 void (*arg2)(Dali::DeviceStatus::Battery::Status) = (void (*)(Dali::DeviceStatus::Battery::Status)) 0 ;
1463 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1464 arg2 = (void (*)(Dali::DeviceStatus::Battery::Status))jarg2;
1467 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Connect(arg1,arg2);
1468 } catch (std::out_of_range& e) {
1470 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1472 } catch (std::exception& e) {
1474 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1476 } catch (Dali::DaliException e) {
1478 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1482 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1489 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Disconnect(void * jarg1, void * jarg2) {
1490 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1491 void (*arg2)(Dali::DeviceStatus::Battery::Status) = (void (*)(Dali::DeviceStatus::Battery::Status)) 0 ;
1493 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1494 arg2 = (void (*)(Dali::DeviceStatus::Battery::Status))jarg2;
1497 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Disconnect(arg1,arg2);
1498 } catch (std::out_of_range& e) {
1500 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1502 } catch (std::exception& e) {
1504 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1506 } catch (Dali::DaliException e) {
1508 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1512 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1519 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowBatterySignalType_Emit(void * jarg1, void * jarg2) {
1520 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1521 Dali::DeviceStatus::Battery::Status arg2 ;
1522 Dali::DeviceStatus::Battery::Status *argp2 ;
1524 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1525 argp2 = (Dali::DeviceStatus::Battery::Status *)jarg2;
1527 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::DeviceStatus::Battery::Status", 0);
1533 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Battery_Status_SP__Sg__Emit(arg1,arg2);
1534 } catch (std::out_of_range& e) {
1536 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1538 } catch (std::exception& e) {
1540 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1542 } catch (Dali::DaliException e) {
1544 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1548 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1555 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_new_LowBatterySignalType() {
1557 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *result = 0 ;
1561 result = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)new Dali::Signal< void (Dali::DeviceStatus::Battery::Status) >();
1562 } catch (std::out_of_range& e) {
1564 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1566 } catch (std::exception& e) {
1568 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1570 } catch (Dali::DaliException e) {
1572 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1576 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1581 jresult = (void *)result;
1586 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_delete_LowBatterySignalType(void * jarg1) {
1587 Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *) 0 ;
1589 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Battery::Status) > *)jarg1;
1593 } catch (std::out_of_range& e) {
1595 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1597 } catch (std::exception& e) {
1599 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1601 } catch (Dali::DaliException e) {
1603 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1607 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1614 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Empty(void * jarg1) {
1615 unsigned int jresult ;
1616 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1619 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1622 result = (bool)Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Empty((Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *)arg1);
1623 } catch (std::out_of_range& e) {
1625 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1627 } catch (std::exception& e) {
1629 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1631 } catch (Dali::DaliException e) {
1633 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1637 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1646 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_GetConnectionCount(void * jarg1) {
1647 unsigned long jresult ;
1648 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1651 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1654 result = Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > const *)arg1);
1655 } catch (std::out_of_range& e) {
1657 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1659 } catch (std::exception& e) {
1661 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1663 } catch (Dali::DaliException e) {
1665 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1669 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1673 jresult = (unsigned long)result;
1678 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Connect(void * jarg1, void * jarg2) {
1679 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1680 void (*arg2)(Dali::DeviceStatus::Memory::Status) = (void (*)(Dali::DeviceStatus::Memory::Status)) 0 ;
1682 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1683 arg2 = (void (*)(Dali::DeviceStatus::Memory::Status))jarg2;
1686 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Connect(arg1,arg2);
1687 } catch (std::out_of_range& e) {
1689 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1691 } catch (std::exception& e) {
1693 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1695 } catch (Dali::DaliException e) {
1697 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1701 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1708 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Disconnect(void * jarg1, void * jarg2) {
1709 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1710 void (*arg2)(Dali::DeviceStatus::Memory::Status) = (void (*)(Dali::DeviceStatus::Memory::Status)) 0 ;
1712 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1713 arg2 = (void (*)(Dali::DeviceStatus::Memory::Status))jarg2;
1716 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Disconnect(arg1,arg2);
1717 } catch (std::out_of_range& e) {
1719 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1721 } catch (std::exception& e) {
1723 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1725 } catch (Dali::DaliException e) {
1727 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1731 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1738 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_LowMemorySignalType_Emit(void * jarg1, void * jarg2) {
1739 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1740 Dali::DeviceStatus::Memory::Status arg2 ;
1741 Dali::DeviceStatus::Memory::Status *argp2 ;
1743 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1744 argp2 = (Dali::DeviceStatus::Memory::Status *)jarg2;
1746 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::DeviceStatus::Memory::Status", 0);
1752 Dali_Signal_Sl_void_Sp_Dali_DeviceStatus_Memory_Status_SP__Sg__Emit(arg1,arg2);
1753 } catch (std::out_of_range& e) {
1755 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1757 } catch (std::exception& e) {
1759 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1761 } catch (Dali::DaliException e) {
1763 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1767 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1774 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_new_LowMemorySignalType() {
1776 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *result = 0 ;
1780 result = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)new Dali::Signal< void (Dali::DeviceStatus::Memory::Status) >();
1781 } catch (std::out_of_range& e) {
1783 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1785 } catch (std::exception& e) {
1787 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1789 } catch (Dali::DaliException e) {
1791 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1795 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1799 jresult = (void *)result;
1804 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_delete_LowMemorySignalType(void * jarg1) {
1805 Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *) 0 ;
1807 arg1 = (Dali::Signal< void (Dali::DeviceStatus::Memory::Status) > *)jarg1;
1811 } catch (std::out_of_range& e) {
1813 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1815 } catch (std::exception& e) {
1817 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1819 } catch (Dali::DaliException e) {
1821 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1825 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1832 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ApplicationSignal_Empty(void * jarg1) {
1833 unsigned int jresult ;
1834 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1837 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1840 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Empty((Dali::Signal< void (Dali::Application &) > const *)arg1);
1841 } catch (std::out_of_range& e) {
1843 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1845 } catch (std::exception& e) {
1847 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1849 } catch (Dali::DaliException e) {
1851 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1855 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1865 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ApplicationSignal_GetConnectionCount(void * jarg1) {
1866 unsigned long jresult ;
1867 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1870 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1873 result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &) > const *)arg1);
1874 } catch (std::out_of_range& e) {
1876 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1878 } catch (std::exception& e) {
1880 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1882 } catch (Dali::DaliException e) {
1884 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1888 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1893 jresult = (unsigned long)result;
1898 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Connect(void * jarg1, void * jarg2) {
1899 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1900 void (*arg2)(Dali::Application &) = (void (*)(Dali::Application &)) 0 ;
1902 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1903 arg2 = (void (*)(Dali::Application &))jarg2;
1906 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Connect(arg1,arg2);
1907 } catch (std::out_of_range& e) {
1909 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1911 } catch (std::exception& e) {
1913 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1915 } catch (Dali::DaliException e) {
1917 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1921 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1929 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Disconnect(void * jarg1, void * jarg2) {
1930 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1931 void (*arg2)(Dali::Application &) = (void (*)(Dali::Application &)) 0 ;
1933 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1934 arg2 = (void (*)(Dali::Application &))jarg2;
1937 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Disconnect(arg1,arg2);
1938 } catch (std::out_of_range& e) {
1940 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1942 } catch (std::exception& e) {
1944 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1946 } catch (Dali::DaliException e) {
1948 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1952 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1960 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Emit(void * jarg1, void * jarg2) {
1961 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1962 Dali::Application *arg2 = 0 ;
1964 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1965 arg2 = (Dali::Application *)jarg2;
1967 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
1972 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Emit(arg1,*arg2);
1973 } catch (std::out_of_range& e) {
1975 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1977 } catch (std::exception& e) {
1979 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1981 } catch (Dali::DaliException e) {
1983 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1987 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1995 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationSignal() {
1997 Dali::Signal< void (Dali::Application &) > *result = 0 ;
2001 result = (Dali::Signal< void (Dali::Application &) > *)new Dali::Signal< void (Dali::Application &) >();
2002 } catch (std::out_of_range& e) {
2004 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2006 } catch (std::exception& e) {
2008 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2010 } catch (Dali::DaliException e) {
2012 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2016 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2021 jresult = (void *)result;
2026 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationSignal(void * jarg1) {
2027 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
2029 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
2033 } catch (std::out_of_range& e) {
2035 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2037 } catch (std::exception& e) {
2039 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2041 } catch (Dali::DaliException e) {
2043 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2047 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2055 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Empty(void * jarg1) {
2056 unsigned int jresult ;
2057 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2060 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2063 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Empty((Dali::Signal< void (Dali::Application &,void *) > const *)arg1);
2064 } catch (std::out_of_range& e) {
2066 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2068 } catch (std::exception& e) {
2070 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2072 } catch (Dali::DaliException e) {
2074 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2078 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2088 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_GetConnectionCount(void * jarg1) {
2089 unsigned long jresult ;
2090 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2093 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2096 result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &,void *) > const *)arg1);
2097 } catch (std::out_of_range& e) {
2099 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2101 } catch (std::exception& e) {
2103 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2105 } catch (Dali::DaliException e) {
2107 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2111 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2116 jresult = (unsigned long)result;
2121 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Connect(void * jarg1, void * jarg2) {
2122 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2123 void (*arg2)(Dali::Application &,void *) = (void (*)(Dali::Application &,void *)) 0 ;
2125 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2126 arg2 = (void (*)(Dali::Application &,void *))jarg2;
2129 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Connect(arg1,arg2);
2130 } catch (std::out_of_range& e) {
2132 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2134 } catch (std::exception& e) {
2136 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2138 } catch (Dali::DaliException e) {
2140 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2144 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2152 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Disconnect(void * jarg1, void * jarg2) {
2153 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2154 void (*arg2)(Dali::Application &,void *) = (void (*)(Dali::Application &,void *)) 0 ;
2156 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2157 arg2 = (void (*)(Dali::Application &,void *))jarg2;
2160 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Disconnect(arg1,arg2);
2161 } catch (std::out_of_range& e) {
2163 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2165 } catch (std::exception& e) {
2167 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2169 } catch (Dali::DaliException e) {
2171 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2175 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2183 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Emit(void * jarg1, void * jarg2, void * jarg3) {
2184 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2185 Dali::Application *arg2 = 0 ;
2186 void *arg3 = (void *) 0 ;
2188 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2189 arg2 = (Dali::Application *)jarg2;
2191 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
2197 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Emit(arg1,*arg2,arg3);
2198 } catch (std::out_of_range& e) {
2200 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2202 } catch (std::exception& e) {
2204 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2206 } catch (Dali::DaliException e) {
2208 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2212 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2220 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationControlSignal() {
2222 Dali::Signal< void (Dali::Application &,void *) > *result = 0 ;
2226 result = (Dali::Signal< void (Dali::Application &,void *) > *)new Dali::Signal< void (Dali::Application &,void *) >();
2227 } catch (std::out_of_range& e) {
2229 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2231 } catch (std::exception& e) {
2233 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2235 } catch (Dali::DaliException e) {
2237 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2241 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2246 jresult = (void *)result;
2251 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationControlSignal(void * jarg1) {
2252 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
2254 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
2258 } catch (std::out_of_range& e) {
2260 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2262 } catch (std::exception& e) {
2264 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2266 } catch (Dali::DaliException e) {
2268 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2272 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2280 /*application-devel binding*/
2282 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_4(int jarg1, char * jarg3, int jarg4, void * jarg5) {
2284 int *arg1 = (int *) 0 ;
2286 std::string *arg3 = 0 ;
2287 Dali::Application::WINDOW_MODE arg4 ;
2288 Dali::PositionSize arg5 ;
2289 Dali::PositionSize *argp5 ;
2290 Dali::Application result;
2293 // Todo generate argv data from the C# args
2294 char **array; // two dimensional array
2295 int numStrings = 1; // number of strings
2296 int stringLength = 30; // max string length.
2297 array = (char **)malloc( (numStrings + 1 )* sizeof(char *) );
2299 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "array is null", 0);
2304 // allocate the string data
2305 for( int i=0; i < numStrings; i++)
2307 array[i]=(char *)malloc( stringLength * sizeof(char) );
2309 array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part
2311 std::string temp = "dali-csharp-app";
2314 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "array[0] is null", 0);
2317 array[0][temp.copy(array[0], strlen(array[0])-1)] = '\0';
2323 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
2326 std::string arg3_str(jarg3);
2328 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
2329 argp5 = (Dali::PositionSize *)jarg5;
2331 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
2337 result = Dali::Application::New(arg1,arg2,(std::string const &)*arg3,arg4,arg5);
2338 } catch (std::out_of_range& e) {
2340 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2342 } catch (std::exception& e) {
2344 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2346 } catch (Dali::DaliException e) {
2348 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2352 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2357 jresult = new Dali::Application((const Dali::Application &)result);
2363 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New_WithWindowSizePosition(int jarg1, char * jarg2, char * jarg3, int jarg4, void * jarg5) {
2365 int *arg1 = (int *) 0 ;
2367 std::string *arg3 = 0 ;
2368 Dali::Application::WINDOW_MODE arg4 ;
2369 Dali::PositionSize arg5 ;
2370 Dali::PositionSize *argp5 ;
2371 Dali::Application result;
2375 char *retPtr = NULL;
2378 argV = new char*[jarg1 + 1];
2380 for(retPtr = strtok_r(jarg2, " ", &nextPtr);
2381 retPtr != NULL && index < jarg1;
2382 retPtr = strtok_r(NULL, " ", &nextPtr))
2385 length = strlen(retPtr);
2386 argV[ index ] = new char[ length + 1 ];
2387 strncpy( argV[ index ], retPtr, length );
2388 argV[ index ][ length ] = '\0';
2392 while( index < jarg1 )
2394 //if jarg1 - index >1, maybe cause error.
2406 std::string arg3_str(jarg3);
2408 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
2409 argp5 = (Dali::PositionSize *)jarg5;
2411 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
2417 result = Dali::Application::New(arg1,arg2,(std::string const &)*arg3,arg4,arg5);
2418 } catch (std::out_of_range& e) {
2420 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2422 } catch (std::exception& e) {
2424 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2426 } catch (Dali::DaliException e) {
2428 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2432 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2436 jresult = new Dali::Application((const Dali::Application &)result);