From 57752ad9fc09732d6ae463c94dec5fb738ee1285 Mon Sep 17 00:00:00 2001 From: Umar Date: Wed, 1 Nov 2017 16:30:00 +0000 Subject: [PATCH] Added bindings for Control Devel API GetVisualResourceStatus Change-Id: I7ee76885bc516bc8001e1fea13adf7176b0adc63 --- dali-csharp-binder/src/dali_wrap.cpp | 48 ++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 34c9356..0e99af2 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -51207,22 +51207,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Init(void * jarg1) SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Start(void * jarg1) { Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ; - - arg1 = (Dali::ApplicationExtensions *)jarg1; + + arg1 = (Dali::ApplicationExtensions *)jarg1; { try { (arg1)->Start(); } catch (std::out_of_range& e) { { - SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; }; } catch (std::exception& e) { { - SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; }; } catch (...) { { - SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }; } } @@ -59027,6 +59027,44 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_View__SWIG_2(void * jarg1) { 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::Toolkit::Internal::Control& controlImpl = Dali::Toolkit::Internal::GetImplementation( *arg1 ); + + Dali::Property::Index arg2 = 0 ; + arg2 = (Dali::Property::Index)jarg2; + + Toolkit::Visual::ResourceStatus result; + { + try { + result = DevelControl::GetVisualResourceStatus(controlImpl, 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 = (int)(result); + return jresult; +} + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_CreateTransition(void * jarg1, void * jarg2) { void * jresult; -- 2.7.4