diff options
author | xb.teng <xb.teng@samsung.com> | 2017-11-02 10:23:53 +0800 |
---|---|---|
committer | xb.teng <xb.teng@samsung.com> | 2017-11-02 10:23:53 +0800 |
commit | 2fa58839a2df5c3ef900f38e22c848971d4b34c5 (patch) | |
tree | 28475c5d75c12881480bc476368b54c5a4dc00dd | |
parent | 4b4276120b5738c8eb9b0fa3705e0cd87cedae16 (diff) | |
download | nui-tizen_4.0.tar.gz nui-tizen_4.0.tar.bz2 nui-tizen_4.0.zip |
Add SetTransparency api for Windowtizen_4.0
Change-Id: I50b5ce6d7fdec6e9410353cf4396afa5667e28d0
-rwxr-xr-x | Tizen.NUI/src/internal/ManualPINVOKE.cs | 3 | ||||
-rwxr-xr-x | Tizen.NUI/src/public/Window.cs | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Tizen.NUI/src/internal/ManualPINVOKE.cs b/Tizen.NUI/src/internal/ManualPINVOKE.cs index 7ac7fdf..d98da17 100755 --- a/Tizen.NUI/src/internal/ManualPINVOKE.cs +++ b/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/Tizen.NUI/src/public/Window.cs b/Tizen.NUI/src/public/Window.cs index dd7055f..b903a68 100755 --- a/Tizen.NUI/src/public/Window.cs +++ b/Tizen.NUI/src/public/Window.cs @@ -1335,6 +1335,15 @@ namespace Tizen.NUI } /// <summary> + /// Sets whether the window is transparent or not.. + /// </summary> + /// <param name="transparent">Whether the window is transparent.</param> + 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> public Size2D Size |