[4.0] Add SetTransparency binding for Window 74/158574/2
authorxb.teng <xb.teng@samsung.com>
Thu, 2 Nov 2017 02:18:55 +0000 (10:18 +0800)
committerXianbing Teng <xb.teng@samsung.com>
Thu, 2 Nov 2017 07:17:24 +0000 (07:17 +0000)
Change-Id: Ib1e084ebd6cf1369868ad61916a70b4a6b042996

dali-csharp-binder/src/window.cpp

index 29ea208e2aed4ed9d915e9fb55c95b3a68502420..ec9712265d7bb4f32ed610a39e172b213e27d445 100755 (executable)
@@ -2449,6 +2449,42 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetPosition(void * jarg1) {
   return jresult;
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetTransparency(void * jarg1, unsigned int jarg2) {
+  Dali::Window arg1 ;
+  bool arg2 ;
+  Dali::Window *argp1 ;
+
+  argp1 = (Dali::Window *)jarg1;
+  if (!argp1) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return ;
+  }
+  arg1 = *argp1;
+  arg2 = jarg2 ? true : false;
+  {
+    try {
+      arg1.SetTransparency(arg2);
+    } catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
+      };
+    } catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(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_Window_FeedKeyEvent(void * jarg1) {
   Dali::KeyEvent *arg1 = 0 ;