Support legacy way to create InputMethodContext
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / widget_view.cpp
1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
2 *
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
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
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.
14 *
15 */
16
17 #ifndef CSHARP_WIDGET_VIEW
18 #define CSHARP_WIDGET_VIEW
19 #endif
20
21 #include "common.h"
22
23 #include <widget_viewer_dali/public_api/widget_view/widget_view.h>
24
25 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Empty(Dali::Signal< void (Dali::WidgetView::WidgetView) > const *self){
26   return self->Empty();
27 }
28 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::WidgetView::WidgetView) > const *self){
29   return self->GetConnectionCount();
30 }
31 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Connect(Dali::Signal< void (Dali::WidgetView::WidgetView) > *self,void (*func)(Dali::WidgetView::WidgetView)){
32     self->Connect( func );
33 }
34 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Disconnect(Dali::Signal< void (Dali::WidgetView::WidgetView) > *self,void (*func)(Dali::WidgetView::WidgetView)){
35   self->Disconnect( func );
36 }
37 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Emit(Dali::Signal< void (Dali::WidgetView::WidgetView) > *self,Dali::WidgetView::WidgetView arg){
38   self->Emit( arg );
39 }
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_WidgetView_SWIGUpcast(Dali::WidgetView::WidgetView *jarg1) {
46     return (Dali::Toolkit::Control *)jarg1;
47 }
48
49 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_WIDGET_ID_get() {
50   int jresult ;
51   int result;
52
53   result = (int)Dali::WidgetView::WidgetView::Property::WIDGET_ID;
54   jresult = (int)result;
55   return jresult;
56 }
57
58
59 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_INSTANCE_ID_get() {
60   int jresult ;
61   int result;
62
63   result = (int)Dali::WidgetView::WidgetView::Property::INSTANCE_ID;
64   jresult = (int)result;
65   return jresult;
66 }
67
68
69 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_CONTENT_INFO_get() {
70   int jresult ;
71   int result;
72
73   result = (int)Dali::WidgetView::WidgetView::Property::CONTENT_INFO;
74   jresult = (int)result;
75   return jresult;
76 }
77
78
79 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_TITLE_get() {
80   int jresult ;
81   int result;
82
83   result = (int)Dali::WidgetView::WidgetView::Property::TITLE;
84   jresult = (int)result;
85   return jresult;
86 }
87
88
89 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_UPDATE_PERIOD_get() {
90   int jresult ;
91   int result;
92
93   result = (int)Dali::WidgetView::WidgetView::Property::UPDATE_PERIOD;
94   jresult = (int)result;
95   return jresult;
96 }
97
98
99 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_PREVIEW_get() {
100   int jresult ;
101   int result;
102
103   result = (int)Dali::WidgetView::WidgetView::Property::PREVIEW;
104   jresult = (int)result;
105   return jresult;
106 }
107
108
109 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_LOADING_TEXT_get() {
110   int jresult ;
111   int result;
112
113   result = (int)Dali::WidgetView::WidgetView::Property::LOADING_TEXT;
114   jresult = (int)result;
115   return jresult;
116 }
117
118
119 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_WIDGET_STATE_FAULTED_get() {
120   int jresult ;
121   int result;
122
123   result = (int)Dali::WidgetView::WidgetView::Property::WIDGET_STATE_FAULTED;
124   jresult = (int)result;
125   return jresult;
126 }
127
128
129 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_PERMANENT_DELETE_get() {
130   int jresult ;
131   int result;
132
133   result = (int)Dali::WidgetView::WidgetView::Property::PERMANENT_DELETE;
134   jresult = (int)result;
135   return jresult;
136 }
137
138 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_RETRY_TEXT_get() {
139   int jresult ;
140   int result;
141
142   result = (int)Dali::WidgetView::WidgetView::Property::RETRY_TEXT;
143   jresult = (int)result;
144   return jresult;
145 }
146
147 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_EFFECT_get() {
148   int jresult ;
149   int result;
150
151   result = (int)Dali::WidgetView::WidgetView::Property::EFFECT;
152   jresult = (int)result;
153   return jresult;
154 }
155
156
157 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetView_Property() {
158   void * jresult ;
159   Dali::WidgetView::WidgetView::Property *result = 0 ;
160
161   {
162     try {
163       result = (Dali::WidgetView::WidgetView::Property *)new Dali::WidgetView::WidgetView::Property();
164     } catch (std::out_of_range& e) {
165       {
166         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
167       };
168     } catch (std::exception& e) {
169       {
170         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
171       };
172     } catch (Dali::DaliException e) {
173       {
174         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
175       };
176     } catch (...) {
177       {
178         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
179       };
180     }
181   }
182
183   jresult = (void *)result;
184   return jresult;
185 }
186
187
188 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetView_Property(void * jarg1) {
189   Dali::WidgetView::WidgetView::Property *arg1 = (Dali::WidgetView::WidgetView::Property *) 0 ;
190
191   arg1 = (Dali::WidgetView::WidgetView::Property *)jarg1;
192   {
193     try {
194       delete arg1;
195     } catch (std::out_of_range& e) {
196       {
197         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
198       };
199     } catch (std::exception& e) {
200       {
201         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
202       };
203     } catch (Dali::DaliException e) {
204       {
205         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
206       };
207     } catch (...) {
208       {
209         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
210       };
211     }
212   }
213
214 }
215
216
217 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_New(char * jarg1, char * jarg2, int jarg3, int jarg4, float jarg5) {
218   void * jresult ;
219   std::string *arg1 = 0 ;
220   std::string *arg2 = 0 ;
221   int arg3 ;
222   int arg4 ;
223   float arg5 ;
224   Dali::WidgetView::WidgetView result;
225
226   if (!jarg1) {
227     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
228     return 0;
229   }
230   std::string arg1_str(jarg1);
231   arg1 = &arg1_str;
232   if (!jarg2) {
233     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
234     return 0;
235   }
236   std::string arg2_str(jarg2);
237   arg2 = &arg2_str;
238   arg3 = (int)jarg3;
239   arg4 = (int)jarg4;
240   arg5 = (float)jarg5;
241   {
242     try {
243       result = Dali::WidgetView::WidgetView::New((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5);
244     } catch (std::out_of_range& e) {
245       {
246         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
247       };
248     } catch (std::exception& e) {
249       {
250         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
251       };
252     } catch (Dali::DaliException e) {
253       {
254         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
255       };
256     } catch (...) {
257       {
258         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
259       };
260     }
261   }
262
263   jresult = new Dali::WidgetView::WidgetView((const Dali::WidgetView::WidgetView &)result);
264
265   //argout typemap for const std::string&
266
267
268   //argout typemap for const std::string&
269
270   return jresult;
271 }
272
273
274 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_DownCast(void * jarg1) {
275   void * jresult ;
276   Dali::BaseHandle arg1 ;
277   Dali::BaseHandle *argp1 ;
278   Dali::WidgetView::WidgetView result;
279
280   argp1 = (Dali::BaseHandle *)jarg1;
281   if (!argp1) {
282     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
283     return 0;
284   }
285   arg1 = *argp1;
286   {
287     try {
288       result = Dali::WidgetView::WidgetView::DownCast(arg1);
289     } catch (std::out_of_range& e) {
290       {
291         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
292       };
293     } catch (std::exception& e) {
294       {
295         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
296       };
297     } catch (Dali::DaliException e) {
298       {
299         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
300       };
301     } catch (...) {
302       {
303         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
304       };
305     }
306   }
307
308   jresult = new Dali::WidgetView::WidgetView((const Dali::WidgetView::WidgetView &)result);
309   return jresult;
310 }
311
312
313 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetView__SWIG_0() {
314   void * jresult ;
315   Dali::WidgetView::WidgetView *result = 0 ;
316
317   {
318     try {
319       result = (Dali::WidgetView::WidgetView *)new Dali::WidgetView::WidgetView();
320     } catch (std::out_of_range& e) {
321       {
322         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
323       };
324     } catch (std::exception& e) {
325       {
326         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
327       };
328     } catch (Dali::DaliException e) {
329       {
330         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
331       };
332     } catch (...) {
333       {
334         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
335       };
336     }
337   }
338
339   jresult = (void *)result;
340   return jresult;
341 }
342
343
344 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetView__SWIG_1(void * jarg1) {
345   void * jresult ;
346   Dali::WidgetView::WidgetView *arg1 = 0 ;
347   Dali::WidgetView::WidgetView *result = 0 ;
348
349   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
350   if (!arg1) {
351     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetView const & type is null", 0);
352     return 0;
353   }
354   {
355     try {
356       result = (Dali::WidgetView::WidgetView *)new Dali::WidgetView::WidgetView((Dali::WidgetView::WidgetView const &)*arg1);
357     } catch (std::out_of_range& e) {
358       {
359         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
360       };
361     } catch (std::exception& e) {
362       {
363         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
364       };
365     } catch (Dali::DaliException e) {
366       {
367         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
368       };
369     } catch (...) {
370       {
371         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
372       };
373     }
374   }
375
376   jresult = (void *)result;
377   return jresult;
378 }
379
380
381 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_Assign(void * jarg1, void * jarg2) {
382   void * jresult ;
383   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
384   Dali::WidgetView::WidgetView *arg2 = 0 ;
385   Dali::WidgetView::WidgetView *result = 0 ;
386
387   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
388   arg2 = (Dali::WidgetView::WidgetView *)jarg2;
389   if (!arg2) {
390     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetView const & type is null", 0);
391     return 0;
392   }
393   {
394     try {
395       result = (Dali::WidgetView::WidgetView *) &(arg1)->operator =((Dali::WidgetView::WidgetView const &)*arg2);
396     } catch (std::out_of_range& e) {
397       {
398         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
399       };
400     } catch (std::exception& e) {
401       {
402         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
403       };
404     } catch (Dali::DaliException e) {
405       {
406         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
407       };
408     } catch (...) {
409       {
410         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
411       };
412     }
413   }
414
415   jresult = (void *)result;
416   return jresult;
417 }
418
419
420 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetView(void * jarg1) {
421   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
422
423   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
424   {
425     try {
426       delete arg1;
427     } catch (std::out_of_range& e) {
428       {
429         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
430       };
431     } catch (std::exception& e) {
432       {
433         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
434       };
435     } catch (Dali::DaliException e) {
436       {
437         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
438       };
439     } catch (...) {
440       {
441         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
442       };
443     }
444   }
445
446 }
447
448
449 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_PauseWidget(void * jarg1) {
450   unsigned int jresult ;
451   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
452   bool result;
453
454   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
455   {
456     try {
457       result = (bool)(arg1)->PauseWidget();
458     } catch (std::out_of_range& e) {
459       {
460         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
461       };
462     } catch (std::exception& e) {
463       {
464         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
465       };
466     } catch (Dali::DaliException e) {
467       {
468         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
469       };
470     } catch (...) {
471       {
472         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
473       };
474     }
475   }
476
477   jresult = result;
478   return jresult;
479 }
480
481
482 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_ResumeWidget(void * jarg1) {
483   unsigned int jresult ;
484   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
485   bool result;
486
487   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
488   {
489     try {
490       result = (bool)(arg1)->ResumeWidget();
491     } catch (std::out_of_range& e) {
492       {
493         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
494       };
495     } catch (std::exception& e) {
496       {
497         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
498       };
499     } catch (Dali::DaliException e) {
500       {
501         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
502       };
503     } catch (...) {
504       {
505         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
506       };
507     }
508   }
509
510   jresult = result;
511   return jresult;
512 }
513
514
515 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_CancelTouchEvent(void * jarg1) {
516   unsigned int jresult ;
517   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
518   bool result;
519
520   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
521   {
522     try {
523       result = (bool)(arg1)->CancelTouchEvent();
524     } catch (std::out_of_range& e) {
525       {
526         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
527       };
528     } catch (std::exception& e) {
529       {
530         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
531       };
532     } catch (Dali::DaliException e) {
533       {
534         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
535       };
536     } catch (...) {
537       {
538         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
539       };
540     }
541   }
542
543   jresult = result;
544   return jresult;
545 }
546
547
548 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetView_ActivateFaultedWidget(void * jarg1) {
549   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
550
551   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
552   {
553     try {
554       (arg1)->ActivateFaultedWidget();
555     } catch (std::out_of_range& e) {
556       {
557         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
558       };
559     } catch (std::exception& e) {
560       {
561         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
562       };
563     } catch (Dali::DaliException e) {
564         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
565     } catch (...) {
566         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
567     }
568   }
569 }
570
571 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_TerminateWidget(void * jarg1) {
572   unsigned int jresult;
573   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
574   bool result;
575
576   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
577   {
578     try {
579       result = (bool)(arg1)->TerminateWidget();
580     } catch (std::out_of_range& e) {
581       {
582         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
583       };
584     } catch (std::exception& e) {
585       {
586         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
587       };
588     } catch (Dali::DaliException e) {
589         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
590     } catch (...) {
591         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
592     }
593   }
594
595   jresult = result;
596   return jresult;
597 }
598
599
600 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetAddedSignal(void * jarg1) {
601   void * jresult ;
602   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
603   Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ;
604
605   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
606   {
607     try {
608       result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetAddedSignal();
609     } catch (std::out_of_range& e) {
610       {
611         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
612       };
613     } catch (std::exception& e) {
614       {
615         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
616       };
617     } catch (Dali::DaliException e) {
618       {
619         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
620       };
621     } catch (...) {
622       {
623         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
624       };
625     }
626   }
627
628   jresult = (void *)result;
629   return jresult;
630 }
631
632
633 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetDeletedSignal(void * jarg1) {
634   void * jresult ;
635   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
636   Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ;
637
638   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
639   {
640     try {
641       result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetDeletedSignal();
642     } catch (std::out_of_range& e) {
643       {
644         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
645       };
646     } catch (std::exception& e) {
647       {
648         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
649       };
650     } catch (Dali::DaliException e) {
651       {
652         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
653       };
654     } catch (...) {
655       {
656         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
657       };
658     }
659   }
660
661   jresult = (void *)result;
662   return jresult;
663 }
664
665
666 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetCreationAbortedSignal(void * jarg1) {
667   void * jresult ;
668   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
669   Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ;
670
671   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
672   {
673     try {
674       result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetCreationAbortedSignal();
675     } catch (std::out_of_range& e) {
676       {
677         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
678       };
679     } catch (std::exception& e) {
680       {
681         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
682       };
683     } catch (Dali::DaliException e) {
684       {
685         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
686       };
687     } catch (...) {
688       {
689         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
690       };
691     }
692   }
693
694   jresult = (void *)result;
695   return jresult;
696 }
697
698
699 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetContentUpdatedSignal(void * jarg1) {
700   void * jresult ;
701   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
702   Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ;
703
704   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
705   {
706     try {
707       result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetContentUpdatedSignal();
708     } catch (std::out_of_range& e) {
709       {
710         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
711       };
712     } catch (std::exception& e) {
713       {
714         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
715       };
716     } catch (Dali::DaliException e) {
717       {
718         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
719       };
720     } catch (...) {
721       {
722         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
723       };
724     }
725   }
726
727   jresult = (void *)result;
728   return jresult;
729 }
730
731
732 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetUpdatePeriodChangedSignal(void * jarg1) {
733   void * jresult ;
734   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
735   Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ;
736
737   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
738   {
739     try {
740       result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetUpdatePeriodChangedSignal();
741     } catch (std::out_of_range& e) {
742       {
743         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
744       };
745     } catch (std::exception& e) {
746       {
747         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
748       };
749     } catch (Dali::DaliException e) {
750       {
751         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
752       };
753     } catch (...) {
754       {
755         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
756       };
757     }
758   }
759
760   jresult = (void *)result;
761   return jresult;
762 }
763
764
765 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetFaultedSignal(void * jarg1) {
766   void * jresult ;
767   Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ;
768   Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ;
769
770   arg1 = (Dali::WidgetView::WidgetView *)jarg1;
771   {
772     try {
773       result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetFaultedSignal();
774     } catch (std::out_of_range& e) {
775       {
776         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
777       };
778     } catch (std::exception& e) {
779       {
780         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
781       };
782     } catch (Dali::DaliException e) {
783       {
784         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
785       };
786     } catch (...) {
787       {
788         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
789       };
790     }
791   }
792
793   jresult = (void *)result;
794   return jresult;
795 }
796
797
798
799 //For widget view signal
800 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Empty(void * jarg1) {
801   unsigned int jresult ;
802   Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ;
803   bool result;
804
805   arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1;
806   {
807     try {
808       result = (bool)Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Empty((Dali::Signal< void (Dali::WidgetView::WidgetView) > const *)arg1);
809     } catch (std::out_of_range& e) {
810       {
811         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
812       };
813     } catch (std::exception& e) {
814       {
815         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
816       };
817     } catch (Dali::DaliException e) {
818       {
819         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
820       };
821     } catch (...) {
822       {
823         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
824       };
825     }
826   }
827
828   jresult = result;
829   return jresult;
830 }
831
832
833 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WidgetViewSignal_GetConnectionCount(void * jarg1) {
834   unsigned long jresult ;
835   Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ;
836   std::size_t result;
837
838   arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1;
839   {
840     try {
841       result = Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::WidgetView::WidgetView) > const *)arg1);
842     } catch (std::out_of_range& e) {
843       {
844         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
845       };
846     } catch (std::exception& e) {
847       {
848         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
849       };
850     } catch (Dali::DaliException e) {
851       {
852         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
853       };
854     } catch (...) {
855       {
856         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
857       };
858     }
859   }
860
861   jresult = (unsigned long)result;
862   return jresult;
863 }
864
865
866 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Connect(void * jarg1, void * jarg2) {
867   Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ;
868   void (*arg2)(Dali::WidgetView::WidgetView) = (void (*)(Dali::WidgetView::WidgetView)) 0 ;
869
870   arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1;
871   arg2 = (void (*)(Dali::WidgetView::WidgetView))jarg2;
872   {
873     try {
874       Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Connect(arg1,arg2);
875     } catch (std::out_of_range& e) {
876       {
877         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
878       };
879     } catch (std::exception& e) {
880       {
881         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
882       };
883     } catch (Dali::DaliException e) {
884       {
885         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
886       };
887     } catch (...) {
888       {
889         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
890       };
891     }
892   }
893
894 }
895
896
897 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Disconnect(void * jarg1, void * jarg2) {
898   Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ;
899   void (*arg2)(Dali::WidgetView::WidgetView) = (void (*)(Dali::WidgetView::WidgetView)) 0 ;
900
901   arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1;
902   arg2 = (void (*)(Dali::WidgetView::WidgetView))jarg2;
903   {
904     try {
905       Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Disconnect(arg1,arg2);
906     } catch (std::out_of_range& e) {
907       {
908         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
909       };
910     } catch (std::exception& e) {
911       {
912         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
913       };
914     } catch (Dali::DaliException e) {
915       {
916         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
917       };
918     } catch (...) {
919       {
920         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
921       };
922     }
923   }
924
925 }
926
927
928 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Emit(void * jarg1, void * jarg2) {
929   Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ;
930   Dali::WidgetView::WidgetView arg2 ;
931   Dali::WidgetView::WidgetView *argp2 ;
932
933   arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1;
934   argp2 = (Dali::WidgetView::WidgetView *)jarg2;
935   if (!argp2) {
936     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::WidgetView::WidgetView", 0);
937     return ;
938   }
939   arg2 = *argp2;
940   {
941     try {
942       Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Emit(arg1,arg2);
943     } catch (std::out_of_range& e) {
944       {
945         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
946       };
947     } catch (std::exception& e) {
948       {
949         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
950       };
951     } catch (Dali::DaliException e) {
952       {
953         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
954       };
955     } catch (...) {
956       {
957         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
958       };
959     }
960   }
961
962 }
963
964
965 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetViewSignal() {
966   void * jresult ;
967   Dali::Signal< void (Dali::WidgetView::WidgetView) > *result = 0 ;
968
969   {
970     try {
971       result = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)new Dali::Signal< void (Dali::WidgetView::WidgetView) >();
972     } catch (std::out_of_range& e) {
973       {
974         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
975       };
976     } catch (std::exception& e) {
977       {
978         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
979       };
980     } catch (Dali::DaliException e) {
981       {
982         SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
983       };
984     } catch (...) {
985       {
986         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
987       };
988     }
989   }
990
991   jresult = (void *)result;
992   return jresult;
993 }
994
995
996 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetViewSignal(void * jarg1) {
997   Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ;
998
999   arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1;
1000   {
1001     try {
1002       delete arg1;
1003     } catch (std::out_of_range& e) {
1004       {
1005         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1006       };
1007     } catch (std::exception& e) {
1008       {
1009         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1010       };
1011     } catch (Dali::DaliException e) {
1012       {
1013         SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1014       };
1015     } catch (...) {
1016       {
1017         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1018       };
1019     }
1020   }
1021
1022 }
1023
1024 #ifdef __cplusplus
1025 }
1026 #endif
1027