Add Elementary.Get/SetScale() 05/114005/1
authorKangho Hur <kangho.hur@samsung.com>
Thu, 9 Feb 2017 13:03:16 +0000 (22:03 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Thu, 9 Feb 2017 13:03:16 +0000 (22:03 +0900)
Change-Id: I895be8c6428d97bcc6b80f81d16d34ee4c447182

ElmSharp.Test/TestRunner.cs
ElmSharp/ElmSharp/Elementary.cs
ElmSharp/Interop/Interop.Elementary.cs

index 9c759dc..267e9a8 100644 (file)
@@ -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);
index 5117ff9..92ec659 100644 (file)
@@ -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();
+        }
     }
 }
index 1474d14..aa17cc0 100644 (file)
@@ -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)]