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
20 #pragma winrt ns_prefix
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";
31 namespace Foundation
{
32 interface IAsyncAction
;
37 namespace Foundation
{
38 typedef enum PropertyType PropertyType
;
39 typedef struct Point Point
;
40 typedef struct Size Size
;
41 typedef struct Rect Rect
;
42 typedef struct DateTime DateTime
;
43 typedef struct TimeSpan TimeSpan
;
46 contract
(Windows.Foundation.FoundationContract
, 1.0),
47 uuid(a4ed5c81
-76c9
-40bd
-8be6
-b1d90fb20ae7
)
49 delegate
HRESULT AsyncActionCompletedHandler
([in] Windows.Foundation.IAsyncAction
*action
, [in] AsyncStatus status
);
51 [contract
(Windows.Foundation.FoundationContract
, 1.0)]
86 InspectableArray
= 1037,
96 [contract
(Windows.Foundation.FoundationContract
, 1.0)]
102 [contract
(Windows.Foundation.FoundationContract
, 1.0)]
108 [contract
(Windows.Foundation.FoundationContract
, 1.0)]
116 [contract
(Windows.Foundation.FoundationContract
, 1.0)]
121 [contract
(Windows.Foundation.FoundationContract
, 1.0)]
127 contract
(Windows.Foundation.FoundationContract
, 1.0),
128 uuid(96369f54
-8eb6
-48f0
-abce
-c1b211e627c3
)
130 interface IStringable
: IInspectable
132 HRESULT ToString
([out, retval] HSTRING
*value
);
136 contract
(Windows.Foundation.FoundationContract
, 1.0),
137 uuid(30d5a829
-7fa4
-4026-83bb
-d75bae4ea99e
)
139 interface IClosable
: IInspectable
145 contract
(Windows.Foundation.FoundationContract
, 1.0),
146 uuid(5a648006
-843a
-4da9
-865b
-9d26e5dfad7b
)
148 interface IAsyncAction
: IInspectable
151 [propput] HRESULT Completed
([in] Windows.Foundation.AsyncActionCompletedHandler
*handler
);
152 [propget] HRESULT Completed
([out, retval] Windows.Foundation.AsyncActionCompletedHandler
**handler
);
153 HRESULT GetResults
();
159 namespace Foundation
{
161 interface Windows.Foundation.Collections.IIterable
<HSTRING
>;
162 interface Windows.Foundation.Collections.IIterator
<HSTRING
>;
163 interface Windows.Foundation.Collections.IVectorView
<HSTRING
>;
164 interface Windows.Foundation.Collections.IVectorView
<IInspectable
*>;
165 interface Windows.Foundation.Collections.IVector
<HSTRING
>;
166 interface Windows.Foundation.Collections.IVector
<IInspectable
*>;
167 interface Windows.Foundation.Collections.IMapView
<HSTRING
, Windows.Foundation.Collections.IVectorView
<HSTRING
>*>;
168 interface Windows.Foundation.AsyncOperationCompletedHandler
<boolean>;
169 interface Windows.Foundation.IAsyncOperation
<boolean>;