Merge "[NUI] Add SetTransparency api for Window" 5.0.0-preview1-00361
authordongsug song <dongsug.song@samsung.com>
Thu, 2 Nov 2017 08:11:07 +0000 (08:11 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 2 Nov 2017 08:11:07 +0000 (08:11 +0000)
src/Tizen.NUI/src/internal/ManualPINVOKE.cs
src/Tizen.NUI/src/public/Window.cs

index 7ac7fdf..d98da17 100755 (executable)
@@ -844,6 +844,9 @@ namespace Tizen.NUI
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Window_GetPosition")]
         public static extern global::System.IntPtr GetPosition(global::System.Runtime.InteropServices.HandleRef jarg1);
 
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Window_SetTransparency")]
+        public static extern global::System.IntPtr SetTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Adaptor_FeedKeyEvent")]
         public static extern void Window_FeedKeyEvent(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index 5306c67..51d4ca0 100644 (file)
@@ -1458,6 +1458,16 @@ namespace Tizen.NUI
         }
 
         /// <summary>
+        /// Sets whether the window is transparent or not.
+        /// </summary>
+        /// <param name="transparent">Whether the window is transparent.</param>
+        /// <since_tizen> 5 </since_tizen>
+        public void SetTransparency(bool transparent) {
+            NDalicManualPINVOKE.SetTransparency(swigCPtr, transparent);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
+
+        /// <summary>
         /// The window size property (read-only).
         /// </summary>
         /// <since_tizen> 3 </since_tizen>