From 3995736cee03f2f7f82e258beef7d9396b110d1f 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: I2a6c2d7c4b9009836598a9ea50ffee86ab4b86d3 --- src/Tizen.NUI/src/internal/ManualPINVOKE.cs | 3 +++ src/Tizen.NUI/src/public/Window.cs | 10 ++++++++++ 2 files changed, 13 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..51d4ca0 100644 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -1458,6 +1458,16 @@ namespace Tizen.NUI } /// + /// Sets whether the window is transparent or not. + /// + /// Whether the window is transparent. + /// 5 + 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