[NUI] Add SetTransparency api for Window 52/158752/1
authorxb.teng <xb.teng@samsung.com>
Thu, 2 Nov 2017 02:31:50 +0000 (10:31 +0800)
committerhuiyu,eun <huiyu.eun@samsung.com>
Fri, 3 Nov 2017 01:15:47 +0000 (10:15 +0900)
Change-Id: I40bc2f246b5113a7daec2b58e3e7b9fc1fe862ad

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..bf53c0a 100644 (file)
@@ -1458,6 +1458,18 @@ 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>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        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>