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 Eext
24 [DllImport(Libraries.Eext)]
25 internal static extern IntPtr eext_more_option_add(IntPtr parent);
27 [DllImport(Libraries.Eext)]
28 internal static extern void eext_more_option_direction_set(IntPtr obj, int direction);
30 [DllImport(Libraries.Eext)]
31 internal static extern int eext_more_option_direction_get(IntPtr obj);
33 [DllImport(Libraries.Eext)]
34 internal static extern IntPtr eext_more_option_item_append(IntPtr obj);
36 [DllImport(Libraries.Eext)]
37 internal static extern void eext_more_option_item_del(IntPtr obj);
39 [DllImport(Libraries.Eext)]
40 internal static extern void eext_more_option_item_domain_translatable_part_text_set(IntPtr item, string part_name, string domain, string text);
42 [DllImport(Libraries.Eext)]
43 internal static extern IntPtr eext_more_option_item_insert_after(IntPtr obj, IntPtr after);
45 [DllImport(Libraries.Eext)]
46 internal static extern IntPtr eext_more_option_item_insert_before(IntPtr obj, IntPtr before);
48 [DllImport(Libraries.Eext)]
49 internal static extern IntPtr eext_more_option_item_part_content_get(IntPtr obj, string part_name);
51 [DllImport(Libraries.Eext)]
52 internal static extern void eext_more_option_item_part_content_set(IntPtr item, string part_name, IntPtr content);
54 [DllImport(Libraries.Eext, EntryPoint = "eext_more_option_item_part_text_get")]
55 static extern IntPtr _eext_more_option_item_part_text_get(IntPtr item, string part_name);
57 internal static string eext_more_option_item_part_text_get(IntPtr item, string part_name)
59 var ptr = _eext_more_option_item_part_text_get(item, part_name);
60 return Marshal.PtrToStringAnsi(ptr);
63 [DllImport(Libraries.Eext)]
64 internal static extern void eext_more_option_item_part_text_set(IntPtr item, string part_name, string text);
66 [DllImport(Libraries.Eext)]
67 internal static extern IntPtr eext_more_option_item_prepend(IntPtr obj);
69 [DllImport(Libraries.Eext)]
70 internal static extern void eext_more_option_items_clear(IntPtr obj);
72 [DllImport(Libraries.Eext)]
73 internal static extern IntPtr eext_more_option_items_get(IntPtr obj);
75 [DllImport(Libraries.Eext)]
76 internal static extern bool eext_more_option_opened_get(IntPtr obj);
78 [DllImport(Libraries.Eext)]
79 internal static extern void eext_more_option_opened_set(IntPtr obj, bool opened);