From e2d68735ebe04978569bd61546d1f2269c40a430 Mon Sep 17 00:00:00 2001 From: "xb.teng" Date: Thu, 2 Nov 2017 10:31:50 +0800 Subject: [PATCH] [NUI] Add SetTransparency api for Window Change-Id: I40bc2f246b5113a7daec2b58e3e7b9fc1fe862ad --- src/Tizen.NUI/src/internal/ManualPINVOKE.cs | 3 +++ src/Tizen.NUI/src/public/Window.cs | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs index 7ac7fdf..d98da17 100755 --- a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs @@ -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); diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index 5306c67..bf53c0a 100644 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -1458,6 +1458,18 @@ namespace Tizen.NUI } /// + /// Sets whether the window is transparent or not. + /// + /// Whether the window is transparent. + /// 5 + /// 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(); + } + + /// /// The window size property (read-only). /// /// 3 -- 2.7.4