2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.Runtime.InteropServices;
20 internal static partial class Interop
22 internal static partial class Elementary
24 public delegate void BoxLayoutCallback(IntPtr obj, IntPtr priv, IntPtr userData);
26 public delegate void BoxDataFreeCallback(IntPtr data);
28 [DllImport(Libraries.Elementary)]
29 internal static extern IntPtr elm_box_add(IntPtr obj);
31 [DllImport(Libraries.Elementary)]
32 internal static extern void elm_box_horizontal_set(IntPtr obj, bool horizontal);
34 [DllImport(Libraries.Elementary)]
35 internal static extern bool elm_box_horizontal_get(IntPtr obj);
37 [DllImport(Libraries.Elementary)]
38 internal static extern void elm_box_pack_start(IntPtr obj, IntPtr subobj);
40 [DllImport(Libraries.Elementary)]
41 internal static extern void elm_box_pack_end(IntPtr obj, IntPtr subobj);
43 [DllImport(Libraries.Elementary)]
44 internal static extern void elm_box_pack_before(IntPtr obj, IntPtr subobj, IntPtr before);
46 [DllImport(Libraries.Elementary)]
47 internal static extern void elm_box_pack_after(IntPtr obj, IntPtr subobj, IntPtr after);
49 [DllImport(Libraries.Elementary)]
50 internal static extern void elm_box_unpack(IntPtr obj, IntPtr subobj);
52 [DllImport(Libraries.Elementary)]
53 internal static extern void elm_box_unpack_all(IntPtr obj);
55 [DllImport(Libraries.Elementary)]
56 internal static extern void elm_box_align_set(IntPtr obj, double horizontal, double vertical);
58 [DllImport(Libraries.Elementary)]
59 internal static extern void elm_box_align_get(IntPtr obj, out double horizontal, out double vertical);
61 [DllImport(Libraries.Elementary)]
62 internal static extern void elm_box_align_get(IntPtr obj, IntPtr horizontal, out double vertical);
64 [DllImport(Libraries.Elementary)]
65 internal static extern void elm_box_align_get(IntPtr obj, out double horizontal, IntPtr vertical);
67 [DllImport(Libraries.Elementary)]
68 internal static extern IntPtr elm_box_children_get(IntPtr obj);
70 [DllImport(Libraries.Elementary)]
71 internal static extern void elm_box_clear(IntPtr obj);
73 [DllImport(Libraries.Elementary)]
74 internal static extern void elm_box_padding_set(IntPtr obj, int horizontal, int vertical);
76 [DllImport(Libraries.Elementary)]
77 internal static extern void elm_box_padding_get(IntPtr obj, out int horizontal, out int vertical);
79 [DllImport(Libraries.Elementary)]
80 internal static extern void elm_box_layout_set(IntPtr obj, BoxLayoutCallback cb, IntPtr data, BoxDataFreeCallback dataFreeCb);
82 [DllImport(Libraries.Elementary)]
83 internal static extern void elm_box_layout_set(IntPtr obj, BoxLayoutCallback cb, IntPtr data, IntPtr dataFreeCb);
85 [DllImport(Libraries.Elementary)]
86 internal static extern bool elm_box_homogeneous_get(IntPtr obj);
88 [DllImport(Libraries.Elementary)]
89 internal static extern void elm_box_homogeneous_set(IntPtr obj, bool ishomogeneous);
91 [DllImport(Libraries.Elementary)]
92 internal static extern void elm_box_recalculate(IntPtr obj);