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 bool MultiButtonEntryItemFilterCallback(IntPtr obj, string label, IntPtr itemData, IntPtr data);
26 public delegate string MultiButtonEntryFormatCallback(int count, IntPtr data);
28 [DllImport(Libraries.Elementary)]
29 internal static extern IntPtr elm_multibuttonentry_add(IntPtr obj);
31 [DllImport(Libraries.Elementary)]
32 internal static extern IntPtr elm_multibuttonentry_entry_get(IntPtr obj);
34 [DllImport(Libraries.Elementary)]
35 internal static extern bool elm_multibuttonentry_expanded_get(IntPtr obj);
37 [DllImport(Libraries.Elementary)]
38 internal static extern void elm_multibuttonentry_expanded_set(IntPtr obj, bool expanded);
40 [DllImport(Libraries.Elementary)]
41 internal static extern bool elm_multibuttonentry_editable_get(IntPtr obj);
43 [DllImport(Libraries.Elementary)]
44 internal static extern void elm_multibuttonentry_editable_set(IntPtr obj, bool editable);
46 [DllImport(Libraries.Elementary)]
47 internal static extern IntPtr elm_multibuttonentry_item_prepend(IntPtr obj, string label, Evas.SmartCallback func, IntPtr data);
49 [DllImport(Libraries.Elementary)]
50 internal static extern IntPtr elm_multibuttonentry_item_append(IntPtr obj, string label, Evas.SmartCallback func, IntPtr data);
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);
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);
58 [DllImport(Libraries.Elementary)]
59 internal static extern IntPtr elm_multibuttonentry_first_item_get(IntPtr obj);
61 [DllImport(Libraries.Elementary)]
62 internal static extern IntPtr elm_multibuttonentry_last_item_get(IntPtr obj);
64 [DllImport(Libraries.Elementary)]
65 internal static extern IntPtr elm_multibuttonentry_selected_item_get(IntPtr obj);
67 [DllImport(Libraries.Elementary)]
68 internal static extern void elm_multibuttonentry_item_selected_set(IntPtr obj, bool selected);
70 [DllImport(Libraries.Elementary)]
71 internal static extern bool elm_multibuttonentry_item_selected_get(IntPtr obj);
73 [DllImport(Libraries.Elementary)]
74 internal static extern void elm_multibuttonentry_clear(IntPtr obj);
76 [DllImport(Libraries.Elementary)]
77 internal static extern IntPtr elm_multibuttonentry_item_prev_get(IntPtr obj);
79 [DllImport(Libraries.Elementary)]
80 internal static extern IntPtr elm_multibuttonentry_item_next_get(IntPtr obj);
82 [DllImport(Libraries.Elementary)]
83 internal static extern void elm_multibuttonentry_format_function_set(IntPtr obj, MultiButtonEntryFormatCallback callback, IntPtr data);
85 [DllImport(Libraries.Elementary)]
86 internal static extern void elm_multibuttonentry_item_filter_append(IntPtr obj, MultiButtonEntryItemFilterCallback callback, IntPtr data);
88 [DllImport(Libraries.Elementary)]
89 internal static extern void elm_multibuttonentry_item_filter_prepend(IntPtr obj, MultiButtonEntryItemFilterCallback callback, IntPtr data);
91 [DllImport(Libraries.Elementary)]
92 internal static extern void elm_multibuttonentry_item_filter_remove(IntPtr obj, MultiButtonEntryItemFilterCallback callback, IntPtr data);