diff options
author | Donghee Ye <donghee.ye@samsung.com> | 2017-03-06 10:28:38 +0900 |
---|---|---|
committer | Donghee Ye <donghee.ye@samsung.com> | 2017-03-06 20:11:39 +0900 |
commit | f7a48259f341b5928699ee7422b39c04b4d2c9c8 (patch) | |
tree | 0ac486fdb24b2f8a895b23f3a650df7e0b3bdedd | |
parent | 55264ed05f2717cdc3f73ba07eb7a465c021714c (diff) | |
download | elm-sharp-f7a48259f341b5928699ee7422b39c04b4d2c9c8.tar.gz elm-sharp-f7a48259f341b5928699ee7422b39c04b4d2c9c8.tar.bz2 elm-sharp-f7a48259f341b5928699ee7422b39c04b4d2c9c8.zip |
Add Window IsTransparent property
Change-Id: I9115d8e9f5dc9f6123e446da5fbe9ca8d6363074
-rw-r--r-- | ElmSharp/ElmSharp/Window.cs | 12 | ||||
-rw-r--r-- | ElmSharp/Interop/Interop.Elementary.Win.cs | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/ElmSharp/ElmSharp/Window.cs b/ElmSharp/ElmSharp/Window.cs index 3409b2d..0bb0df7 100644 --- a/ElmSharp/ElmSharp/Window.cs +++ b/ElmSharp/ElmSharp/Window.cs @@ -149,6 +149,18 @@ namespace ElmSharp } } + public bool Alpha + { + get + { + return Interop.Elementary.elm_win_alpha_get(Handle); + } + set + { + Interop.Elementary.elm_win_alpha_set(Handle, value); + } + } + public StatusBarMode StatusBarMode { get diff --git a/ElmSharp/Interop/Interop.Elementary.Win.cs b/ElmSharp/Interop/Interop.Elementary.Win.cs index aadc2de..345e918 100644 --- a/ElmSharp/Interop/Interop.Elementary.Win.cs +++ b/ElmSharp/Interop/Interop.Elementary.Win.cs @@ -52,6 +52,12 @@ internal static partial class Interop internal static extern void elm_win_resize_object_add(IntPtr obj, IntPtr subobj); [DllImport(Libraries.Elementary)] + internal static extern bool elm_win_alpha_get(IntPtr obj); + + [DllImport(Libraries.Elementary)] + internal static extern void elm_win_alpha_set(IntPtr obj, bool alpha); + + [DllImport(Libraries.Elementary)] internal static extern void elm_win_autodel_set(IntPtr obj, bool autodel); [DllImport(Libraries.Elementary)] |