[ElmSharp] Added some new APIs for AnimationView (#741)
[platform/core/csapi/tizenfx.git] / src / ElmSharp / Interop / Interop.Elementary.AnimationView.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18 using System.Runtime.InteropServices;
19
20 internal static partial class Interop
21 {
22     internal static partial class Elementary
23     {
24         [DllImport(Libraries.Elementary)]
25         internal static extern IntPtr elm_animation_view_add(IntPtr obj);
26
27         [DllImport(Libraries.Elementary)]
28         internal static extern bool elm_animation_view_auto_play_get(IntPtr obj);
29
30         [DllImport(Libraries.Elementary)]
31         internal static extern void elm_animation_view_auto_play_set(IntPtr obj, bool auto_play);
32
33         [DllImport(Libraries.Elementary)]
34         internal static extern bool elm_animation_view_auto_repeat_get(IntPtr obj);
35
36         [DllImport(Libraries.Elementary)]
37         internal static extern void elm_animation_view_auto_repeat_set(IntPtr obj, bool auto_repeat);
38
39         [DllImport(Libraries.Elementary)]
40         internal static extern double elm_animation_view_speed_get(IntPtr obj);
41
42         [DllImport(Libraries.Elementary)]
43         internal static extern bool elm_animation_view_speed_set(IntPtr obj, double speed);
44
45         [DllImport(Libraries.Elementary)]
46         internal static extern double elm_animation_view_duration_time_get(IntPtr obj);
47
48         [DllImport(Libraries.Elementary)]
49         internal static extern double elm_animation_view_progress_get(IntPtr obj);
50
51         [DllImport(Libraries.Elementary)]
52         internal static extern void elm_animation_view_progress_set(IntPtr obj, double progress);
53
54         [DllImport(Libraries.Elementary)]
55         internal static extern int elm_animation_view_frame_get(IntPtr obj);
56
57         [DllImport(Libraries.Elementary)]
58         internal static extern void elm_animation_view_frame_set(IntPtr obj, int frame_num);
59
60         [DllImport(Libraries.Elementary)]
61         internal static extern bool elm_animation_view_play(IntPtr obj);
62
63         [DllImport(Libraries.Elementary)]
64         internal static extern bool elm_animation_view_play_back(IntPtr obj);
65
66         [DllImport(Libraries.Elementary)]
67         internal static extern bool elm_animation_view_pause(IntPtr obj);
68
69         [DllImport(Libraries.Elementary)]
70         internal static extern bool elm_animation_view_resume(IntPtr obj);
71
72         [DllImport(Libraries.Elementary)]
73         internal static extern bool elm_animation_view_stop(IntPtr obj);
74
75         [DllImport(Libraries.Elementary, EntryPoint = "elm_animation_view_default_size_get")]
76         internal static extern Eina.Size2D _elm_animation_view_default_size_get(IntPtr obj);
77
78         internal static void elm_animation_view_default_size_get(IntPtr obj, out int w, out int h)
79         {
80             var info = _elm_animation_view_default_size_get(obj);
81             w = info.w;
82             h = info.h;
83         }
84
85         [DllImport(Libraries.Elementary)]
86         internal static extern int elm_animation_view_state_get(IntPtr obj);
87
88         [DllImport(Libraries.Elementary)]
89         internal static extern bool elm_animation_view_is_playing_back_get(IntPtr obj);
90
91         [DllImport(Libraries.Elementary)]
92         internal static extern int elm_animation_view_frame_count_get(IntPtr obj);
93
94         [DllImport(Libraries.Elementary)]
95         internal static extern double elm_animation_view_min_progress_get(IntPtr obj);
96
97         [DllImport(Libraries.Elementary)]
98         internal static extern void elm_animation_view_min_progress_set(IntPtr obj, double min_progress);
99
100         [DllImport(Libraries.Elementary)]
101         internal static extern double elm_animation_view_max_progress_get(IntPtr obj);
102
103         [DllImport(Libraries.Elementary)]
104         internal static extern void elm_animation_view_max_progress_set(IntPtr obj, double max_progress);
105
106         [DllImport(Libraries.Elementary)]
107         internal static extern int elm_animation_view_min_frame_get(IntPtr obj);
108
109         [DllImport(Libraries.Elementary)]
110         internal static extern void elm_animation_view_min_frame_set(IntPtr obj, int min_frame);
111
112         [DllImport(Libraries.Elementary)]
113         internal static extern int elm_animation_view_max_frame_get(IntPtr obj);
114
115         [DllImport(Libraries.Elementary)]
116         internal static extern void elm_animation_view_max_frame_set(IntPtr obj, double max_frame);
117
118         [DllImport(Libraries.Elementary)]
119         internal static extern bool elm_animation_view_file_set(IntPtr obj, string file, string key);
120     }
121 }