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
22 #include <dali/public-api/adaptor-framework/application.h>
23 #include <dali/devel-api/adaptor-framework/application-devel.h>
25 /* Callback for returning strings to C# without leaking memory */
26 typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
27 static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL;
30 // keep argcs and argv so they're always available to DALi
34 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Empty(Dali::Signal< void (Dali::Application &) > const *self){
37 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Application &) > const *self){
38 return self->GetConnectionCount();
40 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Connect(Dali::Signal< void (Dali::Application &) > *self,void (*func)(Dali::Application &)){
41 self->Connect( func );
43 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Disconnect(Dali::Signal< void (Dali::Application &) > *self,void (*func)(Dali::Application &)){
44 self->Disconnect( func );
46 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Emit(Dali::Signal< void (Dali::Application &) > *self,Dali::Application &arg){
50 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Empty(Dali::Signal< void (Dali::Application &,void *) > const *self){
53 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){
54 return self->GetConnectionCount();
56 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 *)){
57 self->Connect( func );
59 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 *)){
60 self->Disconnect( func );
62 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){
63 self->Emit( arg1, arg2 );
70 /*Application binding*/
71 SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Application_SWIGUpcast(Dali::Application *jarg1) {
72 return (Dali::BaseHandle *)jarg1;
75 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_0() {
77 Dali::Application result;
81 result = Dali::Application::New();
82 } catch (std::out_of_range& e) {
84 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
86 } catch (std::exception& e) {
88 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
92 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
96 jresult = new Dali::Application((const Dali::Application &)result);
101 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_1(int jarg1) {
103 int *arg1 = (int *) 0 ;
105 Dali::Application result;
108 // Todo generate argv data from the C# args
109 char **array; // two dimensional array
110 int numStrings = 1; // number of strings
111 int stringLength = 30; // max string length.
112 array = (char **)malloc( (numStrings + 1 )* sizeof(char *) );
115 // allocate the string data
116 for( int i=0; i < numStrings; i++)
118 array[i]=(char *)malloc( stringLength * sizeof(char *) );
120 array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part
122 strcpy( array[0], "dali-csharp-app");
129 result = Dali::Application::New(arg1,arg2);
130 } catch (std::out_of_range& e) {
132 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
134 } catch (std::exception& e) {
136 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
140 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
144 jresult = new Dali::Application((const Dali::Application &)result);
149 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_2(int jarg1, char * jarg3) {
151 int *arg1 = (int *) 0 ;
153 std::string *arg3 = 0 ;
154 Dali::Application result;
157 // Todo generate argv data from the C# args
158 char **array; // two dimensional array
159 int numStrings = 1; // number of strings
160 int stringLength = 30; // max string length.
161 array = (char **)malloc( (numStrings + 1 )* sizeof(char *) );
164 // allocate the string data
165 for( int i=0; i < numStrings; i++)
167 array[i]=(char *)malloc( stringLength * sizeof(char *) );
169 array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part
171 strcpy( array[0], "dali-csharp-app");
177 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
180 std::string arg3_str(jarg3);
184 result = Dali::Application::New(arg1,arg2,(std::string const &)*arg3);
185 } catch (std::out_of_range& e) {
187 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
189 } catch (std::exception& e) {
191 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
195 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
199 jresult = new Dali::Application((const Dali::Application &)result);
201 //argout typemap for const std::string&
207 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_3(int jarg1, char * jarg3, int jarg4) {
209 int *arg1 = (int *) 0 ;
211 std::string *arg3 = 0 ;
212 Dali::Application::WINDOW_MODE arg4 ;
213 Dali::Application result;
216 // Todo generate argv data from the C# args
217 char **array; // two dimensional array
218 int numStrings = 1; // number of strings
219 int stringLength = 30; // max string length.
220 array = (char **)malloc( (numStrings + 1 )* sizeof(char *) );
223 // allocate the string data
224 for( int i=0; i < numStrings; i++)
226 array[i]=(char *)malloc( stringLength * sizeof(char *) );
228 array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part
230 strcpy( array[0], "dali-csharp-app");
236 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
239 std::string arg3_str(jarg3);
241 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
244 result = Dali::Application::New(arg1,arg2,(std::string const &)*arg3,arg4);
245 } catch (std::out_of_range& e) {
247 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
249 } catch (std::exception& e) {
251 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
255 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
259 jresult = new Dali::Application((const Dali::Application &)result);
261 //argout typemap for const std::string&
267 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Application__SWIG_0() {
269 Dali::Application *result = 0 ;
273 result = (Dali::Application *)new Dali::Application();
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;
284 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
288 jresult = (void *)result;
293 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Application__SWIG_1(void * jarg1) {
295 Dali::Application *arg1 = 0 ;
296 Dali::Application *result = 0 ;
298 arg1 = (Dali::Application *)jarg1;
300 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application const & type is null", 0);
305 result = (Dali::Application *)new Dali::Application((Dali::Application const &)*arg1);
306 } catch (std::out_of_range& e) {
308 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
310 } catch (std::exception& e) {
312 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
316 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
320 jresult = (void *)result;
325 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_Assign(void * jarg1, void * jarg2) {
327 Dali::Application *arg1 = (Dali::Application *) 0 ;
328 Dali::Application *arg2 = 0 ;
329 Dali::Application *result = 0 ;
331 arg1 = (Dali::Application *)jarg1;
332 arg2 = (Dali::Application *)jarg2;
334 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application const & type is null", 0);
339 result = (Dali::Application *) &(arg1)->operator =((Dali::Application const &)*arg2);
340 } catch (std::out_of_range& e) {
342 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
344 } catch (std::exception& e) {
346 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
350 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
354 jresult = (void *)result;
359 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Application(void * jarg1) {
360 Dali::Application *arg1 = (Dali::Application *) 0 ;
362 arg1 = (Dali::Application *)jarg1;
366 } catch (std::out_of_range& e) {
368 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
370 } catch (std::exception& e) {
372 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
376 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
383 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_MainLoop__SWIG_0(void * jarg1) {
384 Dali::Application *arg1 = (Dali::Application *) 0 ;
386 arg1 = (Dali::Application *)jarg1;
390 } catch (std::out_of_range& e) {
392 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
394 } catch (std::exception& e) {
396 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
400 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
407 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_MainLoop__SWIG_1(void * jarg1, void * jarg2) {
408 Dali::Application *arg1 = (Dali::Application *) 0 ;
409 Dali::Configuration::ContextLoss arg2 ;
410 Dali::Configuration::ContextLoss *argp2 ;
412 arg1 = (Dali::Application *)jarg1;
413 argp2 = (Dali::Configuration::ContextLoss *)jarg2;
415 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Configuration::ContextLoss", 0);
421 (arg1)->MainLoop(arg2);
422 } catch (std::out_of_range& e) {
424 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
426 } catch (std::exception& e) {
428 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
432 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
439 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_Lower(void * jarg1) {
440 Dali::Application *arg1 = (Dali::Application *) 0 ;
442 arg1 = (Dali::Application *)jarg1;
446 } catch (std::out_of_range& e) {
448 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
450 } catch (std::exception& e) {
452 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
456 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
463 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_Quit(void * jarg1) {
464 Dali::Application *arg1 = (Dali::Application *) 0 ;
466 arg1 = (Dali::Application *)jarg1;
470 } catch (std::out_of_range& e) {
472 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
474 } catch (std::exception& e) {
476 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
480 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
487 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_AddIdle(void * jarg1, void * jarg2) {
488 unsigned int jresult ;
489 Dali::Application *arg1 = (Dali::Application *) 0 ;
490 Dali::CallbackBase *arg2 = (Dali::CallbackBase *) 0 ;
493 arg1 = (Dali::Application *)jarg1;
494 arg2 = (Dali::CallbackBase *)jarg2;
497 result = (bool)(arg1)->AddIdle(arg2);
498 } catch (std::out_of_range& e) {
500 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
502 } catch (std::exception& e) {
504 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
508 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
517 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_GetWindow(void * jarg1) {
519 Dali::Application *arg1 = (Dali::Application *) 0 ;
522 arg1 = (Dali::Application *)jarg1;
525 result = (arg1)->GetWindow();
526 } catch (std::out_of_range& e) {
528 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
530 } catch (std::exception& e) {
532 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
536 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
540 jresult = new Dali::Window((const Dali::Window &)result);
545 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_ReplaceWindow(void * jarg1, void * jarg2, char * jarg3) {
546 Dali::Application *arg1 = (Dali::Application *) 0 ;
547 Dali::PositionSize arg2 ;
548 std::string *arg3 = 0 ;
549 Dali::PositionSize *argp2 ;
551 arg1 = (Dali::Application *)jarg1;
552 argp2 = (Dali::PositionSize *)jarg2;
554 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
559 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
562 std::string arg3_str(jarg3);
566 (arg1)->ReplaceWindow(arg2,(std::string const &)*arg3);
567 } catch (std::out_of_range& e) {
569 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
571 } catch (std::exception& e) {
573 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
577 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
582 //argout typemap for const std::string&
587 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Application_GetResourcePath() {
593 result = Dali::Application::GetResourcePath();
594 } catch (std::out_of_range& e) {
596 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
598 } catch (std::exception& e) {
600 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
604 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
608 jresult = SWIG_csharp_string_callback((&result)->c_str());
613 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetViewMode(void * jarg1, int jarg2) {
614 Dali::Application *arg1 = (Dali::Application *) 0 ;
615 Dali::ViewMode arg2 ;
617 arg1 = (Dali::Application *)jarg1;
618 arg2 = (Dali::ViewMode)jarg2;
621 (arg1)->SetViewMode(arg2);
622 } catch (std::out_of_range& e) {
624 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
626 } catch (std::exception& e) {
628 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
632 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
639 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Application_GetViewMode(void * jarg1) {
641 Dali::Application *arg1 = (Dali::Application *) 0 ;
642 Dali::ViewMode result;
644 arg1 = (Dali::Application *)jarg1;
647 result = (Dali::ViewMode)((Dali::Application const *)arg1)->GetViewMode();
648 } catch (std::out_of_range& e) {
650 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
652 } catch (std::exception& e) {
654 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
658 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
662 jresult = (int)result;
667 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_SetStereoBase(void * jarg1, float jarg2) {
668 Dali::Application *arg1 = (Dali::Application *) 0 ;
671 arg1 = (Dali::Application *)jarg1;
675 (arg1)->SetStereoBase(arg2);
676 } catch (std::out_of_range& e) {
678 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
680 } catch (std::exception& e) {
682 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
686 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
693 SWIGEXPORT float SWIGSTDCALL CSharp_Dali_Application_GetStereoBase(void * jarg1) {
695 Dali::Application *arg1 = (Dali::Application *) 0 ;
698 arg1 = (Dali::Application *)jarg1;
701 result = (float)((Dali::Application const *)arg1)->GetStereoBase();
702 } catch (std::out_of_range& e) {
704 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
706 } catch (std::exception& e) {
708 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
712 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
721 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_InitSignal(void * jarg1) {
723 Dali::Application *arg1 = (Dali::Application *) 0 ;
724 Dali::Application::AppSignalType *result = 0 ;
726 arg1 = (Dali::Application *)jarg1;
729 result = (Dali::Application::AppSignalType *) &(arg1)->InitSignal();
730 } catch (std::out_of_range& e) {
732 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
734 } catch (std::exception& e) {
736 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
740 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
744 jresult = (void *)result;
749 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_TerminateSignal(void * jarg1) {
751 Dali::Application *arg1 = (Dali::Application *) 0 ;
752 Dali::Application::AppSignalType *result = 0 ;
754 arg1 = (Dali::Application *)jarg1;
757 result = (Dali::Application::AppSignalType *) &(arg1)->TerminateSignal();
758 } catch (std::out_of_range& e) {
760 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
762 } catch (std::exception& e) {
764 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
768 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
772 jresult = (void *)result;
777 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_PauseSignal(void * jarg1) {
779 Dali::Application *arg1 = (Dali::Application *) 0 ;
780 Dali::Application::AppSignalType *result = 0 ;
782 arg1 = (Dali::Application *)jarg1;
785 result = (Dali::Application::AppSignalType *) &(arg1)->PauseSignal();
786 } catch (std::out_of_range& e) {
788 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
790 } catch (std::exception& e) {
792 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
796 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
800 jresult = (void *)result;
805 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResumeSignal(void * jarg1) {
807 Dali::Application *arg1 = (Dali::Application *) 0 ;
808 Dali::Application::AppSignalType *result = 0 ;
810 arg1 = (Dali::Application *)jarg1;
813 result = (Dali::Application::AppSignalType *) &(arg1)->ResumeSignal();
814 } catch (std::out_of_range& e) {
816 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
818 } catch (std::exception& e) {
820 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
824 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
828 jresult = (void *)result;
833 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResetSignal(void * jarg1) {
835 Dali::Application *arg1 = (Dali::Application *) 0 ;
836 Dali::Application::AppSignalType *result = 0 ;
838 arg1 = (Dali::Application *)jarg1;
841 result = (Dali::Application::AppSignalType *) &(arg1)->ResetSignal();
842 } catch (std::out_of_range& e) {
844 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
846 } catch (std::exception& e) {
848 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
852 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
856 jresult = (void *)result;
861 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_ResizeSignal(void * jarg1) {
863 Dali::Application *arg1 = (Dali::Application *) 0 ;
864 Dali::Application::AppSignalType *result = 0 ;
866 arg1 = (Dali::Application *)jarg1;
869 result = (Dali::Application::AppSignalType *) &(arg1)->ResizeSignal();
870 } catch (std::out_of_range& e) {
872 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
874 } catch (std::exception& e) {
876 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
880 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
884 jresult = (void *)result;
889 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_AppControlSignal(void * jarg1) {
891 Dali::Application *arg1 = (Dali::Application *) 0 ;
892 Dali::Application::AppControlSignalType *result = 0 ;
894 arg1 = (Dali::Application *)jarg1;
897 result = (Dali::Application::AppControlSignalType *) &(arg1)->AppControlSignal();
898 } catch (std::out_of_range& e) {
900 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
902 } catch (std::exception& e) {
904 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
908 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
912 jresult = (void *)result;
917 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_LanguageChangedSignal(void * jarg1) {
919 Dali::Application *arg1 = (Dali::Application *) 0 ;
920 Dali::Application::AppSignalType *result = 0 ;
922 arg1 = (Dali::Application *)jarg1;
925 result = (Dali::Application::AppSignalType *) &(arg1)->LanguageChangedSignal();
926 } catch (std::out_of_range& e) {
928 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
930 } catch (std::exception& e) {
932 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
936 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
940 jresult = (void *)result;
945 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_RegionChangedSignal(void * jarg1) {
947 Dali::Application *arg1 = (Dali::Application *) 0 ;
948 Dali::Application::AppSignalType *result = 0 ;
950 arg1 = (Dali::Application *)jarg1;
953 result = (Dali::Application::AppSignalType *) &(arg1)->RegionChangedSignal();
954 } catch (std::out_of_range& e) {
956 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
958 } catch (std::exception& e) {
960 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
964 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
968 jresult = (void *)result;
973 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_BatteryLowSignal(void * jarg1) {
975 Dali::Application *arg1 = (Dali::Application *) 0 ;
976 Dali::Application::AppSignalType *result = 0 ;
978 arg1 = (Dali::Application *)jarg1;
981 result = (Dali::Application::AppSignalType *) &(arg1)->BatteryLowSignal();
982 } catch (std::out_of_range& e) {
984 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
986 } catch (std::exception& e) {
988 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
992 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
996 jresult = (void *)result;
1001 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_MemoryLowSignal(void * jarg1) {
1003 Dali::Application *arg1 = (Dali::Application *) 0 ;
1004 Dali::Application::AppSignalType *result = 0 ;
1006 arg1 = (Dali::Application *)jarg1;
1009 result = (Dali::Application::AppSignalType *) &(arg1)->MemoryLowSignal();
1010 } catch (std::out_of_range& e) {
1012 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1014 } catch (std::exception& e) {
1016 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1020 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1024 jresult = (void *)result;
1029 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ApplicationSignal_Empty(void * jarg1) {
1030 unsigned int jresult ;
1031 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1034 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1037 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Empty((Dali::Signal< void (Dali::Application &) > const *)arg1);
1038 } catch (std::out_of_range& e) {
1040 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1042 } catch (std::exception& e) {
1044 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1048 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1057 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ApplicationSignal_GetConnectionCount(void * jarg1) {
1058 unsigned long jresult ;
1059 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1062 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1065 result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &) > const *)arg1);
1066 } catch (std::out_of_range& e) {
1068 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1070 } catch (std::exception& e) {
1072 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1076 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1080 jresult = (unsigned long)result;
1085 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Connect(void * jarg1, void * jarg2) {
1086 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1087 void (*arg2)(Dali::Application &) = (void (*)(Dali::Application &)) 0 ;
1089 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1090 arg2 = (void (*)(Dali::Application &))jarg2;
1093 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Connect(arg1,arg2);
1094 } catch (std::out_of_range& e) {
1096 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1098 } catch (std::exception& e) {
1100 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1104 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1111 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Disconnect(void * jarg1, void * jarg2) {
1112 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1113 void (*arg2)(Dali::Application &) = (void (*)(Dali::Application &)) 0 ;
1115 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1116 arg2 = (void (*)(Dali::Application &))jarg2;
1119 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Disconnect(arg1,arg2);
1120 } catch (std::out_of_range& e) {
1122 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1124 } catch (std::exception& e) {
1126 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1130 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1137 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationSignal_Emit(void * jarg1, void * jarg2) {
1138 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1139 Dali::Application *arg2 = 0 ;
1141 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1142 arg2 = (Dali::Application *)jarg2;
1144 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
1149 Dali_Signal_Sl_void_Sp_Dali_Application_SA__SP__Sg__Emit(arg1,*arg2);
1150 } catch (std::out_of_range& e) {
1152 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1154 } catch (std::exception& e) {
1156 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1160 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1167 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationSignal() {
1169 Dali::Signal< void (Dali::Application &) > *result = 0 ;
1173 result = (Dali::Signal< void (Dali::Application &) > *)new Dali::Signal< void (Dali::Application &) >();
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;
1184 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1188 jresult = (void *)result;
1193 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationSignal(void * jarg1) {
1194 Dali::Signal< void (Dali::Application &) > *arg1 = (Dali::Signal< void (Dali::Application &) > *) 0 ;
1196 arg1 = (Dali::Signal< void (Dali::Application &) > *)jarg1;
1200 } catch (std::out_of_range& e) {
1202 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1204 } catch (std::exception& e) {
1206 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1210 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1217 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Empty(void * jarg1) {
1218 unsigned int jresult ;
1219 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
1222 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
1225 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Empty((Dali::Signal< void (Dali::Application &,void *) > const *)arg1);
1226 } catch (std::out_of_range& e) {
1228 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1230 } catch (std::exception& e) {
1232 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1236 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1245 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_GetConnectionCount(void * jarg1) {
1246 unsigned long jresult ;
1247 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
1250 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
1253 result = Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Application &,void *) > const *)arg1);
1254 } catch (std::out_of_range& e) {
1256 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1258 } catch (std::exception& e) {
1260 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1264 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1268 jresult = (unsigned long)result;
1273 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Connect(void * jarg1, void * jarg2) {
1274 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
1275 void (*arg2)(Dali::Application &,void *) = (void (*)(Dali::Application &,void *)) 0 ;
1277 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
1278 arg2 = (void (*)(Dali::Application &,void *))jarg2;
1281 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Connect(arg1,arg2);
1282 } catch (std::out_of_range& e) {
1284 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1286 } catch (std::exception& e) {
1288 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1292 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1299 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Disconnect(void * jarg1, void * jarg2) {
1300 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
1301 void (*arg2)(Dali::Application &,void *) = (void (*)(Dali::Application &,void *)) 0 ;
1303 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
1304 arg2 = (void (*)(Dali::Application &,void *))jarg2;
1307 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Disconnect(arg1,arg2);
1308 } catch (std::out_of_range& e) {
1310 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1312 } catch (std::exception& e) {
1314 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1318 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1325 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationControlSignal_Emit(void * jarg1, void * jarg2, void * jarg3) {
1326 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
1327 Dali::Application *arg2 = 0 ;
1328 void *arg3 = (void *) 0 ;
1330 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
1331 arg2 = (Dali::Application *)jarg2;
1333 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Application & type is null", 0);
1339 Dali_Signal_Sl_void_Sp_Dali_Application_SA__Sc_void_Sm__SP__Sg__Emit(arg1,*arg2,arg3);
1340 } catch (std::out_of_range& e) {
1342 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1344 } catch (std::exception& e) {
1346 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1350 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1357 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationControlSignal() {
1359 Dali::Signal< void (Dali::Application &,void *) > *result = 0 ;
1363 result = (Dali::Signal< void (Dali::Application &,void *) > *)new Dali::Signal< void (Dali::Application &,void *) >();
1364 } catch (std::out_of_range& e) {
1366 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1368 } catch (std::exception& e) {
1370 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1374 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1378 jresult = (void *)result;
1383 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationControlSignal(void * jarg1) {
1384 Dali::Signal< void (Dali::Application &,void *) > *arg1 = (Dali::Signal< void (Dali::Application &,void *) > *) 0 ;
1386 arg1 = (Dali::Signal< void (Dali::Application &,void *) > *)jarg1;
1390 } catch (std::out_of_range& e) {
1392 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1394 } catch (std::exception& e) {
1396 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1400 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1407 /*application-devel binding*/
1409 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_4(int jarg1, char * jarg3, int jarg4, void * jarg5) {
1411 int *arg1 = (int *) 0 ;
1413 std::string *arg3 = 0 ;
1414 Dali::Application::WINDOW_MODE arg4 ;
1415 Dali::PositionSize arg5 ;
1416 Dali::PositionSize *argp5 ;
1417 Dali::Application result;
1420 // Todo generate argv data from the C# args
1421 char **array; // two dimensional array
1422 int numStrings = 1; // number of strings
1423 int stringLength = 30; // max string length.
1424 array = (char **)malloc( (numStrings + 1 )* sizeof(char *) );
1427 // allocate the string data
1428 for( int i=0; i < numStrings; i++)
1430 array[i]=(char *)malloc( stringLength * sizeof(char *) );
1432 array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part
1434 strcpy( array[0], "dali-csharp-app");
1440 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
1443 std::string arg3_str(jarg3);
1445 arg4 = (Dali::Application::WINDOW_MODE)jarg4;
1446 argp5 = (Dali::PositionSize *)jarg5;
1448 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
1454 result = Dali::DevelApplication::New(arg1,arg2,(std::string const &)*arg3,arg4,arg5);
1455 } catch (std::out_of_range& e) {
1457 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1459 } catch (std::exception& e) {
1461 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1465 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1469 jresult = new Dali::Application((const Dali::Application &)result);