From a28c426c3469d8571855e5e470e6edf663b8deff Mon Sep 17 00:00:00 2001 From: seungho baek Date: Wed, 25 Jan 2023 12:44:37 +0900 Subject: [PATCH] [Tizen] Add Overlay Layer in window Change-Id: I42d171aa4f63db6e507655c615f3c2394d333049 Signed-off-by: seungho baek --- dali-csharp-binder/src/window-wrap.cpp | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/dali-csharp-binder/src/window-wrap.cpp b/dali-csharp-binder/src/window-wrap.cpp index a2b66f7..888e99a 100644 --- a/dali-csharp-binder/src/window-wrap.cpp +++ b/dali-csharp-binder/src/window-wrap.cpp @@ -1756,15 +1756,31 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetBackgroundColor(void * jarg1 return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetRootLayer(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetRootLayer(void * csWindow) { void * jresult ; - Dali::Window *arg1 = (Dali::Window *) 0 ; + Dali::Window *window = (Dali::Window *) 0 ; Dali::Layer result; - arg1 = (Dali::Window *)jarg1; + window = (Dali::Window *)csWindow; + { + try { + result = ((Dali::Window const *)window)->GetRootLayer(); + } CALL_CATCH_EXCEPTION(0); + } + + jresult = new Dali::Layer((const Dali::Layer &)result); + return jresult; +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetOverlayLayer(void * csWindow) { + void * jresult ; + Dali::Window *window = (Dali::Window *) 0 ; + Dali::Layer result; + + window = (Dali::Window *)csWindow; { try { - result = ((Dali::Window const *)arg1)->GetRootLayer(); + result = ((Dali::Window *)window)->GetOverlayLayer(); } CALL_CATCH_EXCEPTION(0); } -- 2.7.4