X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-csharp-binder%2Fsrc%2Fdali_wrap.cpp;h=380a95c5d3917b8d6313fb1baa04c612b001ab64;hb=67c5228c95a858c6d9f92a7aceb6e6a51249b0c5;hp=e1c80a1e85bfd4d20c4271be046acab192c68334;hpb=2840f2cfcb2df736ba49fb544aa284ba78dc881e;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index e1c80a1..380a95c 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -8,14 +8,12 @@ * interface file instead. * ----------------------------------------------------------------------------- */ - #ifndef SWIGCSHARP #define SWIGCSHARP #endif #define SWIG_DIRECTORS - #ifdef __cplusplus /* SwigValueWrapper is described in swig.swg */ template class SwigValueWrapper { @@ -168,7 +166,6 @@ template T SwigValueInit() { #include #include - /* Support for throwing C# exceptions from C/C++. There are two types: * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ typedef enum { @@ -286,6 +283,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" @@ -424,6 +424,7 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include +#include #include #include @@ -438,8 +439,6 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include -#include -#include #include @@ -468,8 +467,10 @@ void SWIG_CSharpException(int code, const char *msg) { #include -#include -#include +#include +#include + +#include // add here SWIG version check @@ -1690,6 +1691,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(); } @@ -21826,39 +21961,6 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_TypeRegistry_GetTypeName(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TypeRegistry__SWIG_2(void * jarg1) { - void * jresult ; - Dali::Internal::TypeRegistry *arg1 = (Dali::Internal::TypeRegistry *) 0 ; - Dali::TypeRegistry *result = 0 ; - - arg1 = (Dali::Internal::TypeRegistry *)jarg1; - { - try { - result = (Dali::TypeRegistry *)new Dali::TypeRegistry(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_new_TypeRegistration__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { void * jresult ; std::type_info *arg1 = 0 ; @@ -24633,39 +24735,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Texture_GetHeight(void * jarg1) } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Texture__SWIG_2(void * jarg1) { - void * jresult ; - Dali::Internal::Texture *arg1 = (Dali::Internal::Texture *) 0 ; - Dali::Texture *result = 0 ; - - arg1 = (Dali::Internal::Texture *)jarg1; - { - try { - result = (Dali::Texture *)new Dali::Texture(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_Sampler_New() { void * jresult ; Dali::Sampler result; @@ -30136,52 +30205,17 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Touch_GetAngle(void * jarg1, unsigned } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GestureDetector__SWIG_0() { - void * jresult ; - Dali::GestureDetector *result = 0 ; - - { - try { - result = (Dali::GestureDetector *)new Dali::GestureDetector(); - } 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_GestureDetector_DownCast(void * jarg1) { - void * jresult ; - Dali::BaseHandle arg1 ; - Dali::BaseHandle *argp1 ; - Dali::GestureDetector result; +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Touch_GetMouseButton(void * jarg1, unsigned long jarg2) { + int jresult ; + Dali::TouchData *arg1 = (Dali::TouchData *) 0 ; + std::size_t arg2 ; + Dali::MouseButton::Type result; - argp1 = (Dali::BaseHandle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); - return 0; - } - arg1 = *argp1; + arg1 = (Dali::TouchData *)jarg1; + arg2 = (std::size_t)jarg2; { try { - result = Dali::GestureDetector::DownCast(arg1); + result = ((Dali::TouchData const *)arg1)->GetMouseButton(arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -30201,53 +30235,18 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GestureDetector_DownCast(void * jarg1) } } - jresult = new Dali::GestureDetector((const Dali::GestureDetector &)result); + jresult = static_cast< int >(result); return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_GestureDetector(void * jarg1) { - Dali::GestureDetector *arg1 = (Dali::GestureDetector *) 0 ; - - arg1 = (Dali::GestureDetector *)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_GestureDetector__SWIG_1(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GestureDetector__SWIG_0() { void * jresult ; - Dali::GestureDetector *arg1 = 0 ; Dali::GestureDetector *result = 0 ; - arg1 = (Dali::GestureDetector *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::GestureDetector const & type is null", 0); - return 0; - } { try { - result = (Dali::GestureDetector *)new Dali::GestureDetector((Dali::GestureDetector const &)*arg1); + result = (Dali::GestureDetector *)new Dali::GestureDetector(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -30272,21 +30271,21 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GestureDetector__SWIG_1(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GestureDetector_Assign(void * jarg1, void * jarg2) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GestureDetector_DownCast(void * jarg1) { void * jresult ; - Dali::GestureDetector *arg1 = (Dali::GestureDetector *) 0 ; - Dali::GestureDetector *arg2 = 0 ; - Dali::GestureDetector *result = 0 ; + Dali::BaseHandle arg1 ; + Dali::BaseHandle *argp1 ; + Dali::GestureDetector result; - arg1 = (Dali::GestureDetector *)jarg1; - arg2 = (Dali::GestureDetector *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::GestureDetector const & type is null", 0); + argp1 = (Dali::BaseHandle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0); return 0; } + arg1 = *argp1; { try { - result = (Dali::GestureDetector *) &(arg1)->operator =((Dali::GestureDetector const &)*arg2); + result = Dali::GestureDetector::DownCast(arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -30306,26 +30305,131 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GestureDetector_Assign(void * jarg1, v } } - jresult = (void *)result; + jresult = new Dali::GestureDetector((const Dali::GestureDetector &)result); return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GestureDetector_Attach(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_GestureDetector(void * jarg1) { Dali::GestureDetector *arg1 = (Dali::GestureDetector *) 0 ; - Dali::Actor arg2 ; - Dali::Actor *argp2 ; arg1 = (Dali::GestureDetector *)jarg1; - argp2 = (Dali::Actor *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); - return ; - } - arg2 = *argp2; { try { - (arg1)->Attach(arg2); + 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_GestureDetector__SWIG_1(void * jarg1) { + void * jresult ; + Dali::GestureDetector *arg1 = 0 ; + Dali::GestureDetector *result = 0 ; + + arg1 = (Dali::GestureDetector *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::GestureDetector const & type is null", 0); + return 0; + } + { + try { + result = (Dali::GestureDetector *)new Dali::GestureDetector((Dali::GestureDetector 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_GestureDetector_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::GestureDetector *arg1 = (Dali::GestureDetector *) 0 ; + Dali::GestureDetector *arg2 = 0 ; + Dali::GestureDetector *result = 0 ; + + arg1 = (Dali::GestureDetector *)jarg1; + arg2 = (Dali::GestureDetector *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::GestureDetector const & type is null", 0); + return 0; + } + { + try { + result = (Dali::GestureDetector *) &(arg1)->operator =((Dali::GestureDetector 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_GestureDetector_Attach(void * jarg1, void * jarg2) { + Dali::GestureDetector *arg1 = (Dali::GestureDetector *) 0 ; + Dali::Actor arg2 ; + Dali::Actor *argp2 ; + + arg1 = (Dali::GestureDetector *)jarg1; + argp2 = (Dali::Actor *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0); + return ; + } + arg2 = *argp2; + { + try { + (arg1)->Attach(arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -31173,12 +31277,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 +31316,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 +31345,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 +31374,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 +31403,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,12 +31432,19 @@ 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; + if( jarg1 == NULL ) + { + jresult = -1; + } + else + { + Dali::KeyEvent *arg1 = ( Dali::KeyEvent * ) 0; + Dali::KeyEvent::State result; - arg1 = (Dali::KeyEvent *)jarg1; - result = (Dali::KeyEvent::State) ((arg1)->state); - jresult = (int)result; + arg1 = ( Dali::KeyEvent * )jarg1; + result = ( Dali::KeyEvent::State ) ( ( arg1 )->state ); + jresult = (int)result; + } return jresult; } @@ -32528,7 +32676,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LowerToBottom(void * jarg1) { } - SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RaiseAbove(void * jarg1, void * jarg2) { Dali::Actor arg1 ; Dali::Actor arg2 ; @@ -36552,6 +36699,15 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Actor_GetHierarchyDepth(void * jarg1) { { try { result = (int)(arg1)->GetHierarchyDepth(); + Dali::Actor parent = ((Dali::Actor const *)arg1)->GetParent(); + if(parent) + { + const std::string parentName = parent.GetName(); + if(parentName.compare("rootAbsoluteLayout") == 0) + { + result -= 1; + } + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -38916,55 +39072,15 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Stage_SceneCreatedSignal(void * jarg1) return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Stage_SetRenderingBehavior(void * jarg1, int jarg2) { + Dali::Stage *arg1 = (Dali::Stage *) 0 ; + Dali::DevelStage::Rendering arg2 ; -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_RelayoutContainer(void * jarg1) { - Dali::RelayoutContainer *arg1 = (Dali::RelayoutContainer *) 0 ; - - arg1 = (Dali::RelayoutContainer *)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_RelayoutContainer_Add(void * jarg1, void * jarg2, void * jarg3) { - Dali::RelayoutContainer *arg1 = (Dali::RelayoutContainer *) 0 ; - Dali::Actor *arg2 = 0 ; - Dali::Vector2 *arg3 = 0 ; - - arg1 = (Dali::RelayoutContainer *)jarg1; - arg2 = (Dali::Actor *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Actor const & type is null", 0); - return ; - } - arg3 = (Dali::Vector2 *)jarg3; - if (!arg3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector2 const & type is null", 0); - return ; - } + arg1 = (Dali::Stage *)jarg1; + arg2 = (Dali::DevelStage::Rendering)jarg2; { try { - (arg1)->Add((Dali::Actor const &)*arg2,(Dali::Vector2 const &)*arg3); + DevelStage::SetRenderingBehavior(*arg1,arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -38986,16 +39102,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RelayoutContainer_Add(void * jarg1, void } +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Stage_GetRenderingBehavior(void * jarg1) { -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_CustomActorImpl_Self(void * jarg1) { - void * jresult ; - Dali::CustomActorImpl *arg1 = (Dali::CustomActorImpl *) 0 ; - Dali::CustomActor result; + int jresult ; + int result ; + Dali::Stage *arg1 = (Dali::Stage *) 0 ; - arg1 = (Dali::CustomActorImpl *)jarg1; + arg1 = (Dali::Stage *)jarg1; { try { - result = ((Dali::CustomActorImpl const *)arg1)->Self(); + result = (int)(DevelStage::GetRenderingBehavior(*arg1)); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -39015,20 +39131,17 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_CustomActorImpl_Self(void * jarg1) { } } - jresult = new Dali::CustomActor((const Dali::CustomActor &)result); + jresult = result; return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_RelayoutContainer(void * jarg1) { + Dali::RelayoutContainer *arg1 = (Dali::RelayoutContainer *) 0 ; -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_CustomActorImpl_OnStageConnection(void * jarg1, int jarg2) { - Dali::CustomActorImpl *arg1 = (Dali::CustomActorImpl *) 0 ; - int arg2 ; - - arg1 = (Dali::CustomActorImpl *)jarg1; - arg2 = (int)jarg2; + arg1 = (Dali::RelayoutContainer *)jarg1; { try { - (arg1)->OnStageConnection(arg2); + delete arg1; } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -39051,13 +39164,118 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_CustomActorImpl_OnStageConnection(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_CustomActorImpl_OnStageDisconnection(void * jarg1) { - Dali::CustomActorImpl *arg1 = (Dali::CustomActorImpl *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RelayoutContainer_Add(void * jarg1, void * jarg2, void * jarg3) { + Dali::RelayoutContainer *arg1 = (Dali::RelayoutContainer *) 0 ; + Dali::Actor *arg2 = 0 ; + Dali::Vector2 *arg3 = 0 ; - arg1 = (Dali::CustomActorImpl *)jarg1; + arg1 = (Dali::RelayoutContainer *)jarg1; + arg2 = (Dali::Actor *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Actor const & type is null", 0); + return ; + } + arg3 = (Dali::Vector2 *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector2 const & type is null", 0); + return ; + } { try { - (arg1)->OnStageDisconnection(); + (arg1)->Add((Dali::Actor const &)*arg2,(Dali::Vector2 const &)*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 (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } + +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_CustomActorImpl_Self(void * jarg1) { + void * jresult ; + Dali::CustomActorImpl *arg1 = (Dali::CustomActorImpl *) 0 ; + Dali::CustomActor result; + + arg1 = (Dali::CustomActorImpl *)jarg1; + { + try { + result = ((Dali::CustomActorImpl const *)arg1)->Self(); + } 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::CustomActor((const Dali::CustomActor &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_CustomActorImpl_OnStageConnection(void * jarg1, int jarg2) { + Dali::CustomActorImpl *arg1 = (Dali::CustomActorImpl *) 0 ; + int arg2 ; + + arg1 = (Dali::CustomActorImpl *)jarg1; + arg2 = (int)jarg2; + { + try { + (arg1)->OnStageConnection(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_CustomActorImpl_OnStageDisconnection(void * jarg1) { + Dali::CustomActorImpl *arg1 = (Dali::CustomActorImpl *) 0 ; + + arg1 = (Dali::CustomActorImpl *)jarg1; + { + try { + (arg1)->OnStageDisconnection(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -62527,7 +62745,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TransitionData__SWIG_0() { return jresult; } - SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TransitionData(void * jarg1) { Dali::Toolkit::TransitionData *arg1 = (Dali::Toolkit::TransitionData *) 0 ; @@ -62814,39 +63031,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TransitionData_GetAnimatorAt(void * ja } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TransitionData__SWIG_2(void * jarg1) { - void * jresult ; - Dali::Toolkit::Internal::TransitionData *arg1 = (Dali::Toolkit::Internal::TransitionData *) 0 ; - Dali::Toolkit::TransitionData *result = 0 ; - - arg1 = (Dali::Toolkit::Internal::TransitionData *)jarg1; - { - try { - result = (Dali::Toolkit::TransitionData *)new Dali::Toolkit::TransitionData(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 int SWIGSTDCALL CSharp_Dali_TOOLTIP_CONTENT_get() { int jresult ; int result; @@ -63966,64 +64150,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_IsKeyboardFocusGroup(vo } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_AccessibilityActivate(void * jarg1) { - Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - { - try { - (arg1)->AccessibilityActivate(); - } 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_ViewImpl_KeyboardEnter(void * jarg1) { - Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - { - try { - (arg1)->KeyboardEnter(); - } 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_ViewImpl_KeyEventSignal(void * jarg1) { void * jresult ; Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; @@ -64123,45 +64249,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewImpl_KeyInputFocusLostSignal(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_EmitKeyEventSignal(void * jarg1, void * jarg2) { - unsigned int jresult ; - Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; - Dali::KeyEvent *arg2 = 0 ; - bool result; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - arg2 = (Dali::KeyEvent *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::KeyEvent const & type is null", 0); - return 0; - } - { - try { - result = (bool)(arg1)->EmitKeyEventSignal((Dali::KeyEvent 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 = result; - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnStageConnection(void * jarg1, int jarg2) { Dali::Toolkit::Internal::Control *arg1 = (Dali::Toolkit::Internal::Control *) 0 ; int arg2 ; @@ -64170,9 +64257,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnStageConnection(void * jarg1, arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (int)jarg2; darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnStageConnection(arg2); + if(darg) { + (darg)->OnStageConnection(arg2); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64203,9 +64296,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnStageConnectionSwigExplicitVi arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (int)jarg2; darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnStageConnectionSwigPublic(arg2); + if(darg) { + (darg)->OnStageConnectionSwigPublic(arg2); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64234,9 +64333,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnStageDisconnection(void * jar arg1 = (Dali::Toolkit::Internal::Control *)jarg1; darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnStageDisconnection(); + if(darg) { + (darg)->OnStageDisconnection(); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64265,9 +64370,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnStageDisconnectionSwigExplici arg1 = (Dali::Toolkit::Internal::Control *)jarg1; darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnStageDisconnectionSwigPublic(); + if(darg) { + (darg)->OnStageDisconnectionSwigPublic(); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64302,9 +64413,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnChildAdd(void * jarg1, void * return ; } darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnChildAdd(*arg2); + if(darg) { + (darg)->OnChildAdd(*arg2); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64339,9 +64456,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnChildAddSwigExplicitViewImpl( return ; } darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnChildAddSwigPublic(*arg2); + if(darg) { + (darg)->OnChildAddSwigPublic(*arg2); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64376,9 +64499,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnChildRemove(void * jarg1, voi return ; } darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnChildRemove(*arg2); + if(darg) { + (darg)->OnChildRemove(*arg2); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64413,9 +64542,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnChildRemoveSwigExplicitViewIm return ; } darg = dynamic_cast(arg1); + if(!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { - (darg)->OnChildRemoveSwigPublic(*arg2); + if(darg) { + (darg)->OnChildRemoveSwigPublic(*arg2); + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -64454,6 +64589,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnPropertySet(void * jarg1, int } arg3 = *argp3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnPropertySet(arg2,arg3); @@ -64495,6 +64634,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnPropertySetSwigExplicitViewIm } arg3 = *argp3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnPropertySetSwigPublic(arg2,arg3); @@ -64532,6 +64675,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnSizeSet(void * jarg1, void * return ; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnSizeSet((Dali::Vector3 const &)*arg2); @@ -64569,6 +64716,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnSizeSetSwigExplicitViewImpl(v return ; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnSizeSetSwigPublic((Dali::Vector3 const &)*arg2); @@ -64612,6 +64763,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnSizeAnimation(void * jarg1, v return ; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnSizeAnimation(*arg2,(Dali::Vector3 const &)*arg3); @@ -64655,6 +64810,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnSizeAnimationSwigExplicitView return ; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnSizeAnimationSwigPublic(*arg2,(Dali::Vector3 const &)*arg3); @@ -64694,6 +64853,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnTouchEvent(void * jar return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnTouchEvent((Dali::TouchEvent const &)*arg2); @@ -64735,6 +64898,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnTouchEventSwigExplici return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnTouchEventSwigPublic((Dali::TouchEvent const &)*arg2); @@ -64776,6 +64943,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnHoverEvent(void * jar return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnHoverEvent((Dali::HoverEvent const &)*arg2); @@ -64817,6 +64988,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnHoverEventSwigExplici return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnHoverEventSwigPublic((Dali::HoverEvent const &)*arg2); @@ -64858,6 +65033,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnKeyEvent(void * jarg1 return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnKeyEvent((Dali::KeyEvent const &)*arg2); @@ -64899,6 +65078,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnKeyEventSwigExplicitV return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnKeyEventSwigPublic((Dali::KeyEvent const &)*arg2); @@ -64940,6 +65123,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnWheelEvent(void * jar return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnWheelEvent((Dali::WheelEvent const &)*arg2); @@ -64981,6 +65168,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_OnWheelEventSwigExplici return 0; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->OnWheelEventSwigPublic((Dali::WheelEvent const &)*arg2); @@ -65026,6 +65217,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnRelayout(void * jarg1, void * return ; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnRelayout((Dali::Vector2 const &)*arg2,*arg3); @@ -65069,6 +65264,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnRelayoutSwigExplicitViewImpl( return ; } darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnRelayoutSwigPublic((Dali::Vector2 const &)*arg2,*arg3); @@ -65104,6 +65303,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnSetResizePolicy(void * jarg1, arg2 = (Dali::ResizePolicy::Type)jarg2; arg3 = (Dali::Dimension::Type)jarg3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnSetResizePolicy(arg2,arg3); @@ -65139,6 +65342,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnSetResizePolicySwigExplicitVi arg2 = (Dali::ResizePolicy::Type)jarg2; arg3 = (Dali::Dimension::Type)jarg3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnSetResizePolicySwigPublic(arg2,arg3); @@ -65172,6 +65379,10 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewImpl_GetNaturalSize(void * jarg1) arg1 = (Dali::Toolkit::Internal::Control *)jarg1; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (darg)->GetNaturalSize(); @@ -65207,6 +65418,10 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewImpl_GetNaturalSizeSwigExplicitVie arg1 = (Dali::Toolkit::Internal::Control *)jarg1; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (darg)->GetNaturalSizeSwigPublic(); @@ -65250,6 +65465,10 @@ SWIGEXPORT float SWIGSTDCALL CSharp_Dali_ViewImpl_CalculateChildSize(void * jarg } arg3 = (Dali::Dimension::Type)jarg3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (float)(darg)->CalculateChildSize((Dali::Actor const &)*arg2,arg3); @@ -65293,6 +65512,10 @@ SWIGEXPORT float SWIGSTDCALL CSharp_Dali_ViewImpl_CalculateChildSizeSwigExplicit } arg3 = (Dali::Dimension::Type)jarg3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (float)(darg)->CalculateChildSizeSwigPublic((Dali::Actor const &)*arg2,arg3); @@ -65330,6 +65553,10 @@ SWIGEXPORT float SWIGSTDCALL CSharp_Dali_ViewImpl_GetHeightForWidth(void * jarg1 arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (float)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (float)(darg)->GetHeightForWidth(arg2); @@ -65367,6 +65594,10 @@ SWIGEXPORT float SWIGSTDCALL CSharp_Dali_ViewImpl_GetHeightForWidthSwigExplicitV arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (float)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (float)(darg)->GetHeightForWidthSwigPublic(arg2); @@ -65404,6 +65635,10 @@ SWIGEXPORT float SWIGSTDCALL CSharp_Dali_ViewImpl_GetWidthForHeight(void * jarg1 arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (float)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (float)(darg)->GetWidthForHeight(arg2); @@ -65441,6 +65676,10 @@ SWIGEXPORT float SWIGSTDCALL CSharp_Dali_ViewImpl_GetWidthForHeightSwigExplicitV arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (float)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (float)(darg)->GetWidthForHeightSwigPublic(arg2); @@ -65478,6 +65717,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_RelayoutDependentOnChil arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (Dali::Dimension::Type)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->RelayoutDependentOnChildren(arg2); @@ -65515,6 +65758,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_RelayoutDependentOnChil arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (Dali::Dimension::Type)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->RelayoutDependentOnChildrenSwigPublic(arg2); @@ -65550,6 +65797,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_RelayoutDependentOnChil arg1 = (Dali::Toolkit::Internal::Control *)jarg1; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->RelayoutDependentOnChildren(); @@ -65585,6 +65836,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ViewImpl_RelayoutDependentOnChil arg1 = (Dali::Toolkit::Internal::Control *)jarg1; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return 0; + } { try { result = (bool)(darg)->RelayoutDependentOnChildrenSwigPublic(); @@ -65620,6 +65875,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnCalculateRelayoutSize(void * arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (Dali::Dimension::Type)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnCalculateRelayoutSize(arg2); @@ -65653,6 +65912,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnCalculateRelayoutSizeSwigExpl arg1 = (Dali::Toolkit::Internal::Control *)jarg1; arg2 = (Dali::Dimension::Type)jarg2; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnCalculateRelayoutSizeSwigPublic(arg2); @@ -65688,6 +65951,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnLayoutNegotiated(void * jarg1 arg2 = (float)jarg2; arg3 = (Dali::Dimension::Type)jarg3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnLayoutNegotiated(arg2,arg3); @@ -65723,6 +65990,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewImpl_OnLayoutNegotiatedSwigExplicitV arg2 = (float)jarg2; arg3 = (Dali::Dimension::Type)jarg3; darg = dynamic_cast(arg1); + if (!darg) { + SWIG_CSharpException(SWIG_TypeError, "dynamic_cast error. darg is null"); + return; + } { try { (darg)->OnLayoutNegotiatedSwigPublic(arg2,arg3); @@ -68266,19 +68537,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_DoAction(void * jarg1, int jarg2, i } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ResourceReadySignal(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetLayout__SWIG_0(void * jarg1) { void * jresult ; - Dali::Toolkit::Control *arg1 = 0 ; - Dali::Toolkit::Control::ResourceReadySignalType *result = 0 ; + Dali::Toolkit::Internal::Control *arg1 = 0 ; + Dali::Toolkit::LayoutItem result; - arg1 = (Dali::Toolkit::Control *)jarg1; + arg1 = (Dali::Toolkit::Internal::Control *)jarg1; if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control & type is null", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); return 0; } { try { - result = (Dali::Toolkit::Control::ResourceReadySignalType *) &arg1->ResourceReadySignal(); + result = Dali::Toolkit::DevelControl::GetLayout(*arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68287,35 +68558,32 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ResourceReadySignal(void * jarg1) { { 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; + jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result); return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_IsResourceReady(void * jarg1) { - unsigned int jresult ; - Dali::Toolkit::Control *arg1 = 0 ; - bool result; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetLayout__SWIG_1(void * jarg1) { + void * jresult ; + Dali::Toolkit::Control arg1 ; + Dali::Toolkit::Control *argp1 ; + Dali::Toolkit::LayoutItem result; - arg1 = (Dali::Toolkit::Control *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control const & type is null", 0); + argp1 = (Dali::Toolkit::Control *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); return 0; } + arg1 = *argp1; { try { - result = (bool)arg1->IsResourceReady(); + result = Dali::Toolkit::DevelControl::GetLayout(arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68324,60 +68592,35 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_IsResourceReady(void * jarg1) { { 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; + jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result); return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetLayout__SWIG_0(void * jarg1, void * jarg2) { + Dali::Toolkit::Internal::Control *arg1 = 0 ; + Dali::Toolkit::LayoutItem arg2 ; + Dali::Toolkit::LayoutItem *argp2 ; -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_KeyInputFocusManager() { - void * jresult ; - Dali::Toolkit::KeyInputFocusManager *result = 0 ; - - { - try { - result = (Dali::Toolkit::KeyInputFocusManager *)new Dali::Toolkit::KeyInputFocusManager(); - } 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; - }; - } + arg1 = (Dali::Toolkit::Internal::Control *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); + return ; } - - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_KeyInputFocusManager(void * jarg1) { - Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; - - arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; + argp2 = (Dali::Toolkit::LayoutItem *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutItem", 0); + return ; + } + arg2 = *argp2; { try { - delete arg1; + Dali::Toolkit::DevelControl::SetLayout(*arg1,arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -68386,66 +68629,36 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_KeyInputFocusManager(void * jarg1 { 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_KeyInputFocusManager_Get() { - void * jresult ; - Dali::Toolkit::KeyInputFocusManager result; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetLayout__SWIG_1(void * jarg1, void * jarg2) { + Dali::Toolkit::Control arg1 ; + Dali::Toolkit::LayoutItem arg2 ; + Dali::Toolkit::Control *argp1 ; + Dali::Toolkit::LayoutItem *argp2 ; - { - try { - result = Dali::Toolkit::KeyInputFocusManager::Get(); - } 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; - }; - } + argp1 = (Dali::Toolkit::Control *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); + return ; } - - jresult = new Dali::Toolkit::KeyInputFocusManager((const Dali::Toolkit::KeyInputFocusManager &)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_SetFocus(void * jarg1, void * jarg2) { - Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; - Dali::Toolkit::Control arg2 ; - Dali::Toolkit::Control *argp2 ; - - arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; - argp2 = (Dali::Toolkit::Control *)jarg2; + arg1 = *argp1; + argp2 = (Dali::Toolkit::LayoutItem *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutItem", 0); return ; } arg2 = *argp2; { try { - (arg1)->SetFocus(arg2); + Dali::Toolkit::DevelControl::SetLayout(arg1,arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -68454,68 +68667,26 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_SetFocus(void * jar { 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_KeyInputFocusManager_GetCurrentFocusControl(void * jarg1) { - void * jresult ; - Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; - Dali::Toolkit::Control result; - - arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; - { - try { - result = ((Dali::Toolkit::KeyInputFocusManager const *)arg1)->GetCurrentFocusControl(); - } 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::Control((const Dali::Toolkit::Control &)result); - return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetLayoutingRequired(void * jarg1, bool jarg2) { + Dali::Toolkit::Control *arg1 = 0 ; -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_RemoveFocus(void * jarg1, void * jarg2) { - Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; - Dali::Toolkit::Control arg2 ; - Dali::Toolkit::Control *argp2 ; - - arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; - argp2 = (Dali::Toolkit::Control *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); + arg1 = (Dali::Toolkit::Control *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); return ; } - arg2 = *argp2; + { try { - (arg1)->RemoveFocus(arg2); + Dali::Toolkit::DevelControl::SetLayoutingRequired(*arg1,jarg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -68524,29 +68695,27 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_RemoveFocus(void * { 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_View_IsLayoutingRequired(void * jarg1) { + unsigned int jresult ; + Dali::Toolkit::Control *arg1 = 0 ; + bool result; -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_KeyInputFocusChangedSignal(void * jarg1) { - void * jresult ; - Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; - Dali::Toolkit::KeyInputFocusManager::KeyInputFocusChangedSignalType *result = 0 ; - - arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; + arg1 = (Dali::Toolkit::Control *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control const & type is null", 0); + return 0; + } { try { - result = (Dali::Toolkit::KeyInputFocusManager::KeyInputFocusChangedSignalType *) &(arg1)->KeyInputFocusChangedSignal(); + result = (bool)DevelControl::IsLayoutingRequired( *arg1 ); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68566,18 +68735,322 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_KeyInputFocusChan } } - jresult = (void *)result; + jresult = result; return jresult; } - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Alignment_Padding__SWIG_0() { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ResourceReadySignal(void * jarg1) { void * jresult ; - Dali::Toolkit::Alignment::Padding *result = 0 ; + Dali::Toolkit::Control *arg1 = 0 ; + Dali::Toolkit::Control::ResourceReadySignalType *result = 0 ; + arg1 = (Dali::Toolkit::Control *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control & type is null", 0); + return 0; + } { try { - result = (Dali::Toolkit::Alignment::Padding *)new Dali::Toolkit::Alignment::Padding(); + result = (Dali::Toolkit::Control::ResourceReadySignalType *) &arg1->ResourceReadySignal(); + } 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_IsResourceReady(void * jarg1) { + unsigned int jresult ; + Dali::Toolkit::Control *arg1 = 0 ; + bool result; + + arg1 = (Dali::Toolkit::Control *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control const & type is null", 0); + return 0; + } + { + try { + result = (bool)arg1->IsResourceReady(); + } 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_new_KeyInputFocusManager() { + void * jresult ; + Dali::Toolkit::KeyInputFocusManager *result = 0 ; + + { + try { + result = (Dali::Toolkit::KeyInputFocusManager *)new Dali::Toolkit::KeyInputFocusManager(); + } 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_KeyInputFocusManager(void * jarg1) { + Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; + + arg1 = (Dali::Toolkit::KeyInputFocusManager *)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_KeyInputFocusManager_Get() { + void * jresult ; + Dali::Toolkit::KeyInputFocusManager result; + + { + try { + result = Dali::Toolkit::KeyInputFocusManager::Get(); + } 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::KeyInputFocusManager((const Dali::Toolkit::KeyInputFocusManager &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_SetFocus(void * jarg1, void * jarg2) { + Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; + Dali::Toolkit::Control arg2 ; + Dali::Toolkit::Control *argp2 ; + + arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; + argp2 = (Dali::Toolkit::Control *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); + return ; + } + arg2 = *argp2; + { + try { + (arg1)->SetFocus(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_KeyInputFocusManager_GetCurrentFocusControl(void * jarg1) { + void * jresult ; + Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; + Dali::Toolkit::Control result; + + arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; + { + try { + result = ((Dali::Toolkit::KeyInputFocusManager const *)arg1)->GetCurrentFocusControl(); + } 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::Control((const Dali::Toolkit::Control &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_KeyInputFocusManager_RemoveFocus(void * jarg1, void * jarg2) { + Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; + Dali::Toolkit::Control arg2 ; + Dali::Toolkit::Control *argp2 ; + + arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; + argp2 = (Dali::Toolkit::Control *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); + return ; + } + arg2 = *argp2; + { + try { + (arg1)->RemoveFocus(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_KeyInputFocusManager_KeyInputFocusChangedSignal(void * jarg1) { + void * jresult ; + Dali::Toolkit::KeyInputFocusManager *arg1 = (Dali::Toolkit::KeyInputFocusManager *) 0 ; + Dali::Toolkit::KeyInputFocusManager::KeyInputFocusChangedSignalType *result = 0 ; + + arg1 = (Dali::Toolkit::KeyInputFocusManager *)jarg1; + { + try { + result = (Dali::Toolkit::KeyInputFocusManager::KeyInputFocusChangedSignalType *) &(arg1)->KeyInputFocusChangedSignal(); + } 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_Alignment_Padding__SWIG_0() { + void * jresult ; + Dali::Toolkit::Alignment::Padding *result = 0 ; + + { + try { + result = (Dali::Toolkit::Alignment::Padding *)new Dali::Toolkit::Alignment::Padding(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -84161,9 +84634,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 +84672,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; @@ -91388,15 +91855,44 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VisualBase_CreatePropertyMap(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VisualBase__SWIG_2(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_Get() { void * jresult ; - Dali::Toolkit::Internal::Visual::Base *arg1 = (Dali::Toolkit::Internal::Visual::Base *) 0 ; - Dali::Toolkit::Visual::Base *result = 0 ; + Dali::Toolkit::VisualFactory result; - arg1 = (Dali::Toolkit::Internal::Visual::Base *)jarg1; { try { - result = (Dali::Toolkit::Visual::Base *)new Dali::Toolkit::Visual::Base(arg1); + result = Dali::Toolkit::VisualFactory::Get(); + } 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::VisualFactory((const Dali::Toolkit::VisualFactory &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VisualFactory__SWIG_0() { + void * jresult ; + Dali::Toolkit::VisualFactory *result = 0 ; + + { + try { + result = (Dali::Toolkit::VisualFactory *)new Dali::Toolkit::VisualFactory(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -91421,13 +91917,48 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VisualBase__SWIG_2(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_Get() { +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_VisualFactory(void * jarg1) { + Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; + + arg1 = (Dali::Toolkit::VisualFactory *)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_VisualFactory__SWIG_1(void * jarg1) { void * jresult ; - Dali::Toolkit::VisualFactory result; + Dali::Toolkit::VisualFactory *arg1 = 0 ; + Dali::Toolkit::VisualFactory *result = 0 ; + arg1 = (Dali::Toolkit::VisualFactory *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::VisualFactory const & type is null", 0); + return 0; + } { try { - result = Dali::Toolkit::VisualFactory::Get(); + result = (Dali::Toolkit::VisualFactory *)new Dali::Toolkit::VisualFactory((Dali::Toolkit::VisualFactory const &)*arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -91447,18 +91978,26 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_Get() { } } - jresult = new Dali::Toolkit::VisualFactory((const Dali::Toolkit::VisualFactory &)result); + jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VisualFactory__SWIG_0() { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_Assign(void * jarg1, void * jarg2) { void * jresult ; + Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; + Dali::Toolkit::VisualFactory *arg2 = 0 ; Dali::Toolkit::VisualFactory *result = 0 ; + arg1 = (Dali::Toolkit::VisualFactory *)jarg1; + arg2 = (Dali::Toolkit::VisualFactory *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::VisualFactory const & type is null", 0); + return 0; + } { try { - result = (Dali::Toolkit::VisualFactory *)new Dali::Toolkit::VisualFactory(); + result = (Dali::Toolkit::VisualFactory *) &(arg1)->operator =((Dali::Toolkit::VisualFactory const &)*arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -91483,10 +92022,170 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VisualFactory__SWIG_0() { } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_VisualFactory(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_CreateVisual__SWIG_0(void * jarg1, void * jarg2) { + void * jresult ; + Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; + Dali::Property::Map *arg2 = 0 ; + Dali::Toolkit::Visual::Base result; + + arg1 = (Dali::Toolkit::VisualFactory *)jarg1; + arg2 = (Dali::Property::Map *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map const & type is null", 0); + return 0; + } + { + try { + result = (arg1)->CreateVisual((Dali::Property::Map 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::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_CreateVisual__SWIG_1(void * jarg1, void * jarg2) { + void * jresult ; Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; + Dali::Image *arg2 = 0 ; + Dali::Toolkit::Visual::Base result; arg1 = (Dali::Toolkit::VisualFactory *)jarg1; + arg2 = (Dali::Image *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Image const & type is null", 0); + return 0; + } + { + try { + result = (arg1)->CreateVisual((Dali::Image 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::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_CreateVisual__SWIG_2(void * jarg1, char * jarg2, void * jarg3) { + void * jresult ; + Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; + std::string *arg2 = 0 ; + Dali::ImageDimensions arg3 ; + Dali::ImageDimensions *argp3 ; + Dali::Toolkit::Visual::Base result; + + arg1 = (Dali::Toolkit::VisualFactory *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg2_str(jarg2); + arg2 = &arg2_str; + argp3 = (Dali::ImageDimensions *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::ImageDimensions", 0); + return 0; + } + arg3 = *argp3; + { + try { + result = (arg1)->CreateVisual((std::string const &)*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 (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + + jresult = new Dali::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result); + + //argout typemap for const std::string& + + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_AsyncImageLoader__SWIG_0() { + void * jresult ; + Dali::Toolkit::AsyncImageLoader *result = 0 ; + + { + try { + result = (Dali::Toolkit::AsyncImageLoader *)new Dali::Toolkit::AsyncImageLoader(); + } 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_AsyncImageLoader(void * jarg1) { + Dali::Toolkit::AsyncImageLoader *arg1 = (Dali::Toolkit::AsyncImageLoader *) 0 ; + + arg1 = (Dali::Toolkit::AsyncImageLoader *)jarg1; { try { delete arg1; @@ -91512,284 +92211,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_VisualFactory(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VisualFactory__SWIG_1(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_AsyncImageLoader__SWIG_1(void * jarg1) { void * jresult ; - Dali::Toolkit::VisualFactory *arg1 = 0 ; - Dali::Toolkit::VisualFactory *result = 0 ; + Dali::Toolkit::AsyncImageLoader *arg1 = 0 ; + Dali::Toolkit::AsyncImageLoader *result = 0 ; - arg1 = (Dali::Toolkit::VisualFactory *)jarg1; + arg1 = (Dali::Toolkit::AsyncImageLoader *)jarg1; if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::VisualFactory const & type is null", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::AsyncImageLoader const & type is null", 0); return 0; } { try { - result = (Dali::Toolkit::VisualFactory *)new Dali::Toolkit::VisualFactory((Dali::Toolkit::VisualFactory 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_VisualFactory_Assign(void * jarg1, void * jarg2) { - void * jresult ; - Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; - Dali::Toolkit::VisualFactory *arg2 = 0 ; - Dali::Toolkit::VisualFactory *result = 0 ; - - arg1 = (Dali::Toolkit::VisualFactory *)jarg1; - arg2 = (Dali::Toolkit::VisualFactory *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::VisualFactory const & type is null", 0); - return 0; - } - { - try { - result = (Dali::Toolkit::VisualFactory *) &(arg1)->operator =((Dali::Toolkit::VisualFactory 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_VisualFactory_CreateVisual__SWIG_0(void * jarg1, void * jarg2) { - void * jresult ; - Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; - Dali::Property::Map *arg2 = 0 ; - Dali::Toolkit::Visual::Base result; - - arg1 = (Dali::Toolkit::VisualFactory *)jarg1; - arg2 = (Dali::Property::Map *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map const & type is null", 0); - return 0; - } - { - try { - result = (arg1)->CreateVisual((Dali::Property::Map 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::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_CreateVisual__SWIG_1(void * jarg1, void * jarg2) { - void * jresult ; - Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; - Dali::Image *arg2 = 0 ; - Dali::Toolkit::Visual::Base result; - - arg1 = (Dali::Toolkit::VisualFactory *)jarg1; - arg2 = (Dali::Image *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Image const & type is null", 0); - return 0; - } - { - try { - result = (arg1)->CreateVisual((Dali::Image 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::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VisualFactory_CreateVisual__SWIG_2(void * jarg1, char * jarg2, void * jarg3) { - void * jresult ; - Dali::Toolkit::VisualFactory *arg1 = (Dali::Toolkit::VisualFactory *) 0 ; - std::string *arg2 = 0 ; - Dali::ImageDimensions arg3 ; - Dali::ImageDimensions *argp3 ; - Dali::Toolkit::Visual::Base result; - - arg1 = (Dali::Toolkit::VisualFactory *)jarg1; - if (!jarg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); - return 0; - } - std::string arg2_str(jarg2); - arg2 = &arg2_str; - argp3 = (Dali::ImageDimensions *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::ImageDimensions", 0); - return 0; - } - arg3 = *argp3; - { - try { - result = (arg1)->CreateVisual((std::string const &)*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 (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = new Dali::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result); - - //argout typemap for const std::string& - - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_AsyncImageLoader__SWIG_0() { - void * jresult ; - Dali::Toolkit::AsyncImageLoader *result = 0 ; - - { - try { - result = (Dali::Toolkit::AsyncImageLoader *)new Dali::Toolkit::AsyncImageLoader(); - } 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_AsyncImageLoader(void * jarg1) { - Dali::Toolkit::AsyncImageLoader *arg1 = (Dali::Toolkit::AsyncImageLoader *) 0 ; - - arg1 = (Dali::Toolkit::AsyncImageLoader *)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_AsyncImageLoader__SWIG_1(void * jarg1) { - void * jresult ; - Dali::Toolkit::AsyncImageLoader *arg1 = 0 ; - Dali::Toolkit::AsyncImageLoader *result = 0 ; - - arg1 = (Dali::Toolkit::AsyncImageLoader *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::AsyncImageLoader const & type is null", 0); - return 0; - } - { - try { - result = (Dali::Toolkit::AsyncImageLoader *)new Dali::Toolkit::AsyncImageLoader((Dali::Toolkit::AsyncImageLoader const &)*arg1); + result = (Dali::Toolkit::AsyncImageLoader *)new Dali::Toolkit::AsyncImageLoader((Dali::Toolkit::AsyncImageLoader const &)*arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -92171,39 +92605,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_AsyncImageLoader_ImageLoadedSignal(voi } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_AsyncImageLoader__SWIG_2(void * jarg1) { - void * jresult ; - Dali::Toolkit::Internal::AsyncImageLoader *arg1 = (Dali::Toolkit::Internal::AsyncImageLoader *) 0 ; - Dali::Toolkit::AsyncImageLoader *result = 0 ; - - arg1 = (Dali::Toolkit::Internal::AsyncImageLoader *)jarg1; - { - try { - result = (Dali::Toolkit::AsyncImageLoader *)new Dali::Toolkit::AsyncImageLoader(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_LoadImageSynchronously__SWIG_0(char * jarg1) { void * jresult ; std::string *arg1 = 0 ; @@ -101066,6 +101467,1009 @@ SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_AsyncImageLoader_SWIGUpcas return (Dali::BaseHandle *)jarg1; } +/* + * Widget binding + */ +SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Widget_SWIGUpcast(Dali::Widget *jarg1) { + return (Dali::BaseHandle *)jarg1; +} + +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 ; + Dali::Widget result; + + { + try { + result = Dali::Widget::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 (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::Widget((const Dali::Widget &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Widget_New__SWIG_1(void * jarg1) { + void * jresult ; + 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 { + jresult = new Dali::Widget(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; + }; + } + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Widget() { + void * jresult ; + Dali::Widget *result = 0 ; + + { + try { + result = (Dali::Widget *)new Dali::Widget(); + } 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_Widget_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::Widget *arg1 = (Dali::Widget *) 0 ; + Dali::Widget *arg2 = 0 ; + Dali::Widget *result = 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::Widget *) &(arg1)->operator =((Dali::Widget 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_Widget(void * jarg1) { + Dali::Widget *arg1 = (Dali::Widget *) 0 ; + + arg1 = (Dali::Widget *)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_WidgetImpl_New() { + void * jresult ; + SwigDirector_WidgetImpl* result; + { + try { + result = new SwigDirector_WidgetImpl(); + } 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 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::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 { + (arg1)->OnCreate((std::string const &)*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_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 ; + + 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 { + (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 ; + }; + } 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_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::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 { + (arg1)->OnTerminate((std::string const &)*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_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 ; + + 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 { + (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 ; + }; + } 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_OnPause(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + { + try { + (arg1)->OnPause(); + } 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_OnPauseSwigExplicitWidgetImpl(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + { + try { + (arg1)->Dali::Internal::Adaptor::Widget::OnPause(); + } 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_OnResume(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + { + try { + (arg1)->OnResume(); + } 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_OnResumeSwigExplicitWidgetImpl(void * jarg1) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + + arg1 = (Dali::Internal::Adaptor::Widget *)jarg1; + { + try { + (arg1)->Dali::Internal::Adaptor::Widget::OnResume(); + } 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_OnResize(void * jarg1, void * jarg2) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::Window arg2 ; + Dali::Window *argp2 ; + + 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)->OnResize(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_OnResizeSwigExplicitWidgetImpl(void * jarg1, void * jarg2) { + Dali::Internal::Adaptor::Widget *arg1 = (Dali::Internal::Adaptor::Widget *) 0 ; + Dali::Window arg2 ; + Dali::Window *argp2 ; + + 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)->Dali::Internal::Adaptor::Widget::OnResize(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_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)->OnUpdate((std::string const &)*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_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::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)->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 ; + }; + } 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_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::Widget *)jarg1; + arg2 = (Dali::SlotObserver *)jarg2; + arg3 = (Dali::CallbackBase *)jarg3; + { + try { + (arg1)->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_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 @@ -101552,30 +102956,6 @@ 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; - { - try { - (arg1)->GetMetadata(*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_Resize(void * jarg1, unsigned short jarg2, unsigned short jarg3) { Dali::Devel::PixelBuffer *arg1 = (Dali::Devel::PixelBuffer *) 0 ; @@ -101605,34 +102985,6 @@ 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 ; - - 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 ;