Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / ElmSharp / Interop / Interop.Elementary.MultiButtonEntry.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 bool MultiButtonEntryItemFilterCallback(IntPtr obj, string label, IntPtr itemData, IntPtr data);
25
26         public delegate string MultiButtonEntryFormatCallback(int count, IntPtr data);
27
28         [DllImport(Libraries.Elementary)]
29         internal static extern IntPtr elm_multibuttonentry_add(IntPtr obj);
30
31         [DllImport(Libraries.Elementary)]
32         internal static extern IntPtr elm_multibuttonentry_entry_get(IntPtr obj);
33
34         [DllImport(Libraries.Elementary)]
35         internal static extern bool elm_multibuttonentry_expanded_get(IntPtr obj);
36
37         [DllImport(Libraries.Elementary)]
38         internal static extern void elm_multibuttonentry_expanded_set(IntPtr obj, bool expanded);
39
40         [DllImport(Libraries.Elementary)]
41         internal static extern bool elm_multibuttonentry_editable_get(IntPtr obj);
42
43         [DllImport(Libraries.Elementary)]
44         internal static extern void elm_multibuttonentry_editable_set(IntPtr obj, bool editable);
45
46         [DllImport(Libraries.Elementary)]
47         internal static extern IntPtr elm_multibuttonentry_item_prepend(IntPtr obj, string label, Evas.SmartCallback func, IntPtr data);
48
49         [DllImport(Libraries.Elementary)]
50         internal static extern IntPtr elm_multibuttonentry_item_append(IntPtr obj, string label, Evas.SmartCallback func, IntPtr data);
51
52         [DllImport(Libraries.Elementary)]
53         internal static extern IntPtr elm_multibuttonentry_item_insert_before(IntPtr obj, IntPtr before, string label, Evas.SmartCallback func, IntPtr data);
54
55         [DllImport(Libraries.Elementary)]
56         internal static extern IntPtr elm_multibuttonentry_item_insert_after(IntPtr obj, IntPtr after, string label, Evas.SmartCallback func, IntPtr data);
57
58         [DllImport(Libraries.Elementary)]
59         internal static extern IntPtr elm_multibuttonentry_first_item_get(IntPtr obj);
60
61         [DllImport(Libraries.Elementary)]
62         internal static extern IntPtr elm_multibuttonentry_last_item_get(IntPtr obj);
63
64         [DllImport(Libraries.Elementary)]
65         internal static extern IntPtr elm_multibuttonentry_selected_item_get(IntPtr obj);
66
67         [DllImport(Libraries.Elementary)]
68         internal static extern void elm_multibuttonentry_item_selected_set(IntPtr obj, bool selected);
69
70         [DllImport(Libraries.Elementary)]
71         internal static extern bool elm_multibuttonentry_item_selected_get(IntPtr obj);
72
73         [DllImport(Libraries.Elementary)]
74         internal static extern void elm_multibuttonentry_clear(IntPtr obj);
75
76         [DllImport(Libraries.Elementary)]
77         internal static extern IntPtr elm_multibuttonentry_item_prev_get(IntPtr obj);
78
79         [DllImport(Libraries.Elementary)]
80         internal static extern IntPtr elm_multibuttonentry_item_next_get(IntPtr obj);
81
82         [DllImport(Libraries.Elementary)]
83         internal static extern void elm_multibuttonentry_format_function_set(IntPtr obj, MultiButtonEntryFormatCallback callback, IntPtr data);
84
85         [DllImport(Libraries.Elementary)]
86         internal static extern void elm_multibuttonentry_item_filter_append(IntPtr obj, MultiButtonEntryItemFilterCallback callback, IntPtr data);
87
88         [DllImport(Libraries.Elementary)]
89         internal static extern void elm_multibuttonentry_item_filter_prepend(IntPtr obj, MultiButtonEntryItemFilterCallback callback, IntPtr data);
90
91         [DllImport(Libraries.Elementary)]
92         internal static extern void elm_multibuttonentry_item_filter_remove(IntPtr obj, MultiButtonEntryItemFilterCallback callback, IntPtr data);
93     }
94 }