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.
22 #include <dali/devel-api/adaptor-framework/drag-and-drop-detector.h>
23 #include <dali/public-api/adaptor-framework/window.h>
24 #include <dali/integration-api/adaptors/adaptor.h>
26 /* Callback for returning strings to C# without leaking memory */
27 typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *);
28 extern SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback;
32 SWIGINTERN bool Dali_Signal_Sl_void_Sp_bool_SP__Sg__Empty(Dali::Signal< void (bool) > const *self){
35 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_bool_SP__Sg__GetConnectionCount(Dali::Signal< void (bool) > const *self){
36 return self->GetConnectionCount();
38 SWIGINTERN void Dali_Signal_Sl_void_Sp_bool_SP__Sg__Connect(Dali::Signal< void (bool) > *self,void (*func)(bool)){
39 self->Connect( func );
41 SWIGINTERN void Dali_Signal_Sl_void_Sp_bool_SP__Sg__Disconnect(Dali::Signal< void (bool) > *self,void (*func)(bool)){
42 self->Disconnect( func );
44 SWIGINTERN void Dali_Signal_Sl_void_Sp_bool_SP__Sg__Emit(Dali::Signal< void (bool) > *self,bool arg){
49 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Empty(Dali::Signal< void (Dali::Window::WindowSize) > const *self){
52 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Window::WindowSize) > const *self){
53 return self->GetConnectionCount();
55 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Connect(Dali::Signal< void (Dali::Window::WindowSize) > *self,void (*func)(Dali::Window::WindowSize)){
56 self->Connect( func );
58 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Disconnect(Dali::Signal< void (Dali::Window::WindowSize) > *self,void (*func)(Dali::Window::WindowSize)){
59 self->Disconnect( func );
61 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Emit(Dali::Signal< void (Dali::Window::WindowSize) > *self,Dali::Window::WindowSize arg){
70 SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Window_SWIGUpcast(Dali::Window *jarg1) {
71 return (Dali::BaseHandle *)jarg1;
74 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_New__SWIG_0(void * jarg1, char * jarg2, unsigned int jarg3) {
76 Dali::PositionSize arg1 ;
77 std::string *arg2 = 0 ;
79 Dali::PositionSize *argp1 ;
82 argp1 = (Dali::PositionSize *)jarg1;
84 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
89 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
92 std::string arg2_str(jarg2);
94 arg3 = jarg3 ? true : false;
97 result = Dali::Window::New(arg1,(std::string const &)*arg2,arg3);
98 } catch (std::out_of_range& e) {
100 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
102 } catch (std::exception& e) {
104 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
106 } catch (Dali::DaliException e) {
108 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
112 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
117 jresult = new Dali::Window((const Dali::Window &)result);
119 //argout typemap for const std::string&
125 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_New__SWIG_1(void * jarg1, char * jarg2) {
127 Dali::PositionSize arg1 ;
128 std::string *arg2 = 0 ;
129 Dali::PositionSize *argp1 ;
132 argp1 = (Dali::PositionSize *)jarg1;
134 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
139 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
142 std::string arg2_str(jarg2);
146 result = Dali::Window::New(arg1,(std::string const &)*arg2);
147 } catch (std::out_of_range& e) {
149 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
151 } catch (std::exception& e) {
153 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
155 } catch (Dali::DaliException e) {
157 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
161 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
166 jresult = new Dali::Window((const Dali::Window &)result);
168 //argout typemap for const std::string&
174 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_New__SWIG_2(void * jarg1, char * jarg2, char * jarg3, unsigned int jarg4) {
176 Dali::PositionSize arg1 ;
177 std::string *arg2 = 0 ;
178 std::string *arg3 = 0 ;
180 Dali::PositionSize *argp1 ;
183 argp1 = (Dali::PositionSize *)jarg1;
185 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
190 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
193 std::string arg2_str(jarg2);
196 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
199 std::string arg3_str(jarg3);
201 arg4 = jarg4 ? true : false;
204 result = Dali::Window::New(arg1,(std::string const &)*arg2,(std::string const &)*arg3,arg4);
205 } catch (std::out_of_range& e) {
207 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
209 } catch (std::exception& e) {
211 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
213 } catch (Dali::DaliException e) {
215 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
219 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
224 jresult = new Dali::Window((const Dali::Window &)result);
230 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_New__SWIG_3(void * jarg1, char * jarg2, char * jarg3) {
232 Dali::PositionSize arg1 ;
233 std::string *arg2 = 0 ;
234 std::string *arg3 = 0 ;
235 Dali::PositionSize *argp1 ;
238 argp1 = (Dali::PositionSize *)jarg1;
240 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0);
245 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
248 std::string arg2_str(jarg2);
251 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
254 std::string arg3_str(jarg3);
258 result = Dali::Window::New(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
259 } catch (std::out_of_range& e) {
261 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
263 } catch (std::exception& e) {
265 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
267 } catch (Dali::DaliException e) {
269 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
273 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
278 jresult = new Dali::Window((const Dali::Window &)result);
284 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Window__SWIG_0() {
286 Dali::Window *result = 0 ;
290 result = (Dali::Window *)new Dali::Window();
291 } catch (std::out_of_range& e) {
293 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
295 } catch (std::exception& e) {
297 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
299 } catch (Dali::DaliException e) {
301 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
305 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
310 jresult = (void *)result;
315 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Window(void * jarg1) {
316 Dali::Window *arg1 = (Dali::Window *) 0 ;
318 arg1 = (Dali::Window *)jarg1;
322 } catch (std::out_of_range& e) {
324 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
326 } catch (std::exception& e) {
328 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
330 } catch (Dali::DaliException e) {
332 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
336 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
344 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Window__SWIG_1(void * jarg1) {
346 Dali::Window *arg1 = 0 ;
347 Dali::Window *result = 0 ;
349 arg1 = (Dali::Window *)jarg1;
351 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Window const & type is null", 0);
356 result = (Dali::Window *)new Dali::Window((Dali::Window const &)*arg1);
357 } catch (std::out_of_range& e) {
359 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
361 } catch (std::exception& e) {
363 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
365 } catch (Dali::DaliException e) {
367 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
371 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
376 jresult = (void *)result;
381 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_Assign(void * jarg1, void * jarg2) {
383 Dali::Window *arg1 = (Dali::Window *) 0 ;
384 Dali::Window *arg2 = 0 ;
385 Dali::Window *result = 0 ;
387 arg1 = (Dali::Window *)jarg1;
388 arg2 = (Dali::Window *)jarg2;
390 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Window const & type is null", 0);
395 result = (Dali::Window *) &(arg1)->operator =((Dali::Window const &)*arg2);
396 } catch (std::out_of_range& e) {
398 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
400 } catch (std::exception& e) {
402 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
404 } catch (Dali::DaliException e) {
406 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
410 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
415 jresult = (void *)result;
420 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_ShowIndicator(void * jarg1, int jarg2) {
421 Dali::Window *arg1 = (Dali::Window *) 0 ;
422 Dali::Window::IndicatorVisibleMode arg2 ;
424 arg1 = (Dali::Window *)jarg1;
425 arg2 = (Dali::Window::IndicatorVisibleMode)jarg2;
428 (arg1)->ShowIndicator(arg2);
429 } catch (std::out_of_range& e) {
431 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
433 } catch (std::exception& e) {
435 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
437 } catch (Dali::DaliException e) {
439 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
443 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
451 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetIndicatorBgOpacity(void * jarg1, int jarg2) {
452 Dali::Window *arg1 = (Dali::Window *) 0 ;
453 Dali::Window::IndicatorBgOpacity arg2 ;
455 arg1 = (Dali::Window *)jarg1;
456 arg2 = (Dali::Window::IndicatorBgOpacity)jarg2;
459 (arg1)->SetIndicatorBgOpacity(arg2);
460 } catch (std::out_of_range& e) {
462 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
464 } catch (std::exception& e) {
466 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
468 } catch (Dali::DaliException e) {
470 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
474 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
482 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_RotateIndicator(void * jarg1, int jarg2) {
483 Dali::Window *arg1 = (Dali::Window *) 0 ;
484 Dali::Window::WindowOrientation arg2 ;
486 arg1 = (Dali::Window *)jarg1;
487 arg2 = (Dali::Window::WindowOrientation)jarg2;
490 (arg1)->RotateIndicator(arg2);
491 } catch (std::out_of_range& e) {
493 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
495 } catch (std::exception& e) {
497 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
499 } catch (Dali::DaliException e) {
501 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
505 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
513 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetClass(void * jarg1, char * jarg2, char * jarg3) {
514 Dali::Window *arg1 = (Dali::Window *) 0 ;
518 arg1 = (Dali::Window *)jarg1;
520 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
523 (&arg2)->assign(jarg2);
525 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
528 (&arg3)->assign(jarg3);
531 (arg1)->SetClass(arg2,arg3);
532 } catch (std::out_of_range& e) {
534 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
536 } catch (std::exception& e) {
538 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
540 } catch (Dali::DaliException e) {
542 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
546 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
554 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_Raise(void * jarg1) {
555 Dali::Window *arg1 = (Dali::Window *) 0 ;
557 arg1 = (Dali::Window *)jarg1;
561 } catch (std::out_of_range& e) {
563 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
565 } catch (std::exception& e) {
567 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
569 } catch (Dali::DaliException e) {
571 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
575 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
583 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_Lower(void * jarg1) {
584 Dali::Window *arg1 = (Dali::Window *) 0 ;
586 arg1 = (Dali::Window *)jarg1;
590 } catch (std::out_of_range& e) {
592 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
594 } catch (std::exception& e) {
596 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
598 } catch (Dali::DaliException e) {
600 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
604 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
612 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_Activate(void * jarg1) {
613 Dali::Window *arg1 = (Dali::Window *) 0 ;
615 arg1 = (Dali::Window *)jarg1;
619 } catch (std::out_of_range& e) {
621 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
623 } catch (std::exception& e) {
625 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
627 } catch (Dali::DaliException e) {
629 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
633 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
641 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_AddAvailableOrientation(void * jarg1, int jarg2) {
642 Dali::Window *arg1 = (Dali::Window *) 0 ;
643 Dali::Window::WindowOrientation arg2 ;
645 arg1 = (Dali::Window *)jarg1;
646 arg2 = (Dali::Window::WindowOrientation)jarg2;
649 (arg1)->AddAvailableOrientation(arg2);
650 } catch (std::out_of_range& e) {
652 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
654 } catch (std::exception& e) {
656 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
658 } catch (Dali::DaliException e) {
660 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
664 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
672 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_RemoveAvailableOrientation(void * jarg1, int jarg2) {
673 Dali::Window *arg1 = (Dali::Window *) 0 ;
674 Dali::Window::WindowOrientation arg2 ;
676 arg1 = (Dali::Window *)jarg1;
677 arg2 = (Dali::Window::WindowOrientation)jarg2;
680 (arg1)->RemoveAvailableOrientation(arg2);
681 } catch (std::out_of_range& e) {
683 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
685 } catch (std::exception& e) {
687 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
689 } catch (Dali::DaliException e) {
691 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
695 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
703 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetPreferredOrientation(void * jarg1, int jarg2) {
704 Dali::Window *arg1 = (Dali::Window *) 0 ;
705 Dali::Window::WindowOrientation arg2 ;
707 arg1 = (Dali::Window *)jarg1;
708 arg2 = (Dali::Window::WindowOrientation)jarg2;
711 (arg1)->SetPreferredOrientation(arg2);
712 } catch (std::out_of_range& e) {
714 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
716 } catch (std::exception& e) {
718 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
720 } catch (Dali::DaliException e) {
722 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
726 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
734 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Window_GetPreferredOrientation(void * jarg1) {
736 Dali::Window *arg1 = (Dali::Window *) 0 ;
737 Dali::Window::WindowOrientation result;
739 arg1 = (Dali::Window *)jarg1;
742 result = (Dali::Window::WindowOrientation)(arg1)->GetPreferredOrientation();
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;
762 jresult = (int)result;
767 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetDragAndDropDetector(void * jarg1) {
769 Dali::Window *arg1 = (Dali::Window *) 0 ;
770 Dali::DragAndDropDetector result;
772 arg1 = (Dali::Window *)jarg1;
775 result = ((Dali::Window const *)arg1)->GetDragAndDropDetector();
776 } catch (std::out_of_range& e) {
778 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
780 } catch (std::exception& e) {
782 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
784 } catch (Dali::DaliException e) {
786 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
790 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
795 jresult = new Dali::DragAndDropDetector((const Dali::DragAndDropDetector &)result);
800 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetNativeHandle(void * jarg1) {
802 Dali::Window *arg1 = (Dali::Window *) 0 ;
805 arg1 = (Dali::Window *)jarg1;
808 result = ((Dali::Window const *)arg1)->GetNativeHandle();
809 } catch (std::out_of_range& e) {
811 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
813 } catch (std::exception& e) {
815 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
817 } catch (Dali::DaliException e) {
819 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
823 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
828 jresult = new Dali::Any((const Dali::Any &)result);
832 /*window-devel binding*/
834 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FocusChangedSignal(void * jarg1) {
837 Dali::Window *argp1 ;
838 Dali::Window::FocusSignalType *result = 0 ;
840 argp1 = (Dali::Window *)jarg1;
842 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
848 result = (Dali::Window::FocusSignalType*)&arg1.FocusChangedSignal();
849 } catch (std::out_of_range& e) {
851 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
853 } catch (std::exception& e) {
855 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
857 } catch (Dali::DaliException e) {
859 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
863 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
868 jresult = (void *)result;
873 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetAcceptFocus(void * jarg1, unsigned int jarg2) {
876 Dali::Window *argp1 ;
878 argp1 = (Dali::Window *)jarg1;
880 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
884 arg2 = jarg2 ? true : false;
887 arg1.SetAcceptFocus(arg2);
888 } catch (std::out_of_range& e) {
890 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
892 } catch (std::exception& e) {
894 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
896 } catch (Dali::DaliException e) {
898 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
902 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
910 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_IsFocusAcceptable(void * jarg1) {
911 unsigned int jresult ;
913 Dali::Window *argp1 ;
916 argp1 = (Dali::Window *)jarg1;
918 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
924 result = (bool)arg1.IsFocusAcceptable();
925 } catch (std::out_of_range& e) {
927 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
929 } catch (std::exception& e) {
931 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
933 } catch (Dali::DaliException e) {
935 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
939 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
949 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Show(void * jarg1) {
951 Dali::Window *argp1 ;
953 argp1 = (Dali::Window *)jarg1;
955 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
962 } catch (std::out_of_range& e) {
964 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
966 } catch (std::exception& e) {
968 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
970 } catch (Dali::DaliException e) {
972 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
976 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
984 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Hide(void * jarg1) {
986 Dali::Window *argp1 ;
988 argp1 = (Dali::Window *)jarg1;
990 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
997 } catch (std::out_of_range& e) {
999 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1001 } catch (std::exception& e) {
1003 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1005 } catch (Dali::DaliException e) {
1007 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1011 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1019 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_IsVisible(void * jarg1) {
1020 unsigned int jresult ;
1022 Dali::Window *argp1 ;
1025 argp1 = (Dali::Window *)jarg1;
1027 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1033 result = (bool)arg1.IsVisible();
1034 } catch (std::out_of_range& e) {
1036 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1038 } catch (std::exception& e) {
1040 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1042 } catch (Dali::DaliException e) {
1044 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1048 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1058 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_GetSupportedAuxiliaryHintCount(void * jarg1) {
1059 unsigned int jresult ;
1061 Dali::Window *argp1 ;
1062 unsigned int result;
1064 argp1 = (Dali::Window *)jarg1;
1066 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1072 result = (unsigned int)arg1.GetSupportedAuxiliaryHintCount();
1073 } catch (std::out_of_range& e) {
1075 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1077 } catch (std::exception& e) {
1079 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1081 } catch (Dali::DaliException e) {
1083 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1087 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1097 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_GetSupportedAuxiliaryHint(void * jarg1, unsigned int jarg2) {
1101 Dali::Window *argp1 ;
1104 argp1 = (Dali::Window *)jarg1;
1106 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1110 arg2 = (unsigned int)jarg2;
1113 result = arg1.GetSupportedAuxiliaryHint(arg2);
1114 } catch (std::out_of_range& e) {
1116 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1118 } catch (std::exception& e) {
1120 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1122 } catch (Dali::DaliException e) {
1124 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1128 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1133 jresult = SWIG_csharp_string_callback((&result)->c_str());
1138 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_AddAuxiliaryHint(void * jarg1, char * jarg2, char * jarg3) {
1139 unsigned int jresult ;
1141 std::string *arg2 = 0 ;
1142 std::string *arg3 = 0 ;
1143 Dali::Window *argp1 ;
1144 unsigned int result;
1146 argp1 = (Dali::Window *)jarg1;
1148 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1153 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
1156 std::string arg2_str(jarg2);
1159 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
1162 std::string arg3_str(jarg3);
1166 result = (unsigned int)arg1.AddAuxiliaryHint((std::string const &)*arg2,(std::string const &)*arg3);
1167 } catch (std::out_of_range& e) {
1169 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1171 } catch (std::exception& e) {
1173 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1175 } catch (Dali::DaliException e) {
1177 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1181 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1192 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_RemoveAuxiliaryHint(void * jarg1, unsigned int jarg2) {
1193 unsigned int jresult ;
1196 Dali::Window *argp1 ;
1199 argp1 = (Dali::Window *)jarg1;
1201 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1205 arg2 = (unsigned int)jarg2;
1208 result = (bool)arg1.RemoveAuxiliaryHint(arg2);
1209 } catch (std::out_of_range& e) {
1211 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1213 } catch (std::exception& e) {
1215 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1217 } catch (Dali::DaliException e) {
1219 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1223 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1233 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_SetAuxiliaryHintValue(void * jarg1, unsigned int jarg2, char * jarg3) {
1234 unsigned int jresult ;
1237 std::string *arg3 = 0 ;
1238 Dali::Window *argp1 ;
1241 argp1 = (Dali::Window *)jarg1;
1243 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1247 arg2 = (unsigned int)jarg2;
1249 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
1252 std::string arg3_str(jarg3);
1256 result = (bool)arg1.SetAuxiliaryHintValue(arg2,(std::string const &)*arg3);
1257 } catch (std::out_of_range& e) {
1259 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1261 } catch (std::exception& e) {
1263 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1265 } catch (Dali::DaliException e) {
1267 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1271 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1278 //argout typemap for const std::string&
1284 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_GetAuxiliaryHintValue(void * jarg1, unsigned int jarg2) {
1288 Dali::Window *argp1 ;
1291 argp1 = (Dali::Window *)jarg1;
1293 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1297 arg2 = (unsigned int)jarg2;
1300 result = arg1.GetAuxiliaryHintValue(arg2);
1301 } catch (std::out_of_range& e) {
1303 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1305 } catch (std::exception& e) {
1307 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1309 } catch (Dali::DaliException e) {
1311 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1315 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1320 jresult = SWIG_csharp_string_callback((&result)->c_str());
1325 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_GetAuxiliaryHintId(void * jarg1, char * jarg2) {
1326 unsigned int jresult ;
1328 std::string *arg2 = 0 ;
1329 Dali::Window *argp1 ;
1330 unsigned int result;
1332 argp1 = (Dali::Window *)jarg1;
1334 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1339 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
1342 std::string arg2_str(jarg2);
1346 result = (unsigned int)arg1.GetAuxiliaryHintId((std::string const &)*arg2);
1347 } catch (std::out_of_range& e) {
1349 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1351 } catch (std::exception& e) {
1353 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1355 } catch (Dali::DaliException e) {
1357 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1361 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1368 //argout typemap for const std::string&
1374 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetInputRegion(void * jarg1, void * jarg2) {
1376 Dali::Rect< int > *arg2 = 0 ;
1377 Dali::Window *argp1 ;
1379 argp1 = (Dali::Window *)jarg1;
1381 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1385 arg2 = (Dali::Rect< int > *)jarg2;
1387 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Rect< int > const & type is null", 0);
1392 arg1.SetInputRegion((Dali::Rect< int > const &)*arg2);
1393 } catch (std::out_of_range& e) {
1395 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1397 } catch (std::exception& e) {
1399 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1401 } catch (Dali::DaliException e) {
1403 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1407 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1415 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetType(void * jarg1, int jarg2) {
1417 Dali::Window::Type arg2 ;
1418 Dali::Window *argp1 ;
1420 argp1 = (Dali::Window *)jarg1;
1422 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1426 arg2 = (Dali::Window::Type)jarg2;
1430 } catch (std::out_of_range& e) {
1432 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1434 } catch (std::exception& e) {
1436 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1438 } catch (Dali::DaliException e) {
1440 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1444 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1452 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_GetType(void * jarg1) {
1455 Dali::Window *argp1 ;
1456 Dali::Window::Type result;
1458 argp1 = (Dali::Window *)jarg1;
1460 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1466 result = (Dali::Window::Type)arg1.GetType();
1467 } catch (std::out_of_range& e) {
1469 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1471 } catch (std::exception& e) {
1473 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1475 } catch (Dali::DaliException e) {
1477 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1481 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1486 jresult = (int)result;
1491 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_SetNotificationLevel(void * jarg1, int jarg2) {
1492 unsigned int jresult ;
1494 Dali::Window::NotificationLevel::Type arg2 ;
1495 Dali::Window *argp1 ;
1498 argp1 = (Dali::Window *)jarg1;
1500 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1504 arg2 = (Dali::Window::NotificationLevel::Type)jarg2;
1507 result = (bool)arg1.SetNotificationLevel(arg2);
1508 } catch (std::out_of_range& e) {
1510 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1512 } catch (std::exception& e) {
1514 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1516 } catch (Dali::DaliException e) {
1518 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1522 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1532 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_GetNotificationLevel(void * jarg1) {
1535 Dali::Window *argp1 ;
1536 Dali::Window::NotificationLevel::Type result;
1538 argp1 = (Dali::Window *)jarg1;
1540 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1546 result = (Dali::Window::NotificationLevel::Type)arg1.GetNotificationLevel();
1547 } catch (std::out_of_range& e) {
1549 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1551 } catch (std::exception& e) {
1553 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1555 } catch (Dali::DaliException e) {
1557 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1561 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1566 jresult = (int)result;
1571 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetOpaqueState(void * jarg1, unsigned int jarg2) {
1574 Dali::Window *argp1 ;
1576 argp1 = (Dali::Window *)jarg1;
1578 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1582 arg2 = jarg2 ? true : false;
1585 arg1.SetOpaqueState(arg2);
1586 } catch (std::out_of_range& e) {
1588 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1590 } catch (std::exception& e) {
1592 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1594 } catch (Dali::DaliException e) {
1596 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1600 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1608 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_IsOpaqueState(void * jarg1) {
1609 unsigned int jresult ;
1611 Dali::Window *argp1 ;
1614 argp1 = (Dali::Window *)jarg1;
1616 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1622 result = (bool)arg1.IsOpaqueState();
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;
1647 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_SetScreenOffMode(void * jarg1, int jarg2) {
1648 unsigned int jresult ;
1650 Dali::Window::ScreenOffMode::Type arg2 ;
1651 Dali::Window *argp1 ;
1654 argp1 = (Dali::Window *)jarg1;
1656 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1660 arg2 = (Dali::Window::ScreenOffMode::Type)jarg2;
1663 result = (bool)arg1.SetScreenOffMode(arg2);
1664 } catch (std::out_of_range& e) {
1666 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1668 } catch (std::exception& e) {
1670 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1672 } catch (Dali::DaliException e) {
1674 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1678 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1688 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_GetScreenOffMode(void * jarg1) {
1691 Dali::Window *argp1 ;
1692 Dali::Window::ScreenOffMode::Type result;
1694 argp1 = (Dali::Window *)jarg1;
1696 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1702 result = (Dali::Window::ScreenOffMode::Type)arg1.GetScreenOffMode();
1703 } catch (std::out_of_range& e) {
1705 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1707 } catch (std::exception& e) {
1709 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1711 } catch (Dali::DaliException e) {
1713 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1717 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1722 jresult = (int)result;
1727 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_SetBrightness(void * jarg1, int jarg2) {
1728 unsigned int jresult ;
1731 Dali::Window *argp1 ;
1734 argp1 = (Dali::Window *)jarg1;
1736 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1743 result = (bool)arg1.SetBrightness(arg2);
1744 } catch (std::out_of_range& e) {
1746 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1748 } catch (std::exception& e) {
1750 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1752 } catch (Dali::DaliException e) {
1754 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1758 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1768 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_GetBrightness(void * jarg1) {
1771 Dali::Window *argp1 ;
1774 argp1 = (Dali::Window *)jarg1;
1776 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
1782 result = (int)arg1.GetBrightness();
1783 } catch (std::out_of_range& e) {
1785 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1787 } catch (std::exception& e) {
1789 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1791 } catch (Dali::DaliException e) {
1793 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1797 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1806 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WindowFocusSignalType_Empty(void * jarg1) {
1807 unsigned int jresult ;
1808 Dali::Signal< void (bool) > *arg1 = (Dali::Signal< void (bool) > *) 0 ;
1811 arg1 = (Dali::Signal< void (bool) > *)jarg1;
1814 result = (bool)Dali_Signal_Sl_void_Sp_bool_SP__Sg__Empty((Dali::Signal< void (bool) > const *)arg1);
1815 } catch (std::out_of_range& e) {
1817 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1819 } catch (std::exception& e) {
1821 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1823 } catch (Dali::DaliException e) {
1825 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1829 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1839 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WindowFocusSignalType_GetConnectionCount(void * jarg1) {
1840 unsigned long jresult ;
1841 Dali::Signal< void (bool) > *arg1 = (Dali::Signal< void (bool) > *) 0 ;
1844 arg1 = (Dali::Signal< void (bool) > *)jarg1;
1847 result = Dali_Signal_Sl_void_Sp_bool_SP__Sg__GetConnectionCount((Dali::Signal< void (bool) > const *)arg1);
1848 } catch (std::out_of_range& e) {
1850 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1852 } catch (std::exception& e) {
1854 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1856 } catch (Dali::DaliException e) {
1858 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1862 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1867 jresult = (unsigned long)result;
1872 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WindowFocusSignalType_Connect(void * jarg1, void * jarg2) {
1873 Dali::Signal< void (bool) > *arg1 = (Dali::Signal< void (bool) > *) 0 ;
1874 void (*arg2)(bool) = (void (*)(bool)) 0 ;
1876 arg1 = (Dali::Signal< void (bool) > *)jarg1;
1877 arg2 = (void (*)(bool))jarg2;
1880 Dali_Signal_Sl_void_Sp_bool_SP__Sg__Connect(arg1,arg2);
1881 } catch (std::out_of_range& e) {
1883 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1885 } catch (std::exception& e) {
1887 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1889 } catch (Dali::DaliException e) {
1891 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1895 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1903 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WindowFocusSignalType_Disconnect(void * jarg1, void * jarg2) {
1904 Dali::Signal< void (bool) > *arg1 = (Dali::Signal< void (bool) > *) 0 ;
1905 void (*arg2)(bool) = (void (*)(bool)) 0 ;
1907 arg1 = (Dali::Signal< void (bool) > *)jarg1;
1908 arg2 = (void (*)(bool))jarg2;
1911 Dali_Signal_Sl_void_Sp_bool_SP__Sg__Disconnect(arg1,arg2);
1912 } catch (std::out_of_range& e) {
1914 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1916 } catch (std::exception& e) {
1918 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1920 } catch (Dali::DaliException e) {
1922 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1926 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1934 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WindowFocusSignalType_Emit(void * jarg1, unsigned int jarg2) {
1935 Dali::Signal< void (bool) > *arg1 = (Dali::Signal< void (bool) > *) 0 ;
1938 arg1 = (Dali::Signal< void (bool) > *)jarg1;
1939 arg2 = jarg2 ? true : false;
1942 Dali_Signal_Sl_void_Sp_bool_SP__Sg__Emit(arg1,arg2);
1943 } catch (std::out_of_range& e) {
1945 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
1947 } catch (std::exception& e) {
1949 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
1951 } catch (Dali::DaliException e) {
1953 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
1957 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
1965 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WindowFocusSignalType() {
1967 Dali::Signal< void (bool) > *result = 0 ;
1971 result = (Dali::Signal< void (bool) > *)new Dali::Signal< void (bool) >();
1972 } catch (std::out_of_range& e) {
1974 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
1976 } catch (std::exception& e) {
1978 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
1980 } catch (Dali::DaliException e) {
1982 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
1986 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
1991 jresult = (void *)result;
1996 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WindowFocusSignalType(void * jarg1) {
1997 Dali::Signal< void (bool) > *arg1 = (Dali::Signal< void (bool) > *) 0 ;
1999 arg1 = (Dali::Signal< void (bool) > *)jarg1;
2003 } catch (std::out_of_range& e) {
2005 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2007 } catch (std::exception& e) {
2009 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2011 } catch (Dali::DaliException e) {
2013 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2017 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2026 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_ResizedSignal(void * jarg1) {
2029 Dali::Window *argp1 ;
2030 Dali::Window::ResizedSignalType *result = 0 ;
2032 argp1 = (Dali::Window *)jarg1;
2034 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
2040 result = (Dali::Window::ResizedSignalType *) &arg1.ResizedSignal();
2041 } catch (std::out_of_range& e) {
2043 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2045 } catch (std::exception& e) {
2047 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2049 } catch (Dali::DaliException e) {
2051 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2055 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2060 jresult = (void *)result;
2064 /*ResizedSignal binding*/
2065 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ResizedSignal_Empty(void * jarg1) {
2066 unsigned int jresult ;
2067 Dali::Signal< void (Dali::Window::WindowSize) > *arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *) 0 ;
2070 arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *)jarg1;
2073 result = (bool)Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Empty((Dali::Signal< void (Dali::Window::WindowSize) > const *)arg1);
2074 } catch (std::out_of_range& e) {
2076 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2078 } catch (std::exception& e) {
2080 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2082 } catch (Dali::DaliException e) {
2084 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2088 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2098 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ResizedSignal_GetConnectionCount(void * jarg1) {
2099 unsigned long jresult ;
2100 Dali::Signal< void (Dali::Window::WindowSize) > *arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *) 0 ;
2103 arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *)jarg1;
2106 result = Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Window::WindowSize) > const *)arg1);
2107 } catch (std::out_of_range& e) {
2109 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2111 } catch (std::exception& e) {
2113 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2115 } catch (Dali::DaliException e) {
2117 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2121 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2126 jresult = (unsigned long)result;
2131 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ResizedSignal_Connect(void * jarg1, void * jarg2) {
2132 Dali::Signal< void (Dali::Window::WindowSize) > *arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *) 0 ;
2133 void (*arg2)(Dali::Window::WindowSize) = (void (*)(Dali::Window::WindowSize)) 0 ;
2135 arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *)jarg1;
2136 arg2 = (void (*)(Dali::Window::WindowSize))jarg2;
2139 Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Connect(arg1,arg2);
2140 } catch (std::out_of_range& e) {
2142 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2144 } catch (std::exception& e) {
2146 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2148 } catch (Dali::DaliException e) {
2150 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2154 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2162 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ResizedSignal_Disconnect(void * jarg1, void * jarg2) {
2163 Dali::Signal< void (Dali::Window::WindowSize) > *arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *) 0 ;
2164 void (*arg2)(Dali::Window::WindowSize) = (void (*)(Dali::Window::WindowSize)) 0 ;
2166 arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *)jarg1;
2167 arg2 = (void (*)(Dali::Window::WindowSize))jarg2;
2170 Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Disconnect(arg1,arg2);
2171 } catch (std::out_of_range& e) {
2173 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2175 } catch (std::exception& e) {
2177 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2179 } catch (Dali::DaliException e) {
2181 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2185 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2193 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ResizedSignal_Emit(void * jarg1, void * jarg2) {
2194 Dali::Signal< void (Dali::Window::WindowSize) > *arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *) 0 ;
2195 Dali::Window::WindowSize arg2 ;
2196 Dali::Window::WindowSize *argp2 ;
2198 arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *)jarg1;
2199 argp2 = (Dali::Window::WindowSize *)jarg2;
2201 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window::WindowSize", 0);
2207 Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Emit(arg1,arg2);
2208 } catch (std::out_of_range& e) {
2210 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2212 } catch (std::exception& e) {
2214 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2216 } catch (Dali::DaliException e) {
2218 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2222 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2230 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ResizedSignal() {
2232 Dali::Signal< void (Dali::Window::WindowSize) > *result = 0 ;
2236 result = (Dali::Signal< void (Dali::Window::WindowSize) > *)new Dali::Signal< void (Dali::Window::WindowSize) >();
2237 } catch (std::out_of_range& e) {
2239 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2241 } catch (std::exception& e) {
2243 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2245 } catch (Dali::DaliException e) {
2247 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2251 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2256 jresult = (void *)result;
2261 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ResizedSignal(void * jarg1) {
2262 Dali::Signal< void (Dali::Window::WindowSize) > *arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *) 0 ;
2264 arg1 = (Dali::Signal< void (Dali::Window::WindowSize) > *)jarg1;
2268 } catch (std::out_of_range& e) {
2270 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2272 } catch (std::exception& e) {
2274 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2276 } catch (Dali::DaliException e) {
2278 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2282 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2289 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetSize(void * jarg1, void * jarg2) {
2291 Dali::Window::WindowSize arg2 ;
2292 Dali::Window *argp1 ;
2293 Dali::Window::WindowSize *argp2 ;
2295 argp1 = (Dali::Window *)jarg1;
2297 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
2301 argp2 = (Dali::Window::WindowSize *)jarg2;
2303 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window::WindowSize", 0);
2310 } catch (std::out_of_range& e) {
2312 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2314 } catch (std::exception& e) {
2316 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2318 } catch (Dali::DaliException e) {
2320 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2324 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2332 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetSize(void * jarg1) {
2335 Dali::Window *argp1 ;
2336 Dali::Window::WindowSize result;
2338 argp1 = (Dali::Window *)jarg1;
2340 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
2346 result = arg1.GetSize();
2347 } catch (std::out_of_range& e) {
2349 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2351 } catch (std::exception& e) {
2353 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2355 } catch (Dali::DaliException e) {
2357 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2361 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2366 jresult = new Dali::Window::WindowSize((const Dali::Window::WindowSize &)result);
2371 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetPosition(void * jarg1, void * jarg2) {
2373 Dali::Window::WindowPosition arg2 ;
2374 Dali::Window *argp1 ;
2375 Dali::Window::WindowPosition *argp2 ;
2377 argp1 = (Dali::Window *)jarg1;
2379 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
2383 argp2 = (Dali::Window::WindowPosition *)jarg2;
2385 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window::WindowPosition", 0);
2391 arg1.SetPosition(arg2);
2392 } catch (std::out_of_range& e) {
2394 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2396 } catch (std::exception& e) {
2398 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2400 } catch (Dali::DaliException e) {
2402 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2406 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2414 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetPosition(void * jarg1) {
2417 Dali::Window *argp1 ;
2418 Dali::Window::WindowPosition result;
2420 argp1 = (Dali::Window *)jarg1;
2422 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
2428 result = arg1.GetPosition();
2429 } catch (std::out_of_range& e) {
2431 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
2433 } catch (std::exception& e) {
2435 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
2437 } catch (Dali::DaliException e) {
2439 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
2443 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
2448 jresult = new Dali::Window::WindowPosition((const Dali::Window::WindowPosition &)result);
2452 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetTransparency(void * jarg1, unsigned int jarg2) {
2455 Dali::Window *argp1 ;
2457 argp1 = (Dali::Window *)jarg1;
2459 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
2463 arg2 = jarg2 ? true : false;
2466 arg1.SetTransparency(arg2);
2467 } catch (std::out_of_range& e) {
2469 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2471 } catch (std::exception& e) {
2473 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2475 } catch (Dali::DaliException e) {
2477 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
2481 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2488 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_FeedKeyEvent(void * jarg1) {
2489 Dali::KeyEvent *arg1 = 0 ;
2491 arg1 = (Dali::KeyEvent *)jarg1;
2493 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::KeyEvent & type is null", 0);
2498 Dali::Adaptor::Get().FeedKeyEvent(*arg1);
2499 } catch (std::out_of_range& e) {
2501 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2503 } catch (std::exception& e) {
2505 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2509 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
2515 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Adaptor_RenderOnce(void * /* jarg1 */) {
2517 Dali::Adaptor::Get().RenderOnce();
2518 } catch (std::out_of_range& e) {
2520 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
2522 } catch (std::exception& e) {
2524 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
2528 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;