X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-csharp-binder%2Fsrc%2Fdali_wrap.cpp;h=39e89be18fb0d5142af8e2f6f03bbc8f4ad4b4fb;hb=2d518027a13edc7b61dfc572b2542ca4ee2489ec;hp=65faceb01f804034866a06ffe0fbf0867385f66c;hpb=79576250f3ac4ba70d66c70b4131f3bdd0a4fc37;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 65faceb..39e89be 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -435,8 +435,6 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include -#include -#include #include #include @@ -23976,7 +23974,9 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PixelData_New(unsigned char* jarg1, un arg6 = (Dali::PixelData::ReleaseFunction)jarg6; { try { - result = Dali::PixelData::New(arg1,arg2,arg3,arg4,arg5,arg6); + auto pixelBuffer = new unsigned char[jarg2]; + memcpy( pixelBuffer, arg1, arg2); + result = Dali::PixelData::New(pixelBuffer,arg2,arg3,arg4,arg5,arg6); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -36660,14 +36660,6 @@ 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; @@ -58749,271 +58741,15 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Timer_TickSignal(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_DragAndDropDetector() { - void * jresult ; - Dali::DragAndDropDetector *result = 0 ; - - { - try { - result = (Dali::DragAndDropDetector *)new Dali::DragAndDropDetector(); - } 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_DragAndDropDetector(void * jarg1) { - Dali::DragAndDropDetector *arg1 = (Dali::DragAndDropDetector *) 0 ; - - arg1 = (Dali::DragAndDropDetector *)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 char * SWIGSTDCALL CSharp_Dali_DragAndDropDetector_GetContent(void * jarg1) { - char * jresult ; - Dali::DragAndDropDetector *arg1 = (Dali::DragAndDropDetector *) 0 ; - std::string *result = 0 ; - - arg1 = (Dali::DragAndDropDetector *)jarg1; - { - try { - result = (std::string *) &((Dali::DragAndDropDetector const *)arg1)->GetContent(); - } 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 = SWIG_csharp_string_callback(result->c_str()); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_DragAndDropDetector_GetCurrentScreenPosition(void * jarg1) { - void * jresult ; - Dali::DragAndDropDetector *arg1 = (Dali::DragAndDropDetector *) 0 ; - Dali::Vector2 result; - - arg1 = (Dali::DragAndDropDetector *)jarg1; - { - try { - result = ((Dali::DragAndDropDetector const *)arg1)->GetCurrentScreenPosition(); - } 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::Vector2((const Dali::Vector2 &)result); - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_DragAndDropDetector_EnteredSignal(void * jarg1) { - void * jresult ; - Dali::DragAndDropDetector *arg1 = (Dali::DragAndDropDetector *) 0 ; - Dali::DragAndDropDetector::DragAndDropSignal *result = 0 ; - - arg1 = (Dali::DragAndDropDetector *)jarg1; - { - try { - result = (Dali::DragAndDropDetector::DragAndDropSignal *) &(arg1)->EnteredSignal(); - } 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_DragAndDropDetector_ExitedSignal(void * jarg1) { - void * jresult ; - Dali::DragAndDropDetector *arg1 = (Dali::DragAndDropDetector *) 0 ; - Dali::DragAndDropDetector::DragAndDropSignal *result = 0 ; - - arg1 = (Dali::DragAndDropDetector *)jarg1; - { - try { - result = (Dali::DragAndDropDetector::DragAndDropSignal *) &(arg1)->ExitedSignal(); - } 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_DragAndDropDetector_MovedSignal(void * jarg1) { - void * jresult ; - Dali::DragAndDropDetector *arg1 = (Dali::DragAndDropDetector *) 0 ; - Dali::DragAndDropDetector::DragAndDropSignal *result = 0 ; - - arg1 = (Dali::DragAndDropDetector *)jarg1; - { - try { - result = (Dali::DragAndDropDetector::DragAndDropSignal *) &(arg1)->MovedSignal(); - } 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_DragAndDropDetector_DroppedSignal(void * jarg1) { - void * jresult ; - Dali::DragAndDropDetector *arg1 = (Dali::DragAndDropDetector *) 0 ; - Dali::DragAndDropDetector::DragAndDropSignal *result = 0 ; - - arg1 = (Dali::DragAndDropDetector *)jarg1; - { - try { - result = (Dali::DragAndDropDetector::DragAndDropSignal *) &(arg1)->DroppedSignal(); - } 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_ApplicationExtensions__SWIG_0() { - void * jresult ; - Dali::ApplicationExtensions *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TimerSignalType_Empty(void * jarg1) { + unsigned int jresult ; + Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; + bool result; + arg1 = (Dali::Signal< bool () > *)jarg1; { try { - result = (Dali::ApplicationExtensions *)new Dali::ApplicationExtensions(); + result = (bool)Dali_Signal_Sl_bool_Sp__SP__Sg__Empty((Dali::Signal< bool () > const *)arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -59033,20 +58769,20 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationExtensions__SWIG_0() { } } - jresult = (void *)result; + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationExtensions__SWIG_1(void * jarg1) { - void * jresult ; - Dali::Application *arg1 = (Dali::Application *) 0 ; - Dali::ApplicationExtensions *result = 0 ; +SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_TimerSignalType_GetConnectionCount(void * jarg1) { + unsigned long jresult ; + Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; + std::size_t result; - arg1 = (Dali::Application *)jarg1; + arg1 = (Dali::Signal< bool () > *)jarg1; { try { - result = (Dali::ApplicationExtensions *)new Dali::ApplicationExtensions(arg1); + result = Dali_Signal_Sl_bool_Sp__SP__Sg__GetConnectionCount((Dali::Signal< bool () > const *)arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -59066,18 +58802,20 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationExtensions__SWIG_1(void } } - jresult = (void *)result; + jresult = (unsigned long)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationExtensions(void * jarg1) { - Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TimerSignalType_Connect(void * jarg1, void * jarg2) { + Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; + bool (*arg2)() = (bool (*)()) 0 ; - arg1 = (Dali::ApplicationExtensions *)jarg1; + arg1 = (Dali::Signal< bool () > *)jarg1; + arg2 = (bool (*)())jarg2; { try { - delete arg1; + Dali_Signal_Sl_bool_Sp__SP__Sg__Connect(arg1,arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -59100,276 +58838,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationExtensions(void * jarg } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Init(void * jarg1) { - Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TimerSignalType_Disconnect(void * jarg1, void * jarg2) { + Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; + bool (*arg2)() = (bool (*)()) 0 ; - arg1 = (Dali::ApplicationExtensions *)jarg1; + arg1 = (Dali::Signal< bool () > *)jarg1; + arg2 = (bool (*)())jarg2; { try { - (arg1)->Init(); - } 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_ApplicationExtensions_Start(void * jarg1) { - Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; - - arg1 = (Dali::ApplicationExtensions *)jarg1; - { - try { - (arg1)->Start(); - } 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 (DaliException e) { SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; } catch (...) { SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; } - } -} - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Terminate(void * jarg1) { - Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; - - arg1 = (Dali::ApplicationExtensions *)jarg1; - { - try { - (arg1)->Terminate(); - } 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_ApplicationExtensions_Pause(void * jarg1) { - Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; - - arg1 = (Dali::ApplicationExtensions *)jarg1; - { - try { - (arg1)->Pause(); - } 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_ApplicationExtensions_Resume(void * jarg1) { - Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; - - arg1 = (Dali::ApplicationExtensions *)jarg1; - { - try { - (arg1)->Resume(); - } 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_ApplicationExtensions_LanguageChange(void * jarg1) { - Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; - - arg1 = (Dali::ApplicationExtensions *)jarg1; - { - try { - (arg1)->LanguageChange(); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TimerSignalType_Empty(void * jarg1) { - unsigned int jresult ; - Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; - bool result; - - arg1 = (Dali::Signal< bool () > *)jarg1; - { - try { - result = (bool)Dali_Signal_Sl_bool_Sp__SP__Sg__Empty((Dali::Signal< bool () > const *)arg1); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_TimerSignalType_GetConnectionCount(void * jarg1) { - unsigned long jresult ; - Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; - std::size_t result; - - arg1 = (Dali::Signal< bool () > *)jarg1; - { - try { - result = Dali_Signal_Sl_bool_Sp__SP__Sg__GetConnectionCount((Dali::Signal< bool () > const *)arg1); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = (unsigned long)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TimerSignalType_Connect(void * jarg1, void * jarg2) { - Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; - bool (*arg2)() = (bool (*)()) 0 ; - - arg1 = (Dali::Signal< bool () > *)jarg1; - arg2 = (bool (*)())jarg2; - { - try { - Dali_Signal_Sl_bool_Sp__SP__Sg__Connect(arg1,arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TimerSignalType_Disconnect(void * jarg1, void * jarg2) { - Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ; - bool (*arg2)() = (bool (*)()) 0 ; - - arg1 = (Dali::Signal< bool () > *)jarg1; - arg2 = (bool (*)())jarg2; - { - try { - Dali_Signal_Sl_bool_Sp__SP__Sg__Disconnect(arg1,arg2); + Dali_Signal_Sl_bool_Sp__SP__Sg__Disconnect(arg1,arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -68310,93 +67787,15 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusGainedSignal(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusLostSignal(void * jarg1) { - void * jresult ; - Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; - Dali::Toolkit::Control::KeyInputFocusSignalType *result = 0 ; - - arg1 = (Dali::Toolkit::Control *)jarg1; - { - try { - result = (Dali::Toolkit::Control::KeyInputFocusSignalType *) &(arg1)->KeyInputFocusLostSignal(); - } 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_View__SWIG_2(void * jarg1) { - void * jresult ; - Dali::Toolkit::Internal::Control *arg1 = 0 ; - Dali::Toolkit::Control *result = 0 ; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); - return 0; - } - { - try { - result = (Dali::Toolkit::Control *)new Dali::Toolkit::Control(*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_View_GetVisualResourceStatus(void * jarg1, int jarg2) -{ - int jresult; - Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; - arg1 = (Dali::Toolkit::Control *)jarg1; - - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control & type is null", 0); - return 0; - } - - Dali::Property::Index arg2 = 0 ; - arg2 = (Dali::Property::Index)jarg2; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_KeyInputFocusLostSignal(void * jarg1) { + void * jresult ; + Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; + Dali::Toolkit::Control::KeyInputFocusSignalType *result = 0 ; - Toolkit::Visual::ResourceStatus result; + arg1 = (Dali::Toolkit::Control *)jarg1; { try { - result = arg1->GetVisualResourceStatus(arg2); + result = (Dali::Toolkit::Control::KeyInputFocusSignalType *) &(arg1)->KeyInputFocusLostSignal(); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68405,35 +67804,35 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_View_GetVisualResourceStatus(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 = (int)(result); + + jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_CreateTransition(void * jarg1, void * jarg2) -{ - void * jresult; - Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; - arg1 = (Dali::Toolkit::Control *)jarg1; - Dali::Toolkit::Internal::Control& controlImpl = Dali::Toolkit::Internal::GetImplementation( *arg1 ); - - Dali::Toolkit::TransitionData *arg2 = 0 ; - Dali::Animation result; +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_View__SWIG_2(void * jarg1) { + void * jresult ; + Dali::Toolkit::Internal::Control *arg1 = 0 ; + Dali::Toolkit::Control *result = 0 ; - arg2 = (Dali::Toolkit::TransitionData *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::TransitionData const & type is null", 0); + arg1 = (Dali::Toolkit::Internal::Control *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); return 0; } { try { - result = DevelControl::CreateTransition( controlImpl, (Dali::Toolkit::TransitionData const &)*arg2); + result = (Dali::Toolkit::Control *)new Dali::Toolkit::Control(*arg1); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68453,63 +67852,28 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_CreateTransition(void * jarg1, vo } } - jresult = new Dali::Animation((const Dali::Animation &)result); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_DoAction(void * jarg1, int jarg2, int jarg3, void * jarg4 ) +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_View_GetVisualResourceStatus(void * jarg1, int jarg2) { - Dali::Toolkit::Control arg1; - Dali::Toolkit::Control *argp1 = (Dali::Toolkit::Control *)jarg1; + int jresult; + Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; + arg1 = (Dali::Toolkit::Control *)jarg1; - if (!argp1) { + if (!arg1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control & type is null", 0); + return 0; } - arg1 = *argp1; Dali::Property::Index arg2 = 0 ; arg2 = (Dali::Property::Index)jarg2; - Dali::Property::Index arg3 = 0 ; - arg3 = (Dali::Property::Index)jarg3; - - Dali::Property::Value arg4; - arg4 = (Dali::Property::Value *)jarg4; - - { - try { - DevelControl::DoAction(arg1, arg2, arg3, arg4); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } - - -} - -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetLayout__SWIG_0(void * jarg1) { - void * jresult ; - Dali::Toolkit::Internal::Control *arg1 = 0 ; - Dali::Toolkit::LayoutItem result; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); - return 0; - } + Toolkit::Visual::ResourceStatus result; { try { - result = Dali::Toolkit::DevelControl::GetLayout(*arg1); + result = arg1->GetVisualResourceStatus(arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68524,26 +67888,29 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetLayout__SWIG_0(void * jarg1) { }; } } - jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result); + jresult = (int)(result); return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_CreateTransition(void * jarg1, void * jarg2) +{ + void * jresult; + Dali::Toolkit::Control *arg1 = (Dali::Toolkit::Control *) 0 ; + arg1 = (Dali::Toolkit::Control *)jarg1; -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetLayout__SWIG_1(void * jarg1) { - void * jresult ; - Dali::Toolkit::Control arg1 ; - Dali::Toolkit::Control *argp1 ; - Dali::Toolkit::LayoutItem result; + Dali::Toolkit::Internal::Control& controlImpl = Dali::Toolkit::Internal::GetImplementation( *arg1 ); - argp1 = (Dali::Toolkit::Control *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); + Dali::Toolkit::TransitionData *arg2 = 0 ; + Dali::Animation result; + + arg2 = (Dali::Toolkit::TransitionData *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::TransitionData const & type is null", 0); return 0; } - arg1 = *argp1; { try { - result = Dali::Toolkit::DevelControl::GetLayout(arg1); + result = DevelControl::CreateTransition( controlImpl, (Dali::Toolkit::TransitionData const &)*arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -68552,101 +67919,42 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetLayout__SWIG_1(void * jarg1) { { SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - 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 ; - - arg1 = (Dali::Toolkit::Internal::Control *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); - return ; - } - argp2 = (Dali::Toolkit::LayoutItem *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutItem", 0); - return ; - } - arg2 = *argp2; - { - try { - Dali::Toolkit::DevelControl::SetLayout(*arg1,arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { + } catch (Dali::DaliException e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }; } } -} + jresult = new Dali::Animation((const Dali::Animation &)result); + return jresult; +} -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 ; +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_View_DoAction(void * jarg1, int jarg2, int jarg3, void * jarg4 ) +{ + Dali::Toolkit::Control arg1; + Dali::Toolkit::Control *argp1 = (Dali::Toolkit::Control *)jarg1; - argp1 = (Dali::Toolkit::Control *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::Control", 0); - return ; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Control & type is null", 0); } arg1 = *argp1; - argp2 = (Dali::Toolkit::LayoutItem *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutItem", 0); - return ; - } - arg2 = *argp2; - { - try { - Dali::Toolkit::DevelControl::SetLayout(arg1,arg2); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; - }; - } - } -} -SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetLayoutingRequired(void * jarg1, bool jarg2) { - Dali::Toolkit::Control *arg1 = 0 ; + Dali::Property::Index arg2 = 0 ; + arg2 = (Dali::Property::Index)jarg2; - arg1 = (Dali::Toolkit::Control *)jarg1; - if (!arg1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::Control & type is null", 0); - return ; - } + Dali::Property::Index arg3 = 0 ; + arg3 = (Dali::Property::Index)jarg3; + + Dali::Property::Value *arg4 = (Dali::Property::Value *)jarg4; { try { - Dali::Toolkit::DevelControl::SetLayoutingRequired(*arg1,jarg2); + DevelControl::DoAction(arg1, arg2, arg3, *arg4); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; @@ -68661,42 +67969,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetLayoutingRequired(void * jarg1, bool }; } } -} -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_View_IsLayoutingRequired(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)DevelControl::IsLayoutingRequired( *arg1 ); - } catch (std::out_of_range& e) { - { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; - }; - } catch (std::exception& e) { - { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; - }; - } catch (Dali::DaliException e) { - { - SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; - }; - } catch (...) { - { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; - }; - } - } - - jresult = result; - return jresult; } SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ResourceReadySignal(void * jarg1) { @@ -92793,10 +92067,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_SetCustomAlgorithm(void * jarg1, void * } arg1 = *argp1; arg2 = (Dali::Toolkit::DevelKeyboardFocusManager::CustomAlgorithmInterface *)jarg2; - if (!arg2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::DevelKeyboardFocusManager::CustomAlgorithmInterface & type is null", 0); - return ; - } + //Null checking of arg2 is removed. arg2's null set means resetting so it can be a null value. { try { Dali::Toolkit::DevelKeyboardFocusManager::SetCustomAlgorithm(arg1,*arg2); @@ -101216,11 +100487,6 @@ SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Timer_SWIGUpcast(Dali::Tim return (Dali::BaseHandle *)jarg1; } -SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_DragAndDropDetector_SWIGUpcast(Dali::DragAndDropDetector *jarg1) { - return (Dali::BaseHandle *)jarg1; -} - - SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_Builder_SWIGUpcast(Dali::Toolkit::Builder *jarg1) { return (Dali::BaseHandle *)jarg1; } @@ -103323,6 +102589,38 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetClosestImageSize__SWIG_4(char * jar return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetOriginalImageSize(char * jarg1) { + void * jresult ; + std::string *arg1 = 0 ; + Dali::ImageDimensions result; + + if (!jarg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + std::string arg1_str(jarg1); + arg1 = &arg1_str; + { + try { + result = Dali::GetOriginalImageSize((std::string 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 = new Dali::ImageDimensions((const Dali::ImageDimensions &)result); + + return jresult; +} SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_DownloadImageSynchronously__SWIG_0(char * jarg1, void * jarg2, int jarg3, int jarg4, unsigned int jarg5) { void * jresult ;