From: Seungkeun Date: Mon, 29 Jul 2024 01:01:39 +0000 (+0900) Subject: Add binding for NativeImageSource.SetSource API X-Git-Tag: accepted/tizen/unified/20240731.160141~3^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=392fe91b57c9bc17369467664cf9272ec88d0d47;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add binding for NativeImageSource.SetSource API Change-Id: Ice75f31212d753c2b23982774837960d81d43590 --- diff --git a/dali-csharp-binder/dali-adaptor/dali-adaptor-wrap.cpp b/dali-csharp-binder/dali-adaptor/dali-adaptor-wrap.cpp index 6514f874..877afde6 100644 --- a/dali-csharp-binder/dali-adaptor/dali-adaptor-wrap.cpp +++ b/dali-csharp-binder/dali-adaptor/dali-adaptor-wrap.cpp @@ -1362,6 +1362,32 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_NativeImageSource_Delete(void* jarg1) { } } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_NativeImageSource_SetSource(void* jarg1, void* jarg2) +{ + NativeImageSource* pImage = (NativeImageSource*)jarg1; + Any source = (Any)jarg2; + + try { + pImage->SetSource(source); + } + 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_NativeImageSource_AcquireBuffer(void* jarg1, int* jarg2, int* jarg3, int* jarg4) { void* jresult;