Release 4.0.0-preview1-00321
[platform/core/csapi/tizenfx.git] / src / ElmSharp.Wearable / Interop / Interop.Eext.MoreOption.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 Eext
23     {
24         [DllImport(Libraries.Eext)]
25         internal static extern IntPtr eext_more_option_add(IntPtr parent);
26
27         [DllImport(Libraries.Eext)]
28         internal static extern void eext_more_option_direction_set(IntPtr obj, int direction);
29
30         [DllImport(Libraries.Eext)]
31         internal static extern int eext_more_option_direction_get(IntPtr obj);
32
33         [DllImport(Libraries.Eext)]
34         internal static extern IntPtr eext_more_option_item_append(IntPtr obj);
35
36         [DllImport(Libraries.Eext)]
37         internal static extern void eext_more_option_item_del(IntPtr obj);
38
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);
41
42         [DllImport(Libraries.Eext)]
43         internal static extern IntPtr eext_more_option_item_insert_after(IntPtr obj, IntPtr after);
44
45         [DllImport(Libraries.Eext)]
46         internal static extern IntPtr eext_more_option_item_insert_before(IntPtr obj, IntPtr before);
47
48         [DllImport(Libraries.Eext)]
49         internal static extern IntPtr eext_more_option_item_part_content_get(IntPtr obj, string part_name);
50
51         [DllImport(Libraries.Eext)]
52         internal static extern void eext_more_option_item_part_content_set(IntPtr item, string part_name, IntPtr content);
53
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);
56
57         internal static string eext_more_option_item_part_text_get(IntPtr item, string part_name)
58         {
59             var ptr = _eext_more_option_item_part_text_get(item, part_name);
60             return Marshal.PtrToStringAnsi(ptr);
61         }
62
63         [DllImport(Libraries.Eext)]
64         internal static extern void eext_more_option_item_part_text_set(IntPtr item, string part_name, string text);
65
66         [DllImport(Libraries.Eext)]
67         internal static extern IntPtr eext_more_option_item_prepend(IntPtr obj);
68
69         [DllImport(Libraries.Eext)]
70         internal static extern void eext_more_option_items_clear(IntPtr obj);
71
72         [DllImport(Libraries.Eext)]
73         internal static extern IntPtr eext_more_option_items_get(IntPtr obj);
74
75         [DllImport(Libraries.Eext)]
76         internal static extern bool eext_more_option_opened_get(IntPtr obj);
77
78         [DllImport(Libraries.Eext)]
79         internal static extern void eext_more_option_opened_set(IntPtr obj, bool opened);
80     }
81 }