Add ThemeOverlay() API in Elementary.
[platform/core/csapi/tizenfx.git] / src / ElmSharp / ElmSharp / Elementary.cs
1 using System;
2 using System.IO;
3
4 namespace ElmSharp
5 {
6     public static class Elementary
7     {
8         private static readonly string _themeFilePath = "/usr/share/edje/elm-sharp/elm-sharp-theme.edj";
9
10         public static void Initialize()
11         {
12             Interop.Elementary.elm_init(0, null);
13         }
14
15         public static void Shutdown()
16         {
17             Interop.Elementary.elm_shutdown();
18         }
19
20         public static void Run()
21         {
22             Interop.Elementary.elm_run();
23         }
24
25         public static void ThemeOverlay()
26         {
27             if (File.Exists(_themeFilePath))
28             {
29                 Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, _themeFilePath);
30             }
31         }
32
33         public static double GetSystemScrollFriction()
34         {
35             return Interop.Elementary.elm_config_scroll_bring_in_scroll_friction_get();
36         }
37
38         public static void SetSystemScrollFriction(double timeSet)
39         {
40             Interop.Elementary.elm_config_scroll_bring_in_scroll_friction_set(timeSet);
41         }
42     }
43 }