From 3a047aa123b4c6fc8f8b0b0d996bffee3fe4bd8d Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Fri, 23 Feb 2018 17:30:23 +0900 Subject: [PATCH] Sync with tizen branch Change-Id: I01d85e05a0a6560809c097d5234b65da4f1298c9 Signed-off-by: dongsug.song --- configure.ac | 7 +- dali-csharp-binder.pc.in | 2 +- dali-csharp-binder/Makefile.am | 1 + dali-csharp-binder/file.list | 3 + dali-csharp-binder/src/application.cpp | 9 + dali-csharp-binder/src/dali_wrap.cpp | 2044 ++++++++++++++++++------ dali-csharp-binder/src/dali_wrap.h | 36 + dali-csharp-binder/src/devel-property-wrap.cpp | 1 + dali-csharp-binder/src/imf-manager.cpp | 2 +- dali-csharp-binder/src/text-field.cpp | 1 + dali-csharp-binder/src/version-check.cpp | 76 + dali-csharp-binder/src/web-view-lite.cpp | 620 +++++++ dali-csharp-binder/src/widget_view.cpp | 1027 ++++++++++++ dali-csharp-binder/src/widget_view_manager.cpp | 312 ++++ packaging/dali-csharp-binder.spec | 3 +- 15 files changed, 3693 insertions(+), 451 deletions(-) create mode 100755 dali-csharp-binder/src/web-view-lite.cpp create mode 100755 dali-csharp-binder/src/widget_view.cpp create mode 100755 dali-csharp-binder/src/widget_view_manager.cpp diff --git a/configure.ac b/configure.ac index 92e17cf..e54f733 100755 --- a/configure.ac +++ b/configure.ac @@ -20,11 +20,14 @@ AC_ARG_ENABLE(tizenBuild, AM_CONDITIONAL([TIZENBUILD], [test x$enable_tizenBuild = xyes]) -# Checks for libraries. -PKG_CHECK_MODULES([DALI], [dali-core dali-adaptor dali-toolkit]) +PKG_PROG_PKG_CONFIG +# Checks for libraries. added for widget_viewer_dali binding only for tizen # added for key grab binding only for tizen if test x$enable_tizenBuild = xyes; then + PKG_CHECK_MODULES(DALI, dali-core dali-adaptor dali-toolkit widget_viewer_dali) PKG_CHECK_MODULES(ECORE_WAYLAND, ecore-wayland) +else + PKG_CHECK_MODULES(DALI, dali-core dali-adaptor dali-toolkit) fi AC_CONFIG_FILES([ diff --git a/dali-csharp-binder.pc.in b/dali-csharp-binder.pc.in index b277487..4b4d20d 100755 --- a/dali-csharp-binder.pc.in +++ b/dali-csharp-binder.pc.in @@ -8,6 +8,6 @@ includedir=@INC_DIR@ Name: DALi C# binder Description: DALi C# binder Libaray Version: @VERSION@ -Requires: dali-toolkit +Requires: dali-core dali-adaptor dali-toolkit ecore-wayland Libs: -L${libdir} -ldali-csharp-binder Cflags: -I${includedir}/dali-csharp-binder diff --git a/dali-csharp-binder/Makefile.am b/dali-csharp-binder/Makefile.am index abcc7cd..70e3672 100755 --- a/dali-csharp-binder/Makefile.am +++ b/dali-csharp-binder/Makefile.am @@ -12,6 +12,7 @@ libdali_csharp_binder_la_CXXFLAGS = \ ${CFLAGS} \ $(DALI_CFLAGS) \ $(ECORE_WAYLAND_CFLAGS) \ + $(viewer_dali_CFLAGS) \ $(dali_csharp_binder_includes) # added for key grab binding only for tizen diff --git a/dali-csharp-binder/file.list b/dali-csharp-binder/file.list index ee05667..97fb764 100755 --- a/dali-csharp-binder/file.list +++ b/dali-csharp-binder/file.list @@ -41,8 +41,11 @@ dali_csharp_binder_src_files_tizen = \ src/animation.cpp \ src/key-grab.cpp \ src/watch.cpp \ + src/widget_view.cpp \ + src/widget_view_manager.cpp \ src/adaptor.cpp \ src/extents.cpp \ + src/web-view-lite.cpp \ src/font-client.cpp dali_csharp_binder_header_files = \ diff --git a/dali-csharp-binder/src/application.cpp b/dali-csharp-binder/src/application.cpp index 72bd1f2..52feb34 100755 --- a/dali-csharp-binder/src/application.cpp +++ b/dali-csharp-binder/src/application.cpp @@ -2237,6 +2237,10 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_4(int jarg1, cha int numStrings = 1; // number of strings int stringLength = 30; // max string length. array = (char **)malloc( (numStrings + 1 )* sizeof(char *) ); + if(!array) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "array is null", 0); + return 0; + } argV = array; // allocate the string data @@ -2247,6 +2251,11 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_4(int jarg1, cha array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part std::string temp = "dali-csharp-app"; + + if(!array[0]) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "array[0] is null", 0); + return 0; + } array[0][temp.copy(array[0], strlen(array[0])-1)] = '\0'; arg1 = &argC; diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index dcae147..882eac4 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -285,6 +285,9 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_NDalic( typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL; +// keep argWidgetCs and argWidgetV so they're always available to DALi +int argWidgetC = 1; +char **argWidgetV = NULL; #ifdef __cplusplus extern "C" @@ -451,14 +454,11 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include #include -#include -#include #include #include #include - #include #include #include @@ -1690,6 +1690,140 @@ SWIGINTERN bool Dali_Signal_Sl_bool_Sp_Dali_Toolkit_Slider_Sc_int_SP__Sg__Emit(D #include "dali_wrap.h" +/* + * Widget director + */ +SwigDirector_WidgetImpl::SwigDirector_WidgetImpl() : Dali::Internal::Adaptor::Widget(), Swig::Director() { + swig_init_callbacks(); +} + +SwigDirector_WidgetImpl::~SwigDirector_WidgetImpl() { +} + +void SwigDirector_WidgetImpl::OnCreate(std::string const &contentInfo, Dali::Window window) { + char * jcontentInfo = 0 ; + void * jwindow ; + + if (!swig_callbackOnCreate) { + Dali::Internal::Adaptor::Widget::OnCreate(contentInfo,window); + return; + } else { + jcontentInfo = SWIG_csharp_string_callback((&contentInfo)->c_str()); + jwindow = (void *)new Dali::Window((const Dali::Window &)window); + swig_callbackOnCreate(jcontentInfo, jwindow); + } +} + +void SwigDirector_WidgetImpl::OnTerminate(std::string const &contentInfo, Dali::Widget::Termination type) { + char * jcontentInfo = 0 ; + int jtype ; + + if (!swig_callbackOnTerminate) { + Dali::Internal::Adaptor::Widget::OnTerminate(contentInfo,type); + return; + } else { + jcontentInfo = SWIG_csharp_string_callback((&contentInfo)->c_str()); + jtype = (int)type; + swig_callbackOnTerminate(jcontentInfo, jtype); + } +} + +void SwigDirector_WidgetImpl::OnPause() { + if (!swig_callbackOnPause) { + Dali::Internal::Adaptor::Widget::OnPause(); + return; + } else { + swig_callbackOnPause(); + } +} + +void SwigDirector_WidgetImpl::OnResume() { + if (!swig_callbackOnResume) { + Dali::Internal::Adaptor::Widget::OnResume(); + return; + } else { + swig_callbackOnResume(); + } +} + +void SwigDirector_WidgetImpl::OnResize(Dali::Window window) { + void * jwindow ; + + if (!swig_callbackOnResize) { + Dali::Internal::Adaptor::Widget::OnResize(window); + return; + } else { + jwindow = (void *)new Dali::Window((const Dali::Window &)window); + swig_callbackOnResize(jwindow); + } +} + +void SwigDirector_WidgetImpl::OnUpdate(std::string const &contentInfo, int force) { + char * jcontentInfo = 0 ; + int jforce ; + + if (!swig_callbackOnUpdate) { + Dali::Internal::Adaptor::Widget::OnUpdate(contentInfo,force); + return; + } else { + jcontentInfo = SWIG_csharp_string_callback((&contentInfo)->c_str()); + jforce = force; + swig_callbackOnUpdate(jcontentInfo, jforce); + } +} + +void SwigDirector_WidgetImpl::SignalConnected(Dali::SlotObserver *slotObserver, Dali::CallbackBase *callback) { + void * jslotObserver = 0 ; + void * jcallback = 0 ; + + if (!swig_callbackSignalConnected) { + Dali::Internal::Adaptor::Widget::SignalConnected(slotObserver,callback); + return; + } else { + jslotObserver = (void *) slotObserver; + jcallback = (void *) callback; + swig_callbackSignalConnected(jslotObserver, jcallback); + } +} + +void SwigDirector_WidgetImpl::SignalDisconnected(Dali::SlotObserver *slotObserver, Dali::CallbackBase *callback) { + void * jslotObserver = 0 ; + void * jcallback = 0 ; + + if (!swig_callbackSignalDisconnected) { + Dali::Internal::Adaptor::Widget::SignalDisconnected(slotObserver,callback); + return; + } else { + jslotObserver = (void *) slotObserver; + jcallback = (void *) callback; + swig_callbackSignalDisconnected(jslotObserver, jcallback); + } +} + +void SwigDirector_WidgetImpl::swig_connect_director(SWIG_Callback0_t callbackOnCreate, SWIG_Callback1_t callbackOnTerminate, SWIG_Callback2_t callbackOnPause, SWIG_Callback3_t callbackOnResume, SWIG_Callback4_t callbackOnResize, SWIG_Callback5_t callbackOnUpdate, SWIG_Callback6_t callbackSignalConnected, SWIG_Callback7_t callbackSignalDisconnected) { + + swig_callbackOnCreate = callbackOnCreate; + swig_callbackOnTerminate = callbackOnTerminate; + swig_callbackOnPause = callbackOnPause; + swig_callbackOnResume = callbackOnResume; + swig_callbackOnResize = callbackOnResize; + swig_callbackOnUpdate = callbackOnUpdate; + swig_callbackSignalConnected = callbackSignalConnected; + swig_callbackSignalDisconnected = callbackSignalDisconnected; +} + +void SwigDirector_WidgetImpl::swig_init_callbacks() { + swig_callbackOnCreate = 0; + swig_callbackOnTerminate = 0; + swig_callbackOnPause = 0; + swig_callbackOnResume = 0; + swig_callbackOnResize = 0; + swig_callbackOnUpdate = 0; + swig_callbackSignalConnected = 0; + swig_callbackSignalDisconnected = 0; +} + + SwigDirector_ViewImpl::SwigDirector_ViewImpl(Dali::Toolkit::Internal::Control::ControlBehaviour behaviourFlags) : Dali::Toolkit::Internal::Control(behaviourFlags), Swig::Director() { swig_init_callbacks(); } @@ -31173,12 +31307,21 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Key_keyPressedName_set(void * jarg1, cha SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_keyPressedName_get(void * jarg1) { char * jresult ; - Dali::KeyEvent *arg1 = (Dali::KeyEvent *) 0 ; - std::string *result = 0 ; - arg1 = (Dali::KeyEvent *)jarg1; - result = (std::string *) & ((arg1)->keyPressedName); - jresult = SWIG_csharp_string_callback(result->c_str()); + if( jarg1 == NULL ) + { + jresult = SWIG_csharp_string_callback( "" ); + } + else + { + Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; + std::string *result = 0; + + arg1 = ( Dali::KeyEvent * )jarg1; + result = ( std::string * ) & ( ( arg1 )->keyPressedName ); + jresult = SWIG_csharp_string_callback( result->c_str() ); + } + return jresult; } @@ -31203,12 +31346,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Key_keyPressed_set(void * jarg1, char * SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_Key_keyPressed_get(void * jarg1) { char * jresult ; - Dali::KeyEvent *arg1 = (Dali::KeyEvent *) 0 ; - std::string *result = 0 ; + if( NULL == jarg1 ) + { + jresult = SWIG_csharp_string_callback( "" ); + } + else + { + Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; + std::string *result = 0; - arg1 = (Dali::KeyEvent *)jarg1; - result = (std::string *) & ((arg1)->keyPressed); - jresult = SWIG_csharp_string_callback(result->c_str()); + arg1 = ( Dali::KeyEvent * )jarg1; + result = ( std::string * ) & ( ( arg1 )->keyPressed ); + jresult = SWIG_csharp_string_callback( result->c_str() ); + } return jresult; } @@ -31225,12 +31375,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Key_keyCode_set(void * jarg1, int jarg2) SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Key_keyCode_get(void * jarg1) { int jresult ; - Dali::KeyEvent *arg1 = (Dali::KeyEvent *) 0 ; - int result; + if( NULL == jarg1 ) + { + jresult = -1; + } + else + { + Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; + int result; - arg1 = (Dali::KeyEvent *)jarg1; - result = (int) ((arg1)->keyCode); - jresult = result; + arg1 = ( Dali::KeyEvent * )jarg1; + result = (int)( ( arg1 )->keyCode ); + jresult = result; + } return jresult; } @@ -31247,12 +31404,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Key_keyModifier_set(void * jarg1, int ja SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Key_keyModifier_get(void * jarg1) { int jresult ; - Dali::KeyEvent *arg1 = (Dali::KeyEvent *) 0 ; - int result; + if( jarg1 == NULL ) + { + jresult = -1; + } + else + { + Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; + int result; - arg1 = (Dali::KeyEvent *)jarg1; - result = (int) ((arg1)->keyModifier); - jresult = result; + arg1 = ( Dali::KeyEvent * )jarg1; + result = (int)( ( arg1 )->keyModifier ); + jresult = result; + } return jresult; } @@ -31269,12 +31433,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Key_time_set(void * jarg1, unsigned long SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_Key_time_get(void * jarg1) { unsigned long jresult ; - Dali::KeyEvent *arg1 = (Dali::KeyEvent *) 0 ; - unsigned long result; + if( jarg1 == NULL ) + { + jresult = 0; + } + else + { + Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; + unsigned long result; - arg1 = (Dali::KeyEvent *)jarg1; - result = (unsigned long) ((arg1)->time); - jresult = (unsigned long)result; + arg1 = ( Dali::KeyEvent * )jarg1; + result = (unsigned long)( ( arg1 )->time ); + jresult = (unsigned long)result; + } return jresult; } @@ -31291,227 +31462,234 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Key_state_set(void * jarg1, int jarg2) { SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Key_state_get(void * jarg1) { int jresult ; - Dali::KeyEvent *arg1 = (Dali::KeyEvent *) 0 ; - Dali::KeyEvent::State result; - - arg1 = (Dali::KeyEvent *)jarg1; - result = (Dali::KeyEvent::State) ((arg1)->state); - jresult = (int)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LongPressGestureDetector__SWIG_0() { - void * jresult ; - Dali::LongPressGestureDetector *result = 0 ; - - { - try { - result = (Dali::LongPressGestureDetector *)new Dali::LongPressGestureDetector(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_New__SWIG_0() { - void * jresult ; - Dali::LongPressGestureDetector result; - - { - try { - result = Dali::LongPressGestureDetector::New(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_New__SWIG_1(unsigned int jarg1) { - void * jresult ; - unsigned int arg1 ; - Dali::LongPressGestureDetector result; - - arg1 = (unsigned int)jarg1; + if( jarg1 == NULL ) { - try { - result = Dali::LongPressGestureDetector::New(arg1); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } + jresult = -1; } - - jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_New__SWIG_2(unsigned int jarg1, unsigned int jarg2) { - void * jresult ; - unsigned int arg1 ; - unsigned int arg2 ; - Dali::LongPressGestureDetector result; - - arg1 = (unsigned int)jarg1; - arg2 = (unsigned int)jarg2; + else { - try { - result = Dali::LongPressGestureDetector::New(arg1,arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } + Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; + Dali::KeyEvent::State result; - jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_DownCast(void * jarg1) { - void * jresult ; - Dali::BaseHandle arg1 ; - Dali::BaseHandle *argp1 ; - Dali::LongPressGestureDetector result; - - argp1 = (Dali::BaseHandle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); - return 0; + arg1 = ( Dali::KeyEvent * )jarg1; + result = ( Dali::KeyEvent::State ) ( ( arg1 )->state ); + jresult = (int)result; } - arg1 = *argp1; - { - try { - result = Dali::LongPressGestureDetector::DownCast(arg1); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LongPressGestureDetector(void * jarg1) { - Dali::LongPressGestureDetector *arg1 = (Dali::LongPressGestureDetector *) 0 ; - - arg1 = (Dali::LongPressGestureDetector *)jarg1; - { - try { - delete arg1; - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LongPressGestureDetector__SWIG_1(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LongPressGestureDetector__SWIG_0() { void * jresult ; - Dali::LongPressGestureDetector *arg1 = 0 ; Dali::LongPressGestureDetector *result = 0 ; - arg1 = (Dali::LongPressGestureDetector *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::LongPressGestureDetector const & type is null", 0); - return 0; - } { try { - result = (Dali::LongPressGestureDetector *)new Dali::LongPressGestureDetector((Dali::LongPressGestureDetector const &)*arg1); + result = (Dali::LongPressGestureDetector *)new Dali::LongPressGestureDetector(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_New__SWIG_0() { + void * jresult ; + Dali::LongPressGestureDetector result; + + { + try { + result = Dali::LongPressGestureDetector::New(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_New__SWIG_1(unsigned int jarg1) { + void * jresult ; + unsigned int arg1 ; + Dali::LongPressGestureDetector result; + + arg1 = (unsigned int)jarg1; + { + try { + result = Dali::LongPressGestureDetector::New(arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_New__SWIG_2(unsigned int jarg1, unsigned int jarg2) { + void * jresult ; + unsigned int arg1 ; + unsigned int arg2 ; + Dali::LongPressGestureDetector result; + + arg1 = (unsigned int)jarg1; + arg2 = (unsigned int)jarg2; + { + try { + result = Dali::LongPressGestureDetector::New(arg1,arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGestureDetector_DownCast(void * jarg1) { + void * jresult ; + Dali::BaseHandle arg1 ; + Dali::BaseHandle *argp1 ; + Dali::LongPressGestureDetector result; + + argp1 = (Dali::BaseHandle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); + return 0; + } + arg1 = *argp1; + { + try { + result = Dali::LongPressGestureDetector::DownCast(arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::LongPressGestureDetector((const Dali::LongPressGestureDetector &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LongPressGestureDetector(void * jarg1) { + Dali::LongPressGestureDetector *arg1 = (Dali::LongPressGestureDetector *) 0 ; + + arg1 = (Dali::LongPressGestureDetector *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LongPressGestureDetector__SWIG_1(void * jarg1) { + void * jresult ; + Dali::LongPressGestureDetector *arg1 = 0 ; + Dali::LongPressGestureDetector *result = 0 ; + + arg1 = (Dali::LongPressGestureDetector *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::LongPressGestureDetector const & type is null", 0); + return 0; + } + { + try { + result = (Dali::LongPressGestureDetector *)new Dali::LongPressGestureDetector((Dali::LongPressGestureDetector const &)*arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -84161,9 +84339,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_0() { { try { result = Dali::Toolkit::TextLabel::New(); - - // default behaviour of NUI TextLabel - result.SetProperty( Dali::Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT, Dali::Toolkit::DevelText::VerticalLineAlignment::MIDDLE ); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -84202,9 +84377,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * jarg1) { { try { result = Dali::Toolkit::TextLabel::New((std::string const &)*arg1); - - // default behaviour of NUI TextLabel - result.SetProperty( Dali::Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT, Dali::Toolkit::DevelText::VerticalLineAlignment::MIDDLE ); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -101066,26 +101238,24 @@ SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_AsyncImageLoader_SWIGUpcas return (Dali::BaseHandle *)jarg1; } - -//for PixelBuffer and ImageLoading - -SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_PixelBuffer_SWIGUpcast(Dali::Devel::PixelBuffer *jarg1) { +/* + * Widget binding + */ +SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Widget_SWIGUpcast(Dali::Widget *jarg1) { return (Dali::BaseHandle *)jarg1; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_New(unsigned int jarg1, unsigned int jarg2, int jarg3) { +SWIGEXPORT Dali::BaseObject * SWIGSTDCALL CSharp_Dali_WidgetImpl_SWIGUpcast(Dali::Internal::Adaptor::Widget *jarg1) { + return (Dali::BaseObject *)jarg1; +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Widget_New__SWIG_0() { void * jresult ; - unsigned int arg1 ; - unsigned int arg2 ; - Dali::Pixel::Format arg3 ; - Dali::Devel::PixelBuffer result; + Dali::Widget result; - arg1 = (unsigned int)jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (Dali::Pixel::Format)jarg3; { try { - result = Dali::Devel::PixelBuffer::New(arg1,arg2,arg3); + result = Dali::Widget::New(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -101100,18 +101270,25 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_New(unsigned int jarg1, un }; } } - jresult = new Dali::Devel::PixelBuffer((const Dali::Devel::PixelBuffer &)result); + jresult = new Dali::Widget((const Dali::Widget &)result); return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_0() { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Widget_New__SWIG_1(void * jarg1) { void * jresult ; - Dali::Devel::PixelBuffer *result = 0 ; + Dali::Internal::Adaptor::Widget *arg1 = 0 ; + Dali::Widget result; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Internal::Adaptor::Widget & type is null", 0); + return 0; + } { try { - result = (Dali::Devel::PixelBuffer *)new Dali::Devel::PixelBuffer(); + jresult = new Dali::Widget(arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -101126,48 +101303,51 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_0() { }; } } - jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_PixelBuffer(void * jarg1) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Widget() { + void * jresult ; + Dali::Widget *result = 0 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; { try { - delete arg1; + result = (Dali::Widget *)new Dali::Widget(); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }; } } + jresult = (void *)result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_1(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Widget_Assign(void * jarg1, void * jarg2) { void * jresult ; - Dali::Devel::PixelBuffer *arg1 = 0 ; - Dali::Devel::PixelBuffer *result = 0 ; + Dali::Widget *arg1 = (Dali::Widget *) 0 ; + Dali::Widget *arg2 = 0 ; + Dali::Widget *result = 0 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Devel::PixelBuffer const & type is null", 0); + arg1 = (Dali::Widget *)jarg1; + arg2 = (Dali::Widget *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Widget const & type is null", 0); return 0; } { try { - result = (Dali::Devel::PixelBuffer *)new Dali::Devel::PixelBuffer((Dali::Devel::PixelBuffer const &)*arg1); + result = (Dali::Widget *) &(arg1)->operator =((Dali::Widget const &)*arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -101187,53 +101367,36 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_1(void * jarg1) } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_Assign(void * jarg1, void * jarg2) { - void * jresult ; - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - Dali::Devel::PixelBuffer *arg2 = 0 ; - Dali::Devel::PixelBuffer *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Widget(void * jarg1) { + Dali::Widget *arg1 = (Dali::Widget *) 0 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - arg2 = (Dali::Devel::PixelBuffer *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Devel::PixelBuffer const & type is null", 0); - return 0; - } + arg1 = (Dali::Widget *)jarg1; { try { - result = (Dali::Devel::PixelBuffer *) &(arg1)->operator =((Dali::Devel::PixelBuffer const &)*arg2); + delete arg1; } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - jresult = (void *)result; - return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_Convert(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetImpl_New() { void * jresult ; - Dali::Devel::PixelBuffer *arg1 = 0 ; - Dali::PixelData result; - - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Devel::PixelBuffer & type is null", 0); - return 0; - } + SwigDirector_WidgetImpl* result; { try { - result = Dali::Devel::PixelBuffer::Convert(*arg1); + result = new SwigDirector_WidgetImpl(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -101248,170 +101411,183 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_Convert(void * jarg1) { }; } } - jresult = new Dali::PixelData((const Dali::PixelData &)result); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_CreatePixelData(void * jarg1) { - void * jresult ; - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - Dali::PixelData result; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnCreate(void * jarg1, char * jarg2, void * jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + std::string *arg2 = 0 ; + Dali::Window arg3 ; + Dali::Window *argp3 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + argp3 = (Dali::Window *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0); + return ; + } + arg3 = *argp3; { try { - result = ((Dali::Devel::PixelBuffer const *)arg1)->CreatePixelData(); + (arg1)->OnCreate((std::string const &)*arg2,arg3); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - jresult = new Dali::PixelData((const Dali::PixelData &)result); - return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnCreateSwigExplicitWidgetImpl(void * jarg1, char * jarg2, void * jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + std::string *arg2 = 0 ; + Dali::Window arg3 ; + Dali::Window *argp3 ; -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_GetBuffer(void * jarg1) { - void * jresult ; - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - unsigned char *result = 0 ; - - arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + argp3 = (Dali::Window *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0); + return ; + } + arg3 = *argp3; { try { - result = (unsigned char *)(arg1)->GetBuffer(); + (arg1)->Dali::Internal::Adaptor::Widget::OnCreate((std::string const &)*arg2,arg3); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - jresult = (void *)result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_PixelBuffer_GetWidth(void * jarg1) { - unsigned int jresult ; - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - unsigned int result; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnTerminate(void * jarg1, char * jarg2, int jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + std::string *arg2 = 0 ; + Dali::Widget::Termination arg3 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (Dali::Widget::Termination)jarg3; { try { - result = (unsigned int)((Dali::Devel::PixelBuffer const *)arg1)->GetWidth(); + (arg1)->OnTerminate((std::string const &)*arg2,arg3); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - jresult = result; - return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnTerminateSwigExplicitWidgetImpl(void * jarg1, char * jarg2, int jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + std::string *arg2 = 0 ; + Dali::Widget::Termination arg3 ; -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_PixelBuffer_GetHeight(void * jarg1) { - unsigned int jresult ; - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - unsigned int result; - - arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (Dali::Widget::Termination)jarg3; { try { - result = (unsigned int)((Dali::Devel::PixelBuffer const *)arg1)->GetHeight(); + (arg1)->Dali::Internal::Adaptor::Widget::OnTerminate((std::string const &)*arg2,arg3); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - jresult = result; - return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_Dali_PixelBuffer_GetPixelFormat(void * jarg1) { - int jresult ; - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - Dali::Pixel::Format result; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnPause(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; { try { - result = (Dali::Pixel::Format)((Dali::Devel::PixelBuffer const *)arg1)->GetPixelFormat(); + (arg1)->OnPause(); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - jresult = (int)result; - return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnPauseSwigExplicitWidgetImpl(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_0(void * jarg1, void * jarg2, float jarg3, unsigned int jarg4) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - Dali::Devel::PixelBuffer arg2 ; - float arg3 ; - bool arg4 ; - Dali::Devel::PixelBuffer *argp2 ; - - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - argp2 = (Dali::Devel::PixelBuffer *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Devel::PixelBuffer", 0); - return ; - } - arg2 = *argp2; - arg3 = (float)jarg3; - arg4 = jarg4 ? true : false; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; { try { - (arg1)->ApplyMask(arg2,arg3,arg4); + (arg1)->Dali::Internal::Adaptor::Widget::OnPause(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -101429,23 +101605,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_0(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_1(void * jarg1, void * jarg2, float jarg3) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - Dali::Devel::PixelBuffer arg2 ; - float arg3 ; - Dali::Devel::PixelBuffer *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnResume(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - argp2 = (Dali::Devel::PixelBuffer *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Devel::PixelBuffer", 0); - return ; - } - arg2 = *argp2; - arg3 = (float)jarg3; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; { try { - (arg1)->ApplyMask(arg2,arg3); + (arg1)->OnResume(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -101463,21 +101629,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_1(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_2(void * jarg1, void * jarg2) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - Dali::Devel::PixelBuffer arg2 ; - Dali::Devel::PixelBuffer *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnResumeSwigExplicitWidgetImpl(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - argp2 = (Dali::Devel::PixelBuffer *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Devel::PixelBuffer", 0); - return ; - } - arg2 = *argp2; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; { try { - (arg1)->ApplyMask(arg2); + (arg1)->Dali::Internal::Adaptor::Widget::OnResume(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -101495,15 +101653,21 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_2(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyGaussianBlur(void * jarg1, float jarg2) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - float arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnResize(void * jarg1, void * jarg2) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::Window arg2 ; + Dali::Window *argp2 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - arg2 = (float)jarg2; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + argp2 = (Dali::Window *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0); + return ; + } + arg2 = *argp2; { try { - (arg1)->ApplyGaussianBlur(arg2); + (arg1)->OnResize(arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -101520,22 +101684,21 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyGaussianBlur(void * jar } } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnResizeSwigExplicitWidgetImpl(void * jarg1, void * jarg2) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::Window arg2 ; + Dali::Window *argp2 ; -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_Crop(void * jarg1, unsigned short jarg2, unsigned short jarg3, unsigned short jarg4, unsigned short jarg5) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - uint16_t arg2 ; - uint16_t arg3 ; - uint16_t arg4 ; - uint16_t arg5 ; - - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - arg2 = (uint16_t)jarg2; - arg3 = (uint16_t)jarg3; - arg4 = (uint16_t)jarg4; - arg5 = (uint16_t)jarg5; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + argp2 = (Dali::Window *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0); + return ; + } + arg2 = *argp2; { try { - (arg1)->Crop(arg2,arg3,arg4,arg5); + (arg1)->Dali::Internal::Adaptor::Widget::OnResize(arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -101552,15 +101715,23 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_Crop(void * jarg1, unsigned } } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_GetMetadata(void * jarg1, void * jarg2) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - Dali::Property::Map *arg2 = (Dali::Property::Map *) 0 ; - arg1 = (Dali::Devel::PixelBuffer*)jarg1; - arg2 = (Dali::Property::Map*)jarg2; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnUpdate(void * jarg1, char * jarg2, int jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + std::string *arg2 = 0 ; + int arg3 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (int)jarg3; { try { - (arg1)->GetMetadata(*arg2); + (arg1)->OnUpdate((std::string const &)*arg2,arg3); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -101577,17 +101748,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_GetMetadata(void * jarg1, vo } } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_Resize(void * jarg1, unsigned short jarg2, unsigned short jarg3) { - Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; - uint16_t arg2 ; - uint16_t arg3 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_OnUpdateSwigExplicitWidgetImpl(void * jarg1, char * jarg2, int jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + std::string *arg2 = 0 ; + int arg3 ; - arg1 = (Dali::Devel::PixelBuffer *)jarg1; - arg2 = (uint16_t)jarg2; - arg3 = (uint16_t)jarg3; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (int)jarg3; { try { - (arg1)->Resize(arg2,arg3); + (arg1)->Dali::Internal::Adaptor::Widget::OnUpdate((std::string const &)*arg2,arg3); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -101605,34 +101781,1009 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_Resize(void * jarg1, unsigne } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_2(void * jarg1) { - void * jresult ; - Dali::Internal::Adaptor::PixelBuffer *arg1 = (Dali::Internal::Adaptor::PixelBuffer *) 0 ; - Dali::Devel::PixelBuffer *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_SignalConnected(void * jarg1, void * jarg2, void * jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::SlotObserver *arg2 = (Dali::SlotObserver *) 0 ; + Dali::CallbackBase *arg3 = (Dali::CallbackBase *) 0 ; - arg1 = (Dali::Internal::Adaptor::PixelBuffer *)jarg1; + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + arg2 = (Dali::SlotObserver *)jarg2; + arg3 = (Dali::CallbackBase *)jarg3; { try { - result = (Dali::Devel::PixelBuffer *)new Dali::Devel::PixelBuffer(arg1); + (arg1)->SignalConnected(arg2,arg3); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } - jresult = (void *)result; - return jresult; } - +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_SignalConnectedSwigExplicitWidgetImpl(void * jarg1, void * jarg2, void * jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::SlotObserver *arg2 = (Dali::SlotObserver *) 0 ; + Dali::CallbackBase *arg3 = (Dali::CallbackBase *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + arg2 = (Dali::SlotObserver *)jarg2; + arg3 = (Dali::CallbackBase *)jarg3; + { + try { + (arg1)->Dali::Internal::Adaptor::Widget::SignalConnected(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_SignalDisconnected(void * jarg1, void * jarg2, void * jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::SlotObserver *arg2 = (Dali::SlotObserver *) 0 ; + Dali::CallbackBase *arg3 = (Dali::CallbackBase *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + arg2 = (Dali::SlotObserver *)jarg2; + arg3 = (Dali::CallbackBase *)jarg3; + { + try { + (arg1)->SignalDisconnected(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_SignalDisconnectedSwigExplicitWidgetImpl(void * jarg1, void * jarg2, void * jarg3) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::SlotObserver *arg2 = (Dali::SlotObserver *) 0 ; + Dali::CallbackBase *arg3 = (Dali::CallbackBase *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + arg2 = (Dali::SlotObserver *)jarg2; + arg3 = (Dali::CallbackBase *)jarg3; + { + try { + (arg1)->Dali::Internal::Adaptor::Widget::SignalDisconnected(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_SetContentInfo(void * jarg1, char * jarg2) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + std::string *arg2 = 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + { + try { + (arg1)->SetContentInfo((std::string const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_SetImpl(void * jarg1, void * jarg2) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::Internal::Adaptor::Widget::Impl *arg2 = (Dali::Internal::Adaptor::Widget::Impl *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + arg2 = (Dali::Internal::Adaptor::Widget::Impl *)jarg2; + { + try { + (arg1)->SetImpl(arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetImpl_director_connect(void *objarg, SwigDirector_WidgetImpl::SWIG_Callback0_t callback0, SwigDirector_WidgetImpl::SWIG_Callback1_t callback1, SwigDirector_WidgetImpl::SWIG_Callback2_t callback2, SwigDirector_WidgetImpl::SWIG_Callback3_t callback3, SwigDirector_WidgetImpl::SWIG_Callback4_t callback4, SwigDirector_WidgetImpl::SWIG_Callback5_t callback5, SwigDirector_WidgetImpl::SWIG_Callback6_t callback6, SwigDirector_WidgetImpl::SWIG_Callback7_t callback7) { + + SwigDirector_WidgetImpl *director = static_cast(objarg); + if (director) { + director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5, callback6, callback7); + } +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Widget_GetImplementation__SWIG_0(void * jarg1) { + void * jresult ; + Dali::Widget *arg1 = 0 ; + SwigDirector_WidgetImpl *result = 0 ; + + arg1 = (Dali::Widget *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Widget & type is null", 0); + return 0; + } + { + try { + result = (SwigDirector_WidgetImpl *) &Dali::Internal::Adaptor::GetImplementation(*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetApplication_New(int jarg1, char * jarg2, char * jarg3) { + void * jresult ; + int *arg1 = (int *) 0 ; + char ***arg2 ; + std::string *arg3 = 0 ; + Dali::WidgetApplication result; + { + int index = 0; + int length = 0; + char *retPtr; + char *nextPtr; + argWidgetC = jarg1; + argWidgetV = new char*[jarg1 + 1]; + + retPtr = strtok_r( jarg2, " ", &nextPtr); + if( retPtr ) + { + length = strlen(retPtr); + } + argWidgetV[index] = new char[length + 1]; + if( retPtr ) + { + strncpy(argWidgetV[index], retPtr, length); + } + argWidgetV[index][length] = '\0'; + index++; + + while (index < jarg1) + { + length = 0; + retPtr = strtok_r(NULL, " ", &nextPtr); + if( retPtr ) + { + length = strlen(retPtr); + } + argWidgetV[index] = new char[length + 1]; + if( retPtr ) + { + strncpy(argWidgetV[index], retPtr, length); + } + argWidgetV[index][length] = '\0'; + index++; + } + + argWidgetV[jarg1] = NULL; + argWidgetC = jarg1; + + arg1 = &argWidgetC; + arg2 = &argWidgetV; + } + + if (!jarg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg3_str(jarg3); + arg3 = &arg3_str; + { + try { + result = Dali::WidgetApplication::New(arg1,arg2,(std::string const &)*arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::WidgetApplication((const Dali::WidgetApplication &)result); + + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetApplication__SWIG_0() { + void * jresult ; + Dali::WidgetApplication *result = 0 ; + + { + try { + result = (Dali::WidgetApplication *)new Dali::WidgetApplication(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetApplication__SWIG_1(void * jarg1) { + void * jresult ; + Dali::WidgetApplication *arg1 = 0 ; + Dali::WidgetApplication *result = 0 ; + + arg1 = (Dali::WidgetApplication *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetApplication const & type is null", 0); + return 0; + } + { + try { + result = (Dali::WidgetApplication *)new Dali::WidgetApplication((Dali::WidgetApplication const &)*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetApplication_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::WidgetApplication *arg1 = (Dali::WidgetApplication *) 0 ; + Dali::WidgetApplication *arg2 = 0 ; + Dali::WidgetApplication *result = 0 ; + + arg1 = (Dali::WidgetApplication *)jarg1; + arg2 = (Dali::WidgetApplication *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetApplication const & type is null", 0); + return 0; + } + { + try { + result = (Dali::WidgetApplication *) &(arg1)->operator =((Dali::WidgetApplication const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetApplication(void * jarg1) { + Dali::WidgetApplication *arg1 = (Dali::WidgetApplication *) 0 ; + + arg1 = (Dali::WidgetApplication *)jarg1; + { + try { + delete arg1; + if( argWidgetV ) + { + // free string data + for( int i=0; i < argWidgetC+1; i++) + { + delete [] argWidgetV[i]; + } + delete [] argWidgetV; + } + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +typedef Dali::Widget*(SWIGSTDCALL *CSharpCreateWidgetFunction)(const std::string&); +CSharpCreateWidgetFunction _CSharpCreateWidgetFunction = NULL; + +static Dali::Widget SWIGSTDCALL WidgetFactoryFunction( const std::string& widgetName ) +{ + Widget* widget = _CSharpCreateWidgetFunction( widgetName.c_str() ); + return *widget; +} + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetApplication_RegisterWidgetCreatingFunction(void * jarg1, char** jarg2, void * jarg3) { + Dali::WidgetApplication *arg1 = (Dali::WidgetApplication *) 0 ; + std::string *arg2 = 0 ; + + arg1 = (Dali::WidgetApplication *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(*jarg2); + arg2 = &arg2_str; + + if(!_CSharpCreateWidgetFunction) + { + _CSharpCreateWidgetFunction = (Dali::Widget*(*)(const std::string&))jarg3; + } + + { + try { + (arg1)->RegisterWidgetCreatingFunction((std::string const &)*arg2, WidgetFactoryFunction); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + + //Typemap argout in c++ file. + //This will convert c++ string to c# string + *jarg2 = SWIG_csharp_string_callback(arg2->c_str()); +} + + +//for PixelBuffer and ImageLoading + +SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_PixelBuffer_SWIGUpcast(Dali::Devel::PixelBuffer *jarg1) { + return (Dali::BaseHandle *)jarg1; +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_New(unsigned int jarg1, unsigned int jarg2, int jarg3) { + void * jresult ; + unsigned int arg1 ; + unsigned int arg2 ; + Dali::Pixel::Format arg3 ; + Dali::Devel::PixelBuffer result; + + arg1 = (unsigned int)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (Dali::Pixel::Format)jarg3; + { + try { + result = Dali::Devel::PixelBuffer::New(arg1,arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::Devel::PixelBuffer((const Dali::Devel::PixelBuffer &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_0() { + void * jresult ; + Dali::Devel::PixelBuffer *result = 0 ; + + { + try { + result = (Dali::Devel::PixelBuffer *)new Dali::Devel::PixelBuffer(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_PixelBuffer(void * jarg1) { + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_1(void * jarg1) { + void * jresult ; + Dali::Devel::PixelBuffer *arg1 = 0 ; + Dali::Devel::PixelBuffer *result = 0 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Devel::PixelBuffer const & type is null", 0); + return 0; + } + { + try { + result = (Dali::Devel::PixelBuffer *)new Dali::Devel::PixelBuffer((Dali::Devel::PixelBuffer const &)*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + Dali::Devel::PixelBuffer *arg2 = 0 ; + Dali::Devel::PixelBuffer *result = 0 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg2 = (Dali::Devel::PixelBuffer *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Devel::PixelBuffer const & type is null", 0); + return 0; + } + { + try { + result = (Dali::Devel::PixelBuffer *) &(arg1)->operator =((Dali::Devel::PixelBuffer const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_Convert(void * jarg1) { + void * jresult ; + Dali::Devel::PixelBuffer *arg1 = 0 ; + Dali::PixelData result; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Devel::PixelBuffer & type is null", 0); + return 0; + } + { + try { + result = Dali::Devel::PixelBuffer::Convert(*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::PixelData((const Dali::PixelData &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_CreatePixelData(void * jarg1) { + void * jresult ; + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + Dali::PixelData result; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + { + try { + result = ((Dali::Devel::PixelBuffer const *)arg1)->CreatePixelData(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::PixelData((const Dali::PixelData &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelBuffer_GetBuffer(void * jarg1) { + void * jresult ; + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + unsigned char *result = 0 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + { + try { + result = (unsigned char *)(arg1)->GetBuffer(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_PixelBuffer_GetWidth(void * jarg1) { + unsigned int jresult ; + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + unsigned int result; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + { + try { + result = (unsigned int)((Dali::Devel::PixelBuffer const *)arg1)->GetWidth(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_PixelBuffer_GetHeight(void * jarg1) { + unsigned int jresult ; + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + unsigned int result; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + { + try { + result = (unsigned int)((Dali::Devel::PixelBuffer const *)arg1)->GetHeight(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_PixelBuffer_GetPixelFormat(void * jarg1) { + int jresult ; + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + Dali::Pixel::Format result; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + { + try { + result = (Dali::Pixel::Format)((Dali::Devel::PixelBuffer const *)arg1)->GetPixelFormat(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_0(void * jarg1, void * jarg2, float jarg3, unsigned int jarg4) { + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + Dali::Devel::PixelBuffer arg2 ; + float arg3 ; + bool arg4 ; + Dali::Devel::PixelBuffer *argp2 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + argp2 = (Dali::Devel::PixelBuffer *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Devel::PixelBuffer", 0); + return ; + } + arg2 = *argp2; + arg3 = (float)jarg3; + arg4 = jarg4 ? true : false; + { + try { + (arg1)->ApplyMask(arg2,arg3,arg4); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_1(void * jarg1, void * jarg2, float jarg3) { + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + Dali::Devel::PixelBuffer arg2 ; + float arg3 ; + Dali::Devel::PixelBuffer *argp2 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + argp2 = (Dali::Devel::PixelBuffer *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Devel::PixelBuffer", 0); + return ; + } + arg2 = *argp2; + arg3 = (float)jarg3; + { + try { + (arg1)->ApplyMask(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyMask__SWIG_2(void * jarg1, void * jarg2) { + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + Dali::Devel::PixelBuffer arg2 ; + Dali::Devel::PixelBuffer *argp2 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + argp2 = (Dali::Devel::PixelBuffer *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Devel::PixelBuffer", 0); + return ; + } + arg2 = *argp2; + { + try { + (arg1)->ApplyMask(arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_ApplyGaussianBlur(void * jarg1, float jarg2) { + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + float arg2 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg2 = (float)jarg2; + { + try { + (arg1)->ApplyGaussianBlur(arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_Crop(void * jarg1, unsigned short jarg2, unsigned short jarg3, unsigned short jarg4, unsigned short jarg5) { + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + uint16_t arg2 ; + uint16_t arg3 ; + uint16_t arg4 ; + uint16_t arg5 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg2 = (uint16_t)jarg2; + arg3 = (uint16_t)jarg3; + arg4 = (uint16_t)jarg4; + arg5 = (uint16_t)jarg5; + { + try { + (arg1)->Crop(arg2,arg3,arg4,arg5); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_PixelBuffer_Resize(void * jarg1, unsigned short jarg2, unsigned short jarg3) { + Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; + uint16_t arg2 ; + uint16_t arg3 ; + + arg1 = (Dali::Devel::PixelBuffer *)jarg1; + arg2 = (uint16_t)jarg2; + arg3 = (uint16_t)jarg3; + { + try { + (arg1)->Resize(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PixelBuffer__SWIG_2(void * jarg1) { + void * jresult ; + Dali::Internal::Adaptor::PixelBuffer *arg1 = (Dali::Internal::Adaptor::PixelBuffer *) 0 ; + Dali::Devel::PixelBuffer *result = 0 ; + + arg1 = (Dali::Internal::Adaptor::PixelBuffer *)jarg1; + { + try { + result = (Dali::Devel::PixelBuffer *)new Dali::Devel::PixelBuffer(arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LoadImageFromFile__SWIG_0(char * jarg1, void * jarg2, int jarg3, int jarg4, unsigned int jarg5) { void * jresult ; std::string *arg1 = 0 ; @@ -102328,3 +103479,4 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_GetMaxTextureSize() { #ifdef __cplusplus } #endif + diff --git a/dali-csharp-binder/src/dali_wrap.h b/dali-csharp-binder/src/dali_wrap.h index 4f5a841..78f2878 100755 --- a/dali-csharp-binder/src/dali_wrap.h +++ b/dali-csharp-binder/src/dali_wrap.h @@ -11,6 +11,42 @@ #ifndef SWIG_NDalic_WRAP_H_ #define SWIG_NDalic_WRAP_H_ +class SwigDirector_WidgetImpl : public Dali::Internal::Adaptor::Widget, public Swig::Director { + +public: + SwigDirector_WidgetImpl(); + virtual ~SwigDirector_WidgetImpl(); + virtual void OnCreate(std::string const &contentInfo, Dali::Window window); + virtual void OnTerminate(std::string const &contentInfo, Dali::Widget::Termination type); + virtual void OnPause(); + virtual void OnResume(); + virtual void OnResize(Dali::Window window); + virtual void OnUpdate(std::string const &contentInfo, int force); + virtual void SignalConnected(Dali::SlotObserver *slotObserver, Dali::CallbackBase *callback); + virtual void SignalDisconnected(Dali::SlotObserver *slotObserver, Dali::CallbackBase *callback); + + typedef void (SWIGSTDCALL* SWIG_Callback0_t)(char *, void *); + typedef void (SWIGSTDCALL* SWIG_Callback1_t)(char *, int); + typedef void (SWIGSTDCALL* SWIG_Callback2_t)(); + typedef void (SWIGSTDCALL* SWIG_Callback3_t)(); + typedef void (SWIGSTDCALL* SWIG_Callback4_t)(void *); + typedef void (SWIGSTDCALL* SWIG_Callback5_t)(char *, int); + typedef void (SWIGSTDCALL* SWIG_Callback6_t)(void *, void *); + typedef void (SWIGSTDCALL* SWIG_Callback7_t)(void *, void *); + void swig_connect_director(SWIG_Callback0_t callbackOnCreate, SWIG_Callback1_t callbackOnTerminate, SWIG_Callback2_t callbackOnPause, SWIG_Callback3_t callbackOnResume, SWIG_Callback4_t callbackOnResize, SWIG_Callback5_t callbackOnUpdate, SWIG_Callback6_t callbackSignalConnected, SWIG_Callback7_t callbackSignalDisconnected); + +private: + SWIG_Callback0_t swig_callbackOnCreate; + SWIG_Callback1_t swig_callbackOnTerminate; + SWIG_Callback2_t swig_callbackOnPause; + SWIG_Callback3_t swig_callbackOnResume; + SWIG_Callback4_t swig_callbackOnResize; + SWIG_Callback5_t swig_callbackOnUpdate; + SWIG_Callback6_t swig_callbackSignalConnected; + SWIG_Callback7_t swig_callbackSignalDisconnected; + void swig_init_callbacks(); +}; + class SwigDirector_ViewImpl : public Dali::Toolkit::Internal::Control, public Swig::Director { public: diff --git a/dali-csharp-binder/src/devel-property-wrap.cpp b/dali-csharp-binder/src/devel-property-wrap.cpp index 6375d63..8f6279a 100755 --- a/dali-csharp-binder/src/devel-property-wrap.cpp +++ b/dali-csharp-binder/src/devel-property-wrap.cpp @@ -467,3 +467,4 @@ SWIGEXPORT int SWIGSTDCALL CSharp_ImageView_IMAGE_VISUAL_ACTION_STOP_get() #ifdef __cplusplus } #endif + diff --git a/dali-csharp-binder/src/imf-manager.cpp b/dali-csharp-binder/src/imf-manager.cpp index aa681c6..96cec8d 100755 --- a/dali-csharp-binder/src/imf-manager.cpp +++ b/dali-csharp-binder/src/imf-manager.cpp @@ -465,7 +465,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ImfManager_Finalize(void * jarg1) { arg1 = (Dali::ImfManager *)jarg1; { try { - (arg1)->Finalize(); +// (arg1)->Finalize(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; diff --git a/dali-csharp-binder/src/text-field.cpp b/dali-csharp-binder/src/text-field.cpp index b29fa2f..208e9be 100755 --- a/dali-csharp-binder/src/text-field.cpp +++ b/dali-csharp-binder/src/text-field.cpp @@ -1215,6 +1215,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_TextField_Property_ENABLE_SHIFT_SELECTION_get( return (int)Dali::Toolkit::DevelTextField::Property::ENABLE_SHIFT_SELECTION; } + #ifdef __cplusplus } #endif diff --git a/dali-csharp-binder/src/version-check.cpp b/dali-csharp-binder/src/version-check.cpp index 0f95a80..61d9735 100755 --- a/dali-csharp-binder/src/version-check.cpp +++ b/dali-csharp-binder/src/version-check.cpp @@ -43,6 +43,82 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_NativeVersionCheck(int * ver1, int * ver return true; } +SWIGEXPORT bool SWIGSTDCALL CSharp_NUI_InternalAPIVersionCheck(int * version, int * reserved1, int * reserved2 ) +{ + try + { + if(Dali::CORE_MAJOR_VERSION == 1 && Dali::CORE_MINOR_VERSION == 2) + { + //by dali_1.2.85, nui_api_internal_version is set as 400 + if(Dali::CORE_MICRO_VERSION <= 85) + { + *version = 400; + *reserved1 = 0; + *reserved2 = 0; + return true; + } + //from dali_1.2.86, nui_api_internal_version is set as 401 + else if(Dali::CORE_MICRO_VERSION == 86) + { + *version = 401; + *reserved1 = 0; + *reserved2 = 0; + return true; + } + //gotten wrong native wrong version + else + { + *version = Dali::CORE_MAJOR_VERSION; + *reserved1 = Dali::CORE_MINOR_VERSION; + *reserved2 = Dali::CORE_MICRO_VERSION; + return false; + } + } + else if(Dali::CORE_MAJOR_VERSION == 1 && Dali::CORE_MINOR_VERSION == 3) + { + //nui_api_internal_version is set as 500 + if(Dali::CORE_MICRO_VERSION <= 99) + { + *version = 500; + *reserved1 = 0; + *reserved2 = 0; + return true; + } + else + { + *version = Dali::CORE_MAJOR_VERSION; + *reserved1 = Dali::CORE_MINOR_VERSION; + *reserved2 = Dali::CORE_MICRO_VERSION; + return false; + } + } + //something wrong + else + { + *version = Dali::CORE_MAJOR_VERSION; + *reserved1 = Dali::CORE_MINOR_VERSION; + *reserved2 = Dali::CORE_MICRO_VERSION; + return false; + } + } + catch (std::out_of_range& e) + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); + return false; + } + catch (std::exception& e) + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); + return false; + } + catch (...) + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); + return false; + } + return false; +} + #ifdef __cplusplus } #endif diff --git a/dali-csharp-binder/src/web-view-lite.cpp b/dali-csharp-binder/src/web-view-lite.cpp new file mode 100755 index 0000000..7fecbc7 --- /dev/null +++ b/dali-csharp-binder/src/web-view-lite.cpp @@ -0,0 +1,620 @@ +/** Copyright (c) 2017 Samsung Electronics Co., Ltd. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +#ifndef CSHARP_WEB_VIEW_LITE +#define CSHARP_WEB_VIEW_LITE +#endif + +#include "common.h" + +#include + +SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Empty(Dali::Signal< void(Dali::Toolkit::WebViewLite &) > const *self){ + return self->Empty(); +} +SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__GetConnectionCount(Dali::Signal< void(Dali::Toolkit::WebViewLite &) > const *self){ + return self->GetConnectionCount(); +} +SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Connect(Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *self, void(*func)(Dali::Toolkit::WebViewLite &)){ + self->Connect(func); +} +SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Disconnect(Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *self, void(*func)(Dali::Toolkit::WebViewLite &)){ + self->Disconnect(func); +} +SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Emit(Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *self, Dali::Toolkit::WebViewLite &arg){ + self->Emit(arg); +} + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebViewLite_New() { + void * jresult ; + Dali::Toolkit::WebViewLite result; + + { + try { + result = Dali::Toolkit::WebViewLite::New(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::Toolkit::WebViewLite((const Dali::Toolkit::WebViewLite &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewLite__SWIG_0() { + void * jresult ; + Dali::Toolkit::WebViewLite *result = 0 ; + + { + try { + result = (Dali::Toolkit::WebViewLite *)new Dali::Toolkit::WebViewLite(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WebViewLite(void * jarg1) { + Dali::Toolkit::WebViewLite *arg1 = (Dali::Toolkit::WebViewLite *) 0 ; + + arg1 = (Dali::Toolkit::WebViewLite *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewLite__SWIG_1(void * jarg1) { + void * jresult ; + Dali::Toolkit::WebViewLite *arg1 = 0 ; + Dali::Toolkit::WebViewLite *result = 0 ; + + arg1 = (Dali::Toolkit::WebViewLite *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::WebViewLite const & type is null", 0); + return 0; + } + { + try { + result = (Dali::Toolkit::WebViewLite *)new Dali::Toolkit::WebViewLite((Dali::Toolkit::WebViewLite const &)*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebViewLite_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::Toolkit::WebViewLite *arg1 = (Dali::Toolkit::WebViewLite *) 0 ; + Dali::Toolkit::WebViewLite *arg2 = 0 ; + Dali::Toolkit::WebViewLite *result = 0 ; + + arg1 = (Dali::Toolkit::WebViewLite *)jarg1; + arg2 = (Dali::Toolkit::WebViewLite *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::WebViewLite const & type is null", 0); + return 0; + } + { + try { + result = (Dali::Toolkit::WebViewLite *) &(arg1)->operator =((Dali::Toolkit::WebViewLite const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebViewLite_DownCast(void * jarg1) { + void * jresult ; + Dali::BaseHandle arg1 ; + Dali::BaseHandle *argp1 ; + Dali::Toolkit::WebViewLite result; + + argp1 = (Dali::BaseHandle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); + return 0; + } + arg1 = *argp1; + { + try { + result = Dali::Toolkit::WebViewLite::DownCast(arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::Toolkit::WebViewLite((const Dali::Toolkit::WebViewLite &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewLite_CreateInstance(void * jarg1, int jarg2, int jarg3, int jarg4, int jarg5, char * jarg6, char * jarg7) { + Dali::Toolkit::WebViewLite *arg1 = (Dali::Toolkit::WebViewLite *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + int arg5 ; + std::string *arg6 = 0 ; + std::string *arg7 = 0 ; + + arg1 = (Dali::Toolkit::WebViewLite *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (int)jarg5; + if (!jarg6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg6_str(jarg6); + arg6 = &arg6_str; + if (!jarg7) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg7_str(jarg7); + arg7 = &arg7_str; + { + try { + (arg1)->CreateInstance(arg2, arg3, arg4, arg5, (std::string const &)*arg6, (std::string const &)*arg7); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + + //argout typemap for const std::string& + + + //argout typemap for const std::string& + +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewLite_DestroyInstance(void * jarg1) { + Dali::Toolkit::WebViewLite *arg1 = (Dali::Toolkit::WebViewLite *) 0 ; + + arg1 = (Dali::Toolkit::WebViewLite *)jarg1; + { + try { + (arg1)->DestroyInstance(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewLite_LoadHtml(void * jarg1, char * jarg2) { + Dali::Toolkit::WebViewLite *arg1 = (Dali::Toolkit::WebViewLite *) 0 ; + std::string *arg2 = 0 ; + + arg1 = (Dali::Toolkit::WebViewLite *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + { + try { + (arg1)->LoadHtml((std::string const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + + //argout typemap for const std::string& + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WebViewLite_FinishedSignal(void * jarg1) { + void * jresult ; + Dali::Toolkit::WebViewLite *arg1 = (Dali::Toolkit::WebViewLite *) 0 ; + Dali::Toolkit::WebViewLite::WebViewLiteSignalType *result = 0 ; + + arg1 = (Dali::Toolkit::WebViewLite *)jarg1; + { + try { + result = (Dali::Toolkit::WebViewLite::WebViewLiteSignalType *) &(arg1)->FinishedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WebViewLiteSignal_Empty(void * jarg1) { + unsigned int jresult ; + Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *) 0 ; + bool result; + + arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *)jarg1; + { + try { + result = (bool)Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Empty((Dali::Signal< void(Dali::Toolkit::WebViewLite &) > const *)arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WebViewLiteSignal_GetConnectionCount(void * jarg1) { + unsigned long jresult ; + Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *) 0 ; + std::size_t result; + + arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *)jarg1; + { + try { + result = Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__GetConnectionCount((Dali::Signal< void(Dali::Toolkit::WebViewLite &) > const *)arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewLiteSignal_Connect(void * jarg1, void * jarg2) { + Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *) 0 ; + void(*arg2)(Dali::Toolkit::WebViewLite &) = (void(*)(Dali::Toolkit::WebViewLite &)) 0 ; + + arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *)jarg1; + arg2 = (void(*)(Dali::Toolkit::WebViewLite &))jarg2; + { + try { + Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Connect(arg1, arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewLiteSignal_Disconnect(void * jarg1, void * jarg2) { + Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *) 0 ; + void(*arg2)(Dali::Toolkit::WebViewLite &) = (void(*)(Dali::Toolkit::WebViewLite &)) 0 ; + + arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *)jarg1; + arg2 = (void(*)(Dali::Toolkit::WebViewLite &))jarg2; + { + try { + Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Disconnect(arg1, arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebViewLiteSignal_Emit(void * jarg1, void * jarg2) { + Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *) 0 ; + Dali::Toolkit::WebViewLite *arg2 = 0 ; + + arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *)jarg1; + arg2 = (Dali::Toolkit::WebViewLite *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::WebViewLite & type is null", 0); + return ; + } + { + try { + Dali_Signal_Sl_void_Sp_Dali_Toolkit_WebViewLite_SA__SP__Sg__Emit(arg1, *arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WebViewLiteSignal() { + void * jresult ; + Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *result = 0 ; + + { + try { + result = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *)new Dali::Signal< void(Dali::Toolkit::WebViewLite &) >(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WebViewLiteSignal(void * jarg1) { + Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *) 0 ; + + arg1 = (Dali::Signal< void(Dali::Toolkit::WebViewLite &) > *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + +SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_WebViewLite_SWIGUpcast(Dali::Toolkit::WebViewLite *jarg1) { + return (Dali::Toolkit::Control *)jarg1; +} + +#ifdef __cplusplus +} +#endif + diff --git a/dali-csharp-binder/src/widget_view.cpp b/dali-csharp-binder/src/widget_view.cpp new file mode 100755 index 0000000..4d862d4 --- /dev/null +++ b/dali-csharp-binder/src/widget_view.cpp @@ -0,0 +1,1027 @@ +/** Copyright (c) 2017 Samsung Electronics Co., Ltd. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +#ifndef CSHARP_WIDGET_VIEW +#define CSHARP_WIDGET_VIEW +#endif + +#include "common.h" + +#include + +SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Empty(Dali::Signal< void (Dali::WidgetView::WidgetView) > const *self){ + return self->Empty(); +} +SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::WidgetView::WidgetView) > const *self){ + return self->GetConnectionCount(); +} +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)){ + self->Connect( func ); +} +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)){ + self->Disconnect( func ); +} +SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Emit(Dali::Signal< void (Dali::WidgetView::WidgetView) > *self,Dali::WidgetView::WidgetView arg){ + self->Emit( arg ); +} + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_WidgetView_SWIGUpcast(Dali::WidgetView::WidgetView *jarg1) { + return (Dali::Toolkit::Control *)jarg1; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_WIDGET_ID_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::WIDGET_ID; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_INSTANCE_ID_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::INSTANCE_ID; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_CONTENT_INFO_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::CONTENT_INFO; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_TITLE_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::TITLE; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_UPDATE_PERIOD_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::UPDATE_PERIOD; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_PREVIEW_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::PREVIEW; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_LOADING_TEXT_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::LOADING_TEXT; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_WIDGET_STATE_FAULTED_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::WIDGET_STATE_FAULTED; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_PERMANENT_DELETE_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::PERMANENT_DELETE; + jresult = (int)result; + return jresult; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_RETRY_TEXT_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::RETRY_TEXT; + jresult = (int)result; + return jresult; +} + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WidgetView_Property_EFFECT_get() { + int jresult ; + int result; + + result = (int)Dali::WidgetView::WidgetView::Property::EFFECT; + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetView_Property() { + void * jresult ; + Dali::WidgetView::WidgetView::Property *result = 0 ; + + { + try { + result = (Dali::WidgetView::WidgetView::Property *)new Dali::WidgetView::WidgetView::Property(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetView_Property(void * jarg1) { + Dali::WidgetView::WidgetView::Property *arg1 = (Dali::WidgetView::WidgetView::Property *) 0 ; + + arg1 = (Dali::WidgetView::WidgetView::Property *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_New(char * jarg1, char * jarg2, int jarg3, int jarg4, float jarg5) { + void * jresult ; + std::string *arg1 = 0 ; + std::string *arg2 = 0 ; + int arg3 ; + int arg4 ; + float arg5 ; + Dali::WidgetView::WidgetView result; + + if (!jarg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg1_str(jarg1); + arg1 = &arg1_str; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (float)jarg5; + { + try { + result = Dali::WidgetView::WidgetView::New((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4,arg5); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::WidgetView::WidgetView((const Dali::WidgetView::WidgetView &)result); + + //argout typemap for const std::string& + + + //argout typemap for const std::string& + + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_DownCast(void * jarg1) { + void * jresult ; + Dali::BaseHandle arg1 ; + Dali::BaseHandle *argp1 ; + Dali::WidgetView::WidgetView result; + + argp1 = (Dali::BaseHandle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); + return 0; + } + arg1 = *argp1; + { + try { + result = Dali::WidgetView::WidgetView::DownCast(arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::WidgetView::WidgetView((const Dali::WidgetView::WidgetView &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetView__SWIG_0() { + void * jresult ; + Dali::WidgetView::WidgetView *result = 0 ; + + { + try { + result = (Dali::WidgetView::WidgetView *)new Dali::WidgetView::WidgetView(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetView__SWIG_1(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = 0 ; + Dali::WidgetView::WidgetView *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetView const & type is null", 0); + return 0; + } + { + try { + result = (Dali::WidgetView::WidgetView *)new Dali::WidgetView::WidgetView((Dali::WidgetView::WidgetView const &)*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + Dali::WidgetView::WidgetView *arg2 = 0 ; + Dali::WidgetView::WidgetView *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + arg2 = (Dali::WidgetView::WidgetView *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetView const & type is null", 0); + return 0; + } + { + try { + result = (Dali::WidgetView::WidgetView *) &(arg1)->operator =((Dali::WidgetView::WidgetView const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetView(void * jarg1) { + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_PauseWidget(void * jarg1) { + unsigned int jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + bool result; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (bool)(arg1)->PauseWidget(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_ResumeWidget(void * jarg1) { + unsigned int jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + bool result; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (bool)(arg1)->ResumeWidget(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_CancelTouchEvent(void * jarg1) { + unsigned int jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + bool result; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (bool)(arg1)->CancelTouchEvent(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetView_ActivateFaultedWidget(void * jarg1) { + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + (arg1)->ActivateFaultedWidget(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + } catch (...) { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + } + } +} + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetView_TerminateWidget(void * jarg1) { + unsigned int jresult; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + bool result; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (bool)(arg1)->TerminateWidget(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + } catch (...) { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + } + } + + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetAddedSignal(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetAddedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetDeletedSignal(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetDeletedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetCreationAbortedSignal(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetCreationAbortedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetContentUpdatedSignal(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetContentUpdatedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetUpdatePeriodChangedSignal(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetUpdatePeriodChangedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetView_WidgetFaultedSignal(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetView *arg1 = (Dali::WidgetView::WidgetView *) 0 ; + Dali::WidgetView::WidgetView::WidgetViewSignalType *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetView *)jarg1; + { + try { + result = (Dali::WidgetView::WidgetView::WidgetViewSignalType *) &(arg1)->WidgetFaultedSignal(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + + +//For widget view signal +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Empty(void * jarg1) { + unsigned int jresult ; + Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ; + bool result; + + arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1; + { + try { + result = (bool)Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Empty((Dali::Signal< void (Dali::WidgetView::WidgetView) > const *)arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_WidgetViewSignal_GetConnectionCount(void * jarg1) { + unsigned long jresult ; + Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ; + std::size_t result; + + arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1; + { + try { + result = Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::WidgetView::WidgetView) > const *)arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (unsigned long)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Connect(void * jarg1, void * jarg2) { + Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ; + void (*arg2)(Dali::WidgetView::WidgetView) = (void (*)(Dali::WidgetView::WidgetView)) 0 ; + + arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1; + arg2 = (void (*)(Dali::WidgetView::WidgetView))jarg2; + { + try { + Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Connect(arg1,arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Disconnect(void * jarg1, void * jarg2) { + Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ; + void (*arg2)(Dali::WidgetView::WidgetView) = (void (*)(Dali::WidgetView::WidgetView)) 0 ; + + arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1; + arg2 = (void (*)(Dali::WidgetView::WidgetView))jarg2; + { + try { + Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Disconnect(arg1,arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WidgetViewSignal_Emit(void * jarg1, void * jarg2) { + Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ; + Dali::WidgetView::WidgetView arg2 ; + Dali::WidgetView::WidgetView *argp2 ; + + arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1; + argp2 = (Dali::WidgetView::WidgetView *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::WidgetView::WidgetView", 0); + return ; + } + arg2 = *argp2; + { + try { + Dali_Signal_Sl_void_Sp_Dali_WidgetView_WidgetView_SP__Sg__Emit(arg1,arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetViewSignal() { + void * jresult ; + Dali::Signal< void (Dali::WidgetView::WidgetView) > *result = 0 ; + + { + try { + result = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)new Dali::Signal< void (Dali::WidgetView::WidgetView) >(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetViewSignal(void * jarg1) { + Dali::Signal< void (Dali::WidgetView::WidgetView) > *arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *) 0 ; + + arg1 = (Dali::Signal< void (Dali::WidgetView::WidgetView) > *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + +#ifdef __cplusplus +} +#endif + diff --git a/dali-csharp-binder/src/widget_view_manager.cpp b/dali-csharp-binder/src/widget_view_manager.cpp new file mode 100755 index 0000000..0c2ab7a --- /dev/null +++ b/dali-csharp-binder/src/widget_view_manager.cpp @@ -0,0 +1,312 @@ +/** Copyright (c) 2017 Samsung Electronics Co., Ltd. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +#ifndef CSHARP_WIDGET_VIEW_MANAGER +#define CSHARP_WIDGET_VIEW_MANAGER +#endif + +#include "common.h" +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_WidgetViewManager_SWIGUpcast(Dali::WidgetView::WidgetViewManager *jarg1) { + return (Dali::BaseHandle *)jarg1; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_New(void * jarg1, char * jarg2) { + void * jresult ; + Dali::Application arg1 ; + std::string *arg2 = 0 ; + Dali::Application *argp1 ; + Dali::WidgetView::WidgetViewManager result; + + argp1 = (Dali::Application *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Application", 0); + return 0; + } + arg1 = *argp1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + { + try { + result = Dali::WidgetView::WidgetViewManager::New(arg1,(std::string const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::WidgetView::WidgetViewManager((const Dali::WidgetView::WidgetViewManager &)result); + + //argout typemap for const std::string& + + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_DownCast(void * jarg1) { + void * jresult ; + Dali::BaseHandle arg1 ; + Dali::BaseHandle *argp1 ; + Dali::WidgetView::WidgetViewManager result; + + argp1 = (Dali::BaseHandle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); + return 0; + } + arg1 = *argp1; + { + try { + result = Dali::WidgetView::WidgetViewManager::DownCast(arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::WidgetView::WidgetViewManager((const Dali::WidgetView::WidgetViewManager &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetViewManager__SWIG_0() { + void * jresult ; + Dali::WidgetView::WidgetViewManager *result = 0 ; + + { + try { + result = (Dali::WidgetView::WidgetViewManager *)new Dali::WidgetView::WidgetViewManager(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_WidgetViewManager__SWIG_1(void * jarg1) { + void * jresult ; + Dali::WidgetView::WidgetViewManager *arg1 = 0 ; + Dali::WidgetView::WidgetViewManager *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetViewManager const & type is null", 0); + return 0; + } + { + try { + result = (Dali::WidgetView::WidgetViewManager *)new Dali::WidgetView::WidgetViewManager((Dali::WidgetView::WidgetViewManager const &)*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::WidgetView::WidgetViewManager *arg1 = (Dali::WidgetView::WidgetViewManager *) 0 ; + Dali::WidgetView::WidgetViewManager *arg2 = 0 ; + Dali::WidgetView::WidgetViewManager *result = 0 ; + + arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1; + arg2 = (Dali::WidgetView::WidgetViewManager *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WidgetView::WidgetViewManager const & type is null", 0); + return 0; + } + { + try { + result = (Dali::WidgetView::WidgetViewManager *) &(arg1)->operator =((Dali::WidgetView::WidgetViewManager const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_WidgetViewManager(void * jarg1) { + Dali::WidgetView::WidgetViewManager *arg1 = (Dali::WidgetView::WidgetViewManager *) 0 ; + + arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_WidgetViewManager_AddWidget(void * jarg1, char * jarg2, char * jarg3, int jarg4, int jarg5, float jarg6) { + void * jresult ; + Dali::WidgetView::WidgetViewManager *arg1 = (Dali::WidgetView::WidgetViewManager *) 0 ; + std::string *arg2 = 0 ; + std::string *arg3 = 0 ; + int arg4 ; + int arg5 ; + float arg6 ; + Dali::WidgetView::WidgetView result; + + arg1 = (Dali::WidgetView::WidgetViewManager *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + if (!jarg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg3_str(jarg3); + arg3 = &arg3_str; + arg4 = (int)jarg4; + arg5 = (int)jarg5; + arg6 = (float)jarg6; + { + try { + result = (arg1)->AddWidget((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::WidgetView::WidgetView((const Dali::WidgetView::WidgetView &)result); + return jresult; +} + +#ifdef __cplusplus +} +#endif + diff --git a/packaging/dali-csharp-binder.spec b/packaging/dali-csharp-binder.spec index 47b2ac2..c851b50 100755 --- a/packaging/dali-csharp-binder.spec +++ b/packaging/dali-csharp-binder.spec @@ -1,6 +1,6 @@ Name: dali-csharp-binder -Version: 1.2.39 +Version: 1.3.9+nui500 Release: 1 Summary: build dali csharp binder License: Apache-2.0 and BSD-3-Clause and MIT @@ -11,6 +11,7 @@ BuildRequires: pkgconfig(dali-core) BuildRequires: pkgconfig(dali-adaptor) BuildRequires: pkgconfig(dali-toolkit) BuildRequires: pkgconfig(ecore-wayland) +BuildRequires: pkgconfig(widget_viewer_dali) %description dali-csharp-binder -- 2.7.4