diff options
author | Seungkeun Lee <sngn.lee@samsung.com> | 2017-02-09 16:11:44 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2017-02-09 16:11:44 -0800 |
commit | db4edadec35836fc29bdd1bdeaaae89ce6883e91 (patch) | |
tree | 25bde8828a9bb6143b78c29c27c90d18d5940ebe | |
parent | b177510673b0769a9177e9836bd89a23aee6b74d (diff) | |
parent | c402bc695107cf08295b4123295bca09add65015 (diff) | |
download | elm-sharp-db4edadec35836fc29bdd1bdeaaae89ce6883e91.tar.gz elm-sharp-db4edadec35836fc29bdd1bdeaaae89ce6883e91.tar.bz2 elm-sharp-db4edadec35836fc29bdd1bdeaaae89ce6883e91.zip |
Merge "Add Elementary.Get/SetScale()" into tizen
-rw-r--r-- | ElmSharp.Test/TestRunner.cs | 1 | ||||
-rw-r--r-- | ElmSharp/ElmSharp/Elementary.cs | 10 | ||||
-rw-r--r-- | ElmSharp/Interop/Interop.Elementary.cs | 6 |
3 files changed, 17 insertions, 0 deletions
diff --git a/ElmSharp.Test/TestRunner.cs b/ElmSharp.Test/TestRunner.cs index 9c759dc..267e9a8 100644 --- a/ElmSharp.Test/TestRunner.cs +++ b/ElmSharp.Test/TestRunner.cs @@ -202,6 +202,7 @@ namespace ElmSharp.Test Elementary.ThemeOverlay(); Console.WriteLine("ELM_PROFILE : {0}", Elementary.GetProfile()); + Console.WriteLine("ELM_SCALE : {0}", Elementary.GetScale()); TestRunner testRunner = new TestRunner(); testRunner.Run(args); diff --git a/ElmSharp/ElmSharp/Elementary.cs b/ElmSharp/ElmSharp/Elementary.cs index 5117ff9..92ec659 100644 --- a/ElmSharp/ElmSharp/Elementary.cs +++ b/ElmSharp/ElmSharp/Elementary.cs @@ -60,5 +60,15 @@ namespace ElmSharp { return Interop.Elementary.elm_config_profile_get(); } + + public static void SetScale(double scale) + { + Interop.Elementary.elm_config_scale_set(scale); + } + + public static double GetScale() + { + return Interop.Elementary.elm_config_scale_get(); + } } } diff --git a/ElmSharp/Interop/Interop.Elementary.cs b/ElmSharp/Interop/Interop.Elementary.cs index 1474d14..aa17cc0 100644 --- a/ElmSharp/Interop/Interop.Elementary.cs +++ b/ElmSharp/Interop/Interop.Elementary.cs @@ -31,6 +31,12 @@ internal static partial class Interop internal static extern IntPtr elm_config_accel_preference_set(string preference); [DllImport(Libraries.Elementary)] + internal static extern void elm_config_scale_set(double scale); + + [DllImport(Libraries.Elementary)] + internal static extern double elm_config_scale_get(); + + [DllImport(Libraries.Elementary)] internal static extern string elm_config_profile_get(); [DllImport(Libraries.Elementary)] |