[Tizen] Add Overlay Layer in window 23/287223/2
authorseungho baek <sbsh.baek@samsung.com>
Wed, 25 Jan 2023 03:44:37 +0000 (12:44 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Wed, 25 Jan 2023 03:51:30 +0000 (12:51 +0900)
Change-Id: I42d171aa4f63db6e507655c615f3c2394d333049
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
dali-csharp-binder/src/window-wrap.cpp

index a2b66f7..888e99a 100644 (file)
@@ -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);
   }