msxml3/tests: Add test saving XML with non-english characters.
[wine.git] / include / windows.foundation.idl
blob292522f2c49af369af6ab7bb261f2c07d9fc0452
1 /*
2 * Copyright 2015 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifdef __WIDL__
20 #pragma winrt ns_prefix
21 #endif
23 import "inspectable.idl";
24 import "asyncinfo.idl";
25 import "windowscontracts.idl";
26 /* import "eventtoken.idl"; */
27 /* import "ivectorchangedeventargs.idl"; */
28 import "windows.foundation.collections.idl";
30 namespace Windows {
31 namespace Foundation {
32 typedef enum PropertyType PropertyType;
33 typedef struct Point Point;
34 typedef struct Size Size;
35 typedef struct Rect Rect;
36 typedef struct DateTime DateTime;
37 typedef struct TimeSpan TimeSpan;
39 [contract(Windows.Foundation.FoundationContract, 1.0)]
40 enum PropertyType {
41 Empty = 0,
42 UInt8 = 1,
43 Int16 = 2,
44 UInt16 = 3,
45 Int32 = 4,
46 UInt32 = 5,
47 Int64 = 6,
48 UInt64 = 7,
49 Single = 8,
50 Double = 9,
51 Char16 = 10,
52 Boolean = 11,
53 String = 12,
54 Inspectable = 13,
55 DateTime = 14,
56 TimeSpan = 15,
57 Guid = 16,
58 Point = 17,
59 Size = 18,
60 Rect = 19,
61 OtherType = 20,
62 UInt8Array = 1025,
63 Int16Array = 1026,
64 UInt16Array = 1027,
65 Int32Array = 1028,
66 UInt32Array = 1029,
67 Int64Array = 1030,
68 UInt64Array = 1031,
69 SingleArray = 1032,
70 DoubleArray = 1033,
71 Char16Array = 1034,
72 BooleanArray = 1035,
73 StringArray = 1036,
74 InspectableArray = 1037,
75 DateTimeArray = 1038,
76 TimeSpanArray = 1039,
77 GuidArray = 1040,
78 PointArray = 1041,
79 SizeArray = 1042,
80 RectArray = 1043,
81 OtherTypeArray = 1044
84 [contract(Windows.Foundation.FoundationContract, 1.0)]
85 struct Point {
86 FLOAT X;
87 FLOAT Y;
90 [contract(Windows.Foundation.FoundationContract, 1.0)]
91 struct Size {
92 FLOAT Width;
93 FLOAT Height;
96 [contract(Windows.Foundation.FoundationContract, 1.0)]
97 struct Rect {
98 FLOAT X;
99 FLOAT Y;
100 FLOAT Width;
101 FLOAT Height;
104 [contract(Windows.Foundation.FoundationContract, 1.0)]
105 struct DateTime {
106 INT64 UniversalTime;
109 [contract(Windows.Foundation.FoundationContract, 1.0)]
110 struct TimeSpan {
111 INT64 Duration;
115 contract(Windows.Foundation.FoundationContract, 1.0),
116 uuid(96369f54-8eb6-48f0-abce-c1b211e627c3)
118 interface IStringable : IInspectable
120 HRESULT ToString([out, retval] HSTRING *value);
124 contract(Windows.Foundation.FoundationContract, 1.0),
125 uuid(30d5a829-7fa4-4026-83bb-d75bae4ea99e)
127 interface IClosable : IInspectable
129 HRESULT Close();
134 namespace Windows {
135 namespace Foundation {
136 declare {
137 interface Windows.Foundation.AsyncOperationCompletedHandler<boolean>;
138 interface Windows.Foundation.IAsyncOperation<boolean>;
139 interface Windows.Foundation.Collections.IVectorView<HSTRING>;