From: ANZ1217 Date: Tue, 7 Nov 2023 07:21:32 +0000 (+0900) Subject: Bind setter and getter for front buffer rendering in WindowData X-Git-Tag: dali_2.2.52~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6fc5b0e254088ae8f3a2296746f3f3cb3f60ce8;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Bind setter and getter for front buffer rendering in WindowData Change-Id: Ib068ce63a09107a23d5cf35b80914a9a004bb117 --- diff --git a/dali-csharp-binder/dali-adaptor/window-data-wrap.cpp b/dali-csharp-binder/dali-adaptor/window-data-wrap.cpp index 6bcd353..b1921a2 100644 --- a/dali-csharp-binder/dali-adaptor/window-data-wrap.cpp +++ b/dali-csharp-binder/dali-adaptor/window-data-wrap.cpp @@ -197,6 +197,50 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_WindowData_GetTransparency(void* nuiWind return result; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WindowData_SetFrontBufferRendering(void* nuiWindowData, bool nuiEnable) +{ + Dali::WindowData* pWindowData; + + pWindowData = (Dali::WindowData*)nuiWindowData; + if(!pWindowData) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::WindowData", 0); + return; + } + + { + try + { + pWindowData->SetFrontBufferRendering(nuiEnable); + } + CALL_CATCH_EXCEPTION(); + } +} + +SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_WindowData_GetFrontBufferRendering(void* nuiWindowData) +{ + Dali::WindowData* pWindowData; + bool result; + + pWindowData = (Dali::WindowData*)nuiWindowData; + if(!pWindowData) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::WindowData", 0); + return 0; + } + + { + try + { + result = (bool)pWindowData->GetFrontBufferRendering(); + } + CALL_CATCH_EXCEPTION(0); + } + + return result; +} + + #ifdef __cplusplus } #endif