| 1 |
/* |
| 2 |
* Copyright 2024 Zhiyi Zhang for CodeWeavers |
| 3 |
* |
| 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. |
| 8 |
* |
| 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. |
| 13 |
* |
| 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 |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifdef __WIDL__ |
| 20 |
#pragma makedep header install winmd |
| 21 |
#pragma winrt ns_prefix |
| 22 |
#endif |
| 23 |
|
| 24 |
import "inspectable.idl"; |
| 25 |
import "asyncinfo.idl"; |
| 26 |
import "eventtoken.idl"; |
| 27 |
import "windowscontracts.idl"; |
| 28 |
import "windows.foundation.idl"; |
| 29 |
import "windows.applicationmodel.idl"; |
| 30 |
import "windows.applicationmodel.activation.idl"; |
| 31 |
import "windows.applicationmodel.core.idl"; |
| 32 |
import "windows.foundation.numerics.idl"; |
| 33 |
import "windows.graphics.imaging.idl"; |
| 34 |
import "windows.ui.idl"; |
| 35 |
import "windows.ui.composition.idl"; |
| 36 |
import "windows.ui.core.idl"; |
| 37 |
import "windows.ui.input.idl"; |
| 38 |
import "windows.ui.xaml.interop.idl"; |
| 39 |
|
| 40 |
namespace Windows.UI.Xaml { |
| 41 |
interface IDataTemplateKey; |
| 42 |
interface IDependencyObject; |
| 43 |
interface IDependencyProperty; |
| 44 |
interface IDependencyPropertyChangedEventArgs; |
| 45 |
interface IDependencyPropertyStatics; |
| 46 |
interface IPropertyMetadata; |
| 47 |
interface IPropertyMetadataFactory; |
| 48 |
interface IPropertyMetadataStatics; |
| 49 |
|
| 50 |
runtimeclass DataTemplateKey; |
| 51 |
runtimeclass DependencyObject; |
| 52 |
runtimeclass DependencyProperty; |
| 53 |
runtimeclass DependencyPropertyChangedEventArgs; |
| 54 |
runtimeclass PropertyMetadata; |
| 55 |
|
| 56 |
[ |
| 57 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 58 |
uuid(d6ecb12c-15b5-4ec8-b95c-cdd208f08153) |
| 59 |
] |
| 60 |
delegate HRESULT CreateDefaultValueCallback([out, retval] IInspectable **result); |
| 61 |
|
| 62 |
[ |
| 63 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 64 |
uuid(45883d16-27bf-4bc1-ac26-94c1601f3a49) |
| 65 |
] |
| 66 |
delegate HRESULT DependencyPropertyChangedCallback([in] Windows.UI.Xaml.DependencyObject *sender, [in] Windows.UI.Xaml.DependencyProperty *dp); |
| 67 |
|
| 68 |
[ |
| 69 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 70 |
uuid(5a9f8a25-d142-44a4-8231-fd676724f29b) |
| 71 |
] |
| 72 |
delegate HRESULT PropertyChangedCallback([in] Windows.UI.Xaml.DependencyObject *obj, [in] Windows.UI.Xaml.DependencyPropertyChangedEventArgs *args); |
| 73 |
|
| 74 |
[ |
| 75 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 76 |
exclusiveto(Windows.UI.Xaml.DataTemplateKey), |
| 77 |
uuid(873b6c28-cceb-4b61-86fa-b2cec39cc2fa) |
| 78 |
] |
| 79 |
interface IDataTemplateKey : IInspectable |
| 80 |
{ |
| 81 |
[propget] HRESULT DataType([out, retval] IInspectable **value); |
| 82 |
[propput] HRESULT DataType([in] IInspectable *value); |
| 83 |
} |
| 84 |
|
| 85 |
[ |
| 86 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 87 |
exclusiveto(Windows.UI.Xaml.DataTemplateKey), |
| 88 |
uuid(e96b2959-d982-4152-91cb-de0e4dfd7693) |
| 89 |
] |
| 90 |
interface IDataTemplateKeyFactory : IInspectable |
| 91 |
{ |
| 92 |
HRESULT CreateInstance([in] IInspectable *base_interface, [out] IInspectable **inner_interface, [out, retval] Windows.UI.Xaml.DataTemplateKey **value); |
| 93 |
HRESULT CreateInstanceWithType([in] IInspectable *data_type, [in] IInspectable *base_interface, [out] IInspectable **inner_interface, [out, retval] Windows.UI.Xaml.DataTemplateKey **value); |
| 94 |
} |
| 95 |
|
| 96 |
[ |
| 97 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 98 |
exclusiveto(Windows.UI.Xaml.DependencyObject), |
| 99 |
uuid(5c526665-f60e-4912-af59-5fe0680f089d) |
| 100 |
] |
| 101 |
interface IDependencyObject : IInspectable |
| 102 |
{ |
| 103 |
HRESULT GetValue([in] Windows.UI.Xaml.DependencyProperty *dp, [out, retval] IInspectable **result); |
| 104 |
HRESULT SetValue([in] Windows.UI.Xaml.DependencyProperty *dp, [in] IInspectable *value); |
| 105 |
HRESULT ClearValue([in] Windows.UI.Xaml.DependencyProperty *dp); |
| 106 |
HRESULT ReadLocalValue([in] Windows.UI.Xaml.DependencyProperty *dp, [out, retval] IInspectable **result); |
| 107 |
HRESULT GetAnimationBaseValue([in] Windows.UI.Xaml.DependencyProperty *dp, [out, retval] IInspectable **result); |
| 108 |
[propget] HRESULT Dispatcher([out, retval] Windows.UI.Core.CoreDispatcher **value); |
| 109 |
} |
| 110 |
|
| 111 |
[ |
| 112 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 113 |
exclusiveto(Windows.UI.Xaml.DependencyObject), |
| 114 |
uuid(29fed85d-3d22-43a1-add0-17027c08b212) |
| 115 |
] |
| 116 |
interface IDependencyObject2 : IInspectable |
| 117 |
{ |
| 118 |
HRESULT RegisterPropertyChangedCallback([in] Windows.UI.Xaml.DependencyProperty *dp, [in] Windows.UI.Xaml.DependencyPropertyChangedCallback *callback, [out, retval] INT64 *result); |
| 119 |
HRESULT UnregisterPropertyChangedCallback([in] Windows.UI.Xaml.DependencyProperty *dp, [in] INT64 token); |
| 120 |
} |
| 121 |
|
| 122 |
[ |
| 123 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 124 |
exclusiveto(Windows.UI.Xaml.DependencyObject), |
| 125 |
uuid(9a03af92-7d8a-4937-884f-ecf34fe02acb) |
| 126 |
] |
| 127 |
interface IDependencyObjectFactory : IInspectable |
| 128 |
{ |
| 129 |
HRESULT CreateInstance([in] IInspectable *base_interface, [out] IInspectable **inner_interface, [out, retval] Windows.UI.Xaml.DependencyObject **value); |
| 130 |
} |
| 131 |
|
| 132 |
[ |
| 133 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 134 |
exclusiveto(Windows.UI.Xaml.DependencyProperty), |
| 135 |
uuid(85b13970-9bc4-4e96-acf1-30c8fd3d55c8) |
| 136 |
] |
| 137 |
interface IDependencyProperty : IInspectable |
| 138 |
{ |
| 139 |
HRESULT GetMetadata([in] Windows.UI.Xaml.Interop.TypeName type, [out, retval] Windows.UI.Xaml.PropertyMetadata **result); |
| 140 |
} |
| 141 |
|
| 142 |
[ |
| 143 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 144 |
exclusiveto(Windows.UI.Xaml.DependencyPropertyChangedEventArgs), |
| 145 |
uuid(81212c2b-24d0-4957-abc3-224470a93a4e) |
| 146 |
] |
| 147 |
interface IDependencyPropertyChangedEventArgs : IInspectable |
| 148 |
{ |
| 149 |
[propget] HRESULT Property([out, retval] Windows.UI.Xaml.DependencyProperty **value); |
| 150 |
[propget] HRESULT OldValue([out, retval] IInspectable **value); |
| 151 |
[propget] HRESULT NewValue([out, retval] IInspectable **value); |
| 152 |
} |
| 153 |
|
| 154 |
[ |
| 155 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 156 |
exclusiveto(Windows.UI.Xaml.DependencyProperty), |
| 157 |
uuid(49e5f28f-8259-4d5c-aae0-83d56dbb68d9) |
| 158 |
] |
| 159 |
interface IDependencyPropertyStatics : IInspectable |
| 160 |
{ |
| 161 |
[propget] HRESULT UnsetValue([out, retval] IInspectable **value); |
| 162 |
HRESULT Register([in] HSTRING name, [in] Windows.UI.Xaml.Interop.TypeName property_type, [in] Windows.UI.Xaml.Interop.TypeName owner_type, [in] Windows.UI.Xaml.PropertyMetadata *type_metadata, [out, retval] Windows.UI.Xaml.DependencyProperty **result); |
| 163 |
HRESULT RegisterAttached([in] HSTRING name, [in] Windows.UI.Xaml.Interop.TypeName property_type, [in] Windows.UI.Xaml.Interop.TypeName owner_type, [in] Windows.UI.Xaml.PropertyMetadata *default_metadata, [out, retval] Windows.UI.Xaml.DependencyProperty **result); |
| 164 |
} |
| 165 |
|
| 166 |
[ |
| 167 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 168 |
exclusiveto(Windows.UI.Xaml.PropertyMetadata), |
| 169 |
uuid(814ef30d-8d18-448a-8644-f2cb51e70380) |
| 170 |
] |
| 171 |
interface IPropertyMetadata : IInspectable |
| 172 |
{ |
| 173 |
[propget] HRESULT DefaultValue([out, retval] IInspectable **value); |
| 174 |
[propget] HRESULT CreateDefaultValueCallback([out, retval] Windows.UI.Xaml.CreateDefaultValueCallback **value); |
| 175 |
} |
| 176 |
|
| 177 |
[ |
| 178 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 179 |
exclusiveto(Windows.UI.Xaml.PropertyMetadata), |
| 180 |
uuid(c1b81cc0-57cd-4f2f-b0a9-e1801b28f76b) |
| 181 |
] |
| 182 |
interface IPropertyMetadataFactory : IInspectable |
| 183 |
{ |
| 184 |
HRESULT CreateInstanceWithDefaultValue([in] IInspectable *default_value, [in] IInspectable *base_interface, [out] IInspectable **inner_interface, [out, retval] Windows.UI.Xaml.PropertyMetadata **value); |
| 185 |
HRESULT CreateInstanceWithDefaultValueAndCallback([in] IInspectable *default_value, [in] Windows.UI.Xaml.PropertyChangedCallback *property_changed_callback, [in] IInspectable* base_interface, [out] IInspectable **inner_interface, [out, retval] Windows.UI.Xaml.PropertyMetadata **value); |
| 186 |
} |
| 187 |
|
| 188 |
[ |
| 189 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 190 |
exclusiveto(Windows.UI.Xaml.PropertyMetadata), |
| 191 |
uuid(3b01077a-6e06-45e9-8b5c-af243458c062) |
| 192 |
] |
| 193 |
interface IPropertyMetadataStatics : IInspectable |
| 194 |
{ |
| 195 |
[default_overload] [overload("Create")] HRESULT CreateWithDefaultValue([in] IInspectable *default_value, [out, retval] Windows.UI.Xaml.PropertyMetadata **result); |
| 196 |
[default_overload] [overload("Create")] HRESULT CreateWithDefaultValueAndCallback([in] IInspectable *default_value, [in] Windows.UI.Xaml.PropertyChangedCallback *property_changed_callback, [out, retval] Windows.UI.Xaml.PropertyMetadata **result); |
| 197 |
[overload("Create")] HRESULT CreateWithFactory([in] Windows.UI.Xaml.CreateDefaultValueCallback *create_default_value_callback, [out, retval] Windows.UI.Xaml.PropertyMetadata **result); |
| 198 |
[overload("Create")] HRESULT CreateWithFactoryAndCallback([in] Windows.UI.Xaml.CreateDefaultValueCallback *create_default_value_callback, [in] Windows.UI.Xaml.PropertyChangedCallback *property_changed_callback, [out, retval] Windows.UI.Xaml.PropertyMetadata **result); |
| 199 |
} |
| 200 |
|
| 201 |
|
| 202 |
[ |
| 203 |
composable(Windows.UI.Xaml.IDataTemplateKeyFactory, public, Windows.Foundation.UniversalApiContract, 1.0), |
| 204 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 205 |
marshaling_behavior(agile), |
| 206 |
threading(both) |
| 207 |
] |
| 208 |
runtimeclass DataTemplateKey |
| 209 |
{ |
| 210 |
[default] interface Windows.UI.Xaml.IDataTemplateKey; |
| 211 |
} |
| 212 |
|
| 213 |
[ |
| 214 |
composable(Windows.UI.Xaml.IDependencyObjectFactory, protected, Windows.Foundation.UniversalApiContract, 1.0), |
| 215 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 216 |
marshaling_behavior(agile), |
| 217 |
threading(both) |
| 218 |
] |
| 219 |
runtimeclass DependencyObject |
| 220 |
{ |
| 221 |
[default] interface Windows.UI.Xaml.IDependencyObject; |
| 222 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.UI.Xaml.IDependencyObject2; |
| 223 |
} |
| 224 |
|
| 225 |
[ |
| 226 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 227 |
marshaling_behavior(agile), |
| 228 |
static(Windows.UI.Xaml.IDependencyPropertyStatics, Windows.Foundation.UniversalApiContract, 1.0), |
| 229 |
threading(both) |
| 230 |
] |
| 231 |
runtimeclass DependencyProperty |
| 232 |
{ |
| 233 |
[default] interface Windows.UI.Xaml.IDependencyProperty; |
| 234 |
} |
| 235 |
|
| 236 |
[ |
| 237 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 238 |
marshaling_behavior(agile) |
| 239 |
] |
| 240 |
runtimeclass DependencyPropertyChangedEventArgs |
| 241 |
{ |
| 242 |
[default] interface Windows.UI.Xaml.IDependencyPropertyChangedEventArgs; |
| 243 |
} |
| 244 |
|
| 245 |
[ |
| 246 |
composable(Windows.UI.Xaml.IPropertyMetadataFactory, public, Windows.Foundation.UniversalApiContract, 1.0), |
| 247 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 248 |
marshaling_behavior(agile), |
| 249 |
static(Windows.UI.Xaml.IPropertyMetadataStatics, Windows.Foundation.UniversalApiContract, 1.0), |
| 250 |
threading(both) |
| 251 |
] |
| 252 |
runtimeclass PropertyMetadata |
| 253 |
{ |
| 254 |
[default] interface Windows.UI.Xaml.IPropertyMetadata; |
| 255 |
} |
| 256 |
} |