summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-03-06 18:22:20 -0800
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2017-03-06 18:22:20 -0800
commitcc62896b904df628956431fe428dcd87de4cba57 (patch)
treecabb96e3bfca3147651059c6f9c8ee651eb48936
parent7998bed665fded697228af3e2665edbc1f04c79e (diff)
parent357772bfbd8179d2a73eb6d967b621a66f25d389 (diff)
downloadelm-sharp-cc62896b904df628956431fe428dcd87de4cba57.tar.gz
elm-sharp-cc62896b904df628956431fe428dcd87de4cba57.tar.bz2
elm-sharp-cc62896b904df628956431fe428dcd87de4cba57.zip
Merge changes I0645dc99,I9115d8e9 into tizen
* changes: Add Window Role property Add Window IsTransparent property
-rw-r--r--ElmSharp/ElmSharp/Window.cs24
-rw-r--r--ElmSharp/Interop/Interop.Elementary.Win.cs18
2 files changed, 42 insertions, 0 deletions
diff --git a/ElmSharp/ElmSharp/Window.cs b/ElmSharp/ElmSharp/Window.cs
index 3409b2d..be5a376 100644
--- a/ElmSharp/ElmSharp/Window.cs
+++ b/ElmSharp/ElmSharp/Window.cs
@@ -149,6 +149,30 @@ namespace ElmSharp
}
}
+ public bool Alpha
+ {
+ get
+ {
+ return Interop.Elementary.elm_win_alpha_get(Handle);
+ }
+ set
+ {
+ Interop.Elementary.elm_win_alpha_set(Handle, value);
+ }
+ }
+
+ public string Role
+ {
+ get
+ {
+ return Interop.Elementary.elm_win_role_get(Handle);
+ }
+ set
+ {
+ Interop.Elementary.elm_win_role_set(Handle, value);
+ }
+ }
+
public StatusBarMode StatusBarMode
{
get
diff --git a/ElmSharp/Interop/Interop.Elementary.Win.cs b/ElmSharp/Interop/Interop.Elementary.Win.cs
index 1a89ec8..f139430 100644
--- a/ElmSharp/Interop/Interop.Elementary.Win.cs
+++ b/ElmSharp/Interop/Interop.Elementary.Win.cs
@@ -52,6 +52,24 @@ 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 IntPtr _elm_win_role_get(IntPtr obj);
+
+ internal static string elm_win_role_get(IntPtr obj)
+ {
+ var text = _elm_win_role_get(obj);
+ return Marshal.PtrToStringAnsi(text);
+ }
+
+ [DllImport(Libraries.Elementary)]
+ internal static extern void elm_win_role_set(IntPtr obj, string role);
+
+ [DllImport(Libraries.Elementary)]
internal static extern void elm_win_autodel_set(IntPtr obj, bool autodel);
[DllImport(Libraries.Elementary)]