Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / ElmSharp / Interop / Interop.Elementary.Box.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         public delegate void BoxLayoutCallback(IntPtr obj, IntPtr priv, IntPtr userData);
25
26         public delegate void BoxDataFreeCallback(IntPtr data);
27
28         [DllImport(Libraries.Elementary)]
29         internal static extern IntPtr elm_box_add(IntPtr obj);
30
31         [DllImport(Libraries.Elementary)]
32         internal static extern void elm_box_horizontal_set(IntPtr obj, bool horizontal);
33
34         [DllImport(Libraries.Elementary)]
35         internal static extern bool elm_box_horizontal_get(IntPtr obj);
36
37         [DllImport(Libraries.Elementary)]
38         internal static extern void elm_box_pack_start(IntPtr obj, IntPtr subobj);
39
40         [DllImport(Libraries.Elementary)]
41         internal static extern void elm_box_pack_end(IntPtr obj, IntPtr subobj);
42
43         [DllImport(Libraries.Elementary)]
44         internal static extern void elm_box_pack_before(IntPtr obj, IntPtr subobj, IntPtr before);
45
46         [DllImport(Libraries.Elementary)]
47         internal static extern void elm_box_pack_after(IntPtr obj, IntPtr subobj, IntPtr after);
48
49         [DllImport(Libraries.Elementary)]
50         internal static extern void elm_box_unpack(IntPtr obj, IntPtr subobj);
51
52         [DllImport(Libraries.Elementary)]
53         internal static extern void elm_box_unpack_all(IntPtr obj);
54
55         [DllImport(Libraries.Elementary)]
56         internal static extern void elm_box_align_set(IntPtr obj, double horizontal, double vertical);
57
58         [DllImport(Libraries.Elementary)]
59         internal static extern void elm_box_align_get(IntPtr obj, out double horizontal, out double vertical);
60
61         [DllImport(Libraries.Elementary)]
62         internal static extern void elm_box_align_get(IntPtr obj, IntPtr horizontal, out double vertical);
63
64         [DllImport(Libraries.Elementary)]
65         internal static extern void elm_box_align_get(IntPtr obj, out double horizontal, IntPtr vertical);
66
67         [DllImport(Libraries.Elementary)]
68         internal static extern IntPtr elm_box_children_get(IntPtr obj);
69
70         [DllImport(Libraries.Elementary)]
71         internal static extern void elm_box_clear(IntPtr obj);
72
73         [DllImport(Libraries.Elementary)]
74         internal static extern void elm_box_padding_set(IntPtr obj, int horizontal, int vertical);
75
76         [DllImport(Libraries.Elementary)]
77         internal static extern void elm_box_padding_get(IntPtr obj, out int horizontal, out int vertical);
78
79         [DllImport(Libraries.Elementary)]
80         internal static extern void elm_box_layout_set(IntPtr obj, BoxLayoutCallback cb, IntPtr data, BoxDataFreeCallback dataFreeCb);
81
82         [DllImport(Libraries.Elementary)]
83         internal static extern void elm_box_layout_set(IntPtr obj, BoxLayoutCallback cb, IntPtr data, IntPtr dataFreeCb);
84
85         [DllImport(Libraries.Elementary)]
86         internal static extern bool elm_box_homogeneous_get(IntPtr obj);
87
88         [DllImport(Libraries.Elementary)]
89         internal static extern void elm_box_homogeneous_set(IntPtr obj, bool ishomogeneous);
90
91         [DllImport(Libraries.Elementary)]
92         internal static extern void elm_box_recalculate(IntPtr obj);
93     }
94 }