-
Notifications
You must be signed in to change notification settings - Fork 107
/
Class.h
486 lines (450 loc) · 33.1 KB
/
Class.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
#pragma once
#include "Class.g.h"
#include "winrt/Windows.Foundation.Collections.h"
namespace winrt::TestComponentCSharp::implementation
{
struct Class : ClassT<Class>
{
Class();
Windows::UI::Xaml::Interop::TypeName _typeProperty;
void TypeProperty(Windows::UI::Xaml::Interop::TypeName val);
Windows::UI::Xaml::Interop::TypeName TypeProperty();
winrt::hstring GetTypePropertyAbiName();
winrt::hstring GetTypePropertyKind();
winrt::event<EventHandler0> _event0;
winrt::event<EventHandler1> _event1;
winrt::event<EventHandler2> _event2;
winrt::event<EventHandler3> _event3;
winrt::event<EventHandlerCollection> _collectionEvent;
winrt::event<EventWithGuid> _guidEvent;
winrt::event<Windows::Foundation::EventHandler<Windows::Foundation::Collections::IVector<int32_t>>> _nestedEvent;
winrt::event<Windows::Foundation::TypedEventHandler<TestComponentCSharp::Class, Windows::Foundation::Collections::IVector<hstring>>> _nestedTypedEvent;
winrt::event<TestComponentCSharp::EventWithReturn> _returnEvent;
winrt::event<winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler> _propertyChangedEventHandler;
Windows::Foundation::Collections::IVector<Windows::Foundation::IInspectable> GetUriVectorAsIInspectableVector();
int32_t _int = 0;
winrt::event<Windows::Foundation::EventHandler<int32_t>> _intChanged;
winrt::event_token _lastIntChangedEventToken;
bool _bool = false;
winrt::event<Windows::Foundation::EventHandler<bool>> _boolChanged;
EnumValue _enumValue;
winrt::event<Windows::Foundation::EventHandler<EnumValue>> _enumChanged;
std::vector<EnumValue> _enums{ EnumValue::One, EnumValue::Two };
EnumStruct _enumStruct;
winrt::event<Windows::Foundation::EventHandler<EnumStruct>> _enumStructChanged;
std::vector<EnumStruct> _enumStructs{ EnumStruct{EnumValue::One}, EnumStruct{EnumValue::Two} };
FlagValue _flagValue;
winrt::event<Windows::Foundation::EventHandler<FlagValue>> _flagChanged;
std::vector<FlagValue> _flags{ FlagValue::One, FlagValue::All };
FlagStruct _flagStruct;
winrt::event<Windows::Foundation::EventHandler<FlagStruct>> _flagStructChanged;
std::vector<FlagStruct> _flagStructs{ FlagStruct{FlagValue::One}, FlagStruct{FlagValue::All} };
winrt::hstring _string;
winrt::hstring _string2;
winrt::event<Windows::Foundation::TypedEventHandler<TestComponentCSharp::Class, hstring>> _stringChanged;
Windows::Foundation::Collections::IVector<hstring> _strings;
Windows::Foundation::IInspectable _object;
winrt::event<Windows::Foundation::EventHandler<Windows::Foundation::IInspectable>> _objectChanged;
Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable> _objectIterable;
Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IIterable<Windows::Foundation::Point>> _pointIterableIterable;
Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable>> _objectIterableIterable;
winrt::event<Windows::Foundation::EventHandler<Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable>>> _objectIterableChanged;
Windows::Foundation::Uri _uri;
winrt::event<Windows::Foundation::EventHandler<Windows::Foundation::Uri>> _uriChanged;
Windows::Foundation::Collections::IKeyValuePair<hstring, hstring> _stringPair;
winrt::event<Windows::Foundation::EventHandler<Windows::Foundation::Collections::IKeyValuePair<hstring, hstring>>> _stringPairChanged;
ComposedBlittableStruct _blittableStruct{};
ComposedNonBlittableStruct _nonBlittableStruct{};
std::vector<int32_t> _ints{ 1, 2, 3 };
Windows::Foundation::Collections::IIterable<int32_t> _intColl;
Windows::Foundation::Collections::IIterable<char16_t> _charColl;
Microsoft::UI::Xaml::Interop::IBindableIterable _bindableIterable;
Microsoft::UI::Xaml::Interop::IBindableVector _bindableVector;
Microsoft::UI::Xaml::Interop::IBindableObservableVector _bindableObservable;
winrt::event<Windows::Foundation::EventHandler<Microsoft::UI::Xaml::Interop::IBindableIterable>> _bindableIterableChanged;
winrt::event<Windows::Foundation::EventHandler<Microsoft::UI::Xaml::Interop::IBindableVector>> _bindableVectorChanged;
winrt::handle _syncHandle;
int32_t _asyncResult;
int32_t _asyncProgress;
Windows::Foundation::Point _point{};
Windows::Foundation::Rect _rect{};
Windows::Foundation::Size _size{};
Windows::UI::Color _color{};
Microsoft::UI::Xaml::CornerRadius _cornerRadius{};
Microsoft::UI::Xaml::Duration _duration{};
Microsoft::UI::Xaml::GridLength _gridLength{};
Microsoft::UI::Xaml::Thickness _thickness{};
Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition _generatorPosition{};
Microsoft::UI::Xaml::Media::Matrix _matrix{};
Microsoft::UI::Xaml::Media::Animation::KeyTime _keyTime{};
Microsoft::UI::Xaml::Media::Animation::RepeatBehavior _repeatBehavior{};
Microsoft::UI::Xaml::Media::Media3D::Matrix3D _matrix3D{};
Windows::Foundation::Numerics::float3x2 _matrix3x2;
Windows::Foundation::Numerics::float4x4 _matrix4x4;
Windows::Foundation::Numerics::plane _plane;
Windows::Foundation::Numerics::quaternion _quaternion;
Windows::Foundation::Numerics::float2 _vector2;
Windows::Foundation::Numerics::float3 _vector3;
Windows::Foundation::Numerics::float4 _vector4;
Windows::Foundation::TimeSpan _timeSpan{};
Windows::Foundation::DateTime _dateTime{};
winrt::hresult _hr;
Class(int32_t intProperty);
Class(int32_t intProperty, hstring const& stringProperty);
static int32_t StaticIntProperty();
static void StaticIntProperty(int32_t value);
static winrt::event_token StaticIntPropertyChanged(Windows::Foundation::EventHandler<int32_t> const& handler);
static void StaticIntPropertyChanged(winrt::event_token const& token) noexcept;
static hstring StaticStringProperty();
static void StaticStringProperty(hstring const& value);
static winrt::event_token StaticStringPropertyChanged(Windows::Foundation::TypedEventHandler<TestComponentCSharp::Class, hstring> const& handler);
static void StaticStringPropertyChanged(winrt::event_token const& token) noexcept;
static void StaticGetString();
static void StaticSetString(TestComponentCSharp::ProvideString const& provideString);
static int32_t StaticReadWriteProperty();
static void StaticReadWriteProperty(int32_t value);
static Windows::Foundation::TimeSpan FromSeconds(int32_t seconds);
static Windows::Foundation::DateTime Now();
winrt::event_token Event0(TestComponentCSharp::EventHandler0 const& handler);
void Event0(winrt::event_token const& token) noexcept;
void InvokeEvent0();
winrt::event_token Event1(TestComponentCSharp::EventHandler1 const& handler);
void Event1(winrt::event_token const& token) noexcept;
void InvokeEvent1(TestComponentCSharp::Class const& sender);
winrt::event_token Event2(TestComponentCSharp::EventHandler2 const& handler);
void Event2(winrt::event_token const& token) noexcept;
void InvokeEvent2(TestComponentCSharp::Class const& sender, int32_t arg0);
winrt::event_token Event3(TestComponentCSharp::EventHandler3 const& handler);
void Event3(winrt::event_token const& token) noexcept;
void InvokeEvent3(TestComponentCSharp::Class const& sender, int32_t arg0, hstring const& arg1);
winrt::event_token CollectionEvent(TestComponentCSharp::EventHandlerCollection const& handler);
void CollectionEvent(winrt::event_token const& token) noexcept;
void InvokeCollectionEvent(TestComponentCSharp::Class const& sender, Windows::Foundation::Collections::IVector<int32_t> const& arg0, Windows::Foundation::Collections::IMap<int32_t, hstring> const& arg1);
winrt::event_token GuidEvent(TestComponentCSharp::EventWithGuid const& handler);
void GuidEvent(winrt::event_token const& token) noexcept;
void InvokeGuidEvent(winrt::guid const& correlationGuid);
winrt::event_token NestedEvent(Windows::Foundation::EventHandler<Windows::Foundation::Collections::IVector<int32_t>> const& handler);
void NestedEvent(winrt::event_token const& token) noexcept;
void InvokeNestedEvent(TestComponentCSharp::Class const& sender, Windows::Foundation::Collections::IVector<int32_t> const& arg0);
winrt::event_token NestedTypedEvent(Windows::Foundation::TypedEventHandler<TestComponentCSharp::Class, Windows::Foundation::Collections::IVector<hstring>> const& handler);
void NestedTypedEvent(winrt::event_token const& token) noexcept;
void InvokeNestedTypedEvent(TestComponentCSharp::Class const& sender, Windows::Foundation::Collections::IVector<hstring> const& arg0);
winrt::event_token ReturnEvent(TestComponentCSharp::EventWithReturn const& handler);
void ReturnEvent(winrt::event_token const& token) noexcept;
int32_t InvokeReturnEvent(int32_t const& arg0);
winrt::guid TestReturnGuid(winrt::guid const& arg);
winrt::event_token PropertyChangedEventHandler(winrt::Microsoft::UI::Xaml::Data::PropertyChangedEventHandler const& handler);
void PropertyChangedEventHandler(winrt::event_token const& token) noexcept;
int32_t IntProperty();
void IntProperty(int32_t value);
winrt::event_token IntPropertyChanged(Windows::Foundation::EventHandler<int32_t> const& handler);
void IntPropertyChanged(winrt::event_token const& token) noexcept;
void RaiseIntChanged();
void RemoveLastIntPropertyChangedHandler();
void CallForInt(TestComponentCSharp::ProvideInt const& provideInt);
bool BoolProperty();
void BoolProperty(bool value);
winrt::event_token BoolPropertyChanged(Windows::Foundation::EventHandler<bool> const& handler);
void BoolPropertyChanged(winrt::event_token const& token) noexcept;
void RaiseBoolChanged();
void CallForBool(TestComponentCSharp::ProvideBool const& provideBool);
void InvokeBoolChanged(winrt::Windows::Foundation::EventHandler<bool> const& boolChanged);
TestComponentCSharp::EnumValue EnumProperty();
void EnumProperty(TestComponentCSharp::EnumValue const& value);
winrt::event_token EnumPropertyChanged(Windows::Foundation::EventHandler<TestComponentCSharp::EnumValue> const& handler);
void EnumPropertyChanged(winrt::event_token const& token) noexcept;
void RaiseEnumChanged();
void CallForEnum(TestComponentCSharp::ProvideEnum const& provide);
TestComponentCSharp::EnumStruct EnumStructProperty();
void EnumStructProperty(TestComponentCSharp::EnumStruct const& value);
winrt::event_token EnumStructPropertyChanged(Windows::Foundation::EventHandler<TestComponentCSharp::EnumStruct> const& handler);
void EnumStructPropertyChanged(winrt::event_token const& token) noexcept;
void RaiseEnumStructChanged();
void CallForEnumStruct(TestComponentCSharp::ProvideEnumStruct const& provide);
com_array<TestComponentCSharp::EnumValue> EnumsProperty();
void EnumsProperty(array_view<TestComponentCSharp::EnumValue const> value);
void CallForEnums(TestComponentCSharp::ProvideEnums const& provide);
com_array<TestComponentCSharp::EnumStruct> EnumStructsProperty();
void EnumStructsProperty(array_view<TestComponentCSharp::EnumStruct const> value);
void CallForEnumStructs(TestComponentCSharp::ProvideEnumStructs const& provide);
TestComponentCSharp::FlagValue FlagProperty();
void FlagProperty(TestComponentCSharp::FlagValue const& value);
winrt::event_token FlagPropertyChanged(Windows::Foundation::EventHandler<TestComponentCSharp::FlagValue> const& handler);
void FlagPropertyChanged(winrt::event_token const& token) noexcept;
void RaiseFlagChanged();
void CallForFlag(TestComponentCSharp::ProvideFlag const& provide);
TestComponentCSharp::FlagStruct FlagStructProperty();
void FlagStructProperty(TestComponentCSharp::FlagStruct const& value);
winrt::event_token FlagStructPropertyChanged(Windows::Foundation::EventHandler<TestComponentCSharp::FlagStruct> const& handler);
void FlagStructPropertyChanged(winrt::event_token const& token) noexcept;
void RaiseFlagStructChanged();
void CallForFlagStruct(TestComponentCSharp::ProvideFlagStruct const& provide);
com_array<TestComponentCSharp::FlagValue> FlagsProperty();
void FlagsProperty(array_view<TestComponentCSharp::FlagValue const> value);
void CallForFlags(TestComponentCSharp::ProvideFlags const& provide);
com_array<TestComponentCSharp::FlagStruct> FlagStructsProperty();
void FlagStructsProperty(array_view<TestComponentCSharp::FlagStruct const> value);
void CallForFlagStructs(TestComponentCSharp::ProvideFlagStructs const& provide);
hstring StringProperty();
void StringProperty(hstring const& value);
winrt::event_token StringPropertyChanged(Windows::Foundation::TypedEventHandler<TestComponentCSharp::Class, hstring> const& handler);
void StringPropertyChanged(winrt::event_token const& token) noexcept;
void RaiseStringChanged();
void CallForString(TestComponentCSharp::ProvideString const& provideString);
void AddUriHandler(TestComponentCSharp::IUriHandler uriHandler);
hstring StringProperty2();
void StringProperty2(hstring const& value);
Windows::Foundation::Collections::IVector<hstring> StringsProperty();
void StringsProperty(Windows::Foundation::Collections::IVector<hstring> const& value);
Windows::Foundation::IInspectable ObjectProperty();
void ObjectProperty(Windows::Foundation::IInspectable const& value);
void RaiseObjectChanged();
void CallForObject(TestComponentCSharp::ProvideObject const& provideObject);
winrt::event_token ObjectPropertyChanged(Windows::Foundation::EventHandler<Windows::Foundation::IInspectable> const& handler);
Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable> ObjectIterableProperty();
void ObjectIterableProperty(Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable> const& value);
void RaiseObjectIterableChanged();
void CallForObjectIterable(TestComponentCSharp::ProvideObjectIterable const& provideObjectIterable);
winrt::event_token ObjectIterablePropertyChanged(Windows::Foundation::EventHandler<Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable>> const& handler);
void ObjectIterablePropertyChanged(winrt::event_token const& token) noexcept;
Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IIterable<Windows::Foundation::Point>> IterableOfPointIterablesProperty();
void IterableOfPointIterablesProperty(Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IIterable<Windows::Foundation::Point>> const& value);
Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable>> IterableOfObjectIterablesProperty();
void IterableOfObjectIterablesProperty(Windows::Foundation::Collections::IIterable<Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable>> const& value);
Windows::Foundation::Uri UriProperty();
void UriProperty(Windows::Foundation::Uri const& value);
void RaiseUriChanged();
void CallForUri(TestComponentCSharp::ProvideUri const& provideUri);
winrt::event_token UriPropertyChanged(Windows::Foundation::EventHandler<Windows::Foundation::Uri> const& handler);
void UriPropertyChanged(winrt::event_token const& token) noexcept;
void ObjectPropertyChanged(winrt::event_token const& token) noexcept;
Windows::Foundation::Collections::IKeyValuePair<hstring, hstring> StringPairProperty();
void StringPairProperty(Windows::Foundation::Collections::IKeyValuePair<hstring, hstring> const& value);
void RaiseStringPairChanged();
void CallForStringPair(TestComponentCSharp::ProvideStringPair const& provideStringPair);
winrt::event_token StringPairPropertyChanged(Windows::Foundation::EventHandler<Windows::Foundation::Collections::IKeyValuePair<hstring, hstring>> const& handler);
void StringPairPropertyChanged(winrt::event_token const& token) noexcept;
TestComponentCSharp::ProvideUri GetUriDelegate() noexcept;
BlittableStruct BlittableStructProperty();
void BlittableStructProperty(BlittableStruct const& value);
BlittableStruct GetBlittableStruct();
void OutBlittableStruct(BlittableStruct& value);
void SetBlittableStruct(BlittableStruct const& value);
ComposedBlittableStruct ComposedBlittableStructProperty();
void ComposedBlittableStructProperty(ComposedBlittableStruct const& value);
ComposedBlittableStruct GetComposedBlittableStruct();
void OutComposedBlittableStruct(ComposedBlittableStruct& value);
void SetComposedBlittableStruct(ComposedBlittableStruct const& value);
NonBlittableStringStruct NonBlittableStringStructProperty();
void NonBlittableStringStructProperty(NonBlittableStringStruct const& value);
NonBlittableStringStruct GetNonBlittableStringStruct();
void OutNonBlittableStringStruct(NonBlittableStringStruct& value);
void SetNonBlittableStringStruct(NonBlittableStringStruct const& value);
NonBlittableBoolStruct NonBlittableBoolStructProperty();
void NonBlittableBoolStructProperty(NonBlittableBoolStruct const& value);
NonBlittableBoolStruct GetNonBlittableBoolStruct();
void OutNonBlittableBoolStruct(NonBlittableBoolStruct& value);
void SetNonBlittableBoolStruct(NonBlittableBoolStruct const& value);
NonBlittableRefStruct NonBlittableRefStructProperty();
void NonBlittableRefStructProperty(NonBlittableRefStruct const& value);
NonBlittableRefStruct GetNonBlittableRefStruct();
void OutNonBlittableRefStruct(NonBlittableRefStruct& value);
void SetNonBlittableRefStruct(NonBlittableRefStruct const& value);
ComposedNonBlittableStruct ComposedNonBlittableStructProperty();
void ComposedNonBlittableStructProperty(ComposedNonBlittableStruct const& value);
ComposedNonBlittableStruct GetComposedNonBlittableStruct();
void OutComposedNonBlittableStruct(ComposedNonBlittableStruct& value);
void SetComposedNonBlittableStruct(ComposedNonBlittableStruct const& value);
void SetInts(array_view<int32_t const> ints);
com_array<int32_t> GetInts();
void FillInts(array_view<int32_t> ints);
com_array<winrt::hresult> GetAndSetHResults(array_view<winrt::hresult const> hresults);
com_array<winrt::Windows::Foundation::Uri> GetAndSetUris(array_view<winrt::Windows::Foundation::Uri const> uris);
com_array<winrt::Windows::Foundation::DateTime> GetAndSetDateTimes(array_view<winrt::Windows::Foundation::DateTime const> datetime);
Windows::Foundation::IAsyncOperation<int32_t> GetIntAsync();
Windows::Foundation::IAsyncOperationWithProgress<hstring, int32_t> GetStringAsync();
Windows::Foundation::Collections::IVectorView<int32_t> GetIntVector();
Windows::Foundation::Collections::IVectorView<bool> GetBoolVector();
Windows::Foundation::Collections::IVectorView<hstring> GetStringVector();
Windows::Foundation::Collections::IVectorView<TestComponentCSharp::ComposedBlittableStruct> GetBlittableStructVector();
Windows::Foundation::Collections::IVectorView<TestComponentCSharp::ComposedNonBlittableStruct> GetNonBlittableStructVector();
Windows::Foundation::Collections::IVectorView<Windows::Foundation::IInspectable> GetObjectVector();
Windows::Foundation::Collections::IVectorView<TestComponentCSharp::IProperties1> GetInterfaceVector();
Windows::Foundation::Collections::IVectorView<TestComponentCSharp::Class> GetClassVector() noexcept;
Windows::Foundation::Collections::IVector<int32_t> GetIntVector2();
Windows::Foundation::Collections::IVector<TestComponentCSharp::ComposedBlittableStruct> GetBlittableStructVector2();
Windows::Foundation::Collections::IVector<TestComponentCSharp::ComposedNonBlittableStruct> GetNonBlittableStructVector2();
Windows::Foundation::Collections::IMap<int32_t, int32_t> GetIntToIntDictionary();
Windows::Foundation::Collections::IMap<hstring, TestComponentCSharp::ComposedBlittableStruct> GetStringToBlittableDictionary();
Windows::Foundation::Collections::IMap<hstring, TestComponentCSharp::ComposedNonBlittableStruct> GetStringToNonBlittableDictionary();
Windows::Foundation::Collections::IMap<TestComponentCSharp::ComposedBlittableStruct, Windows::Foundation::IInspectable> GetBlittableToObjectDictionary();
Windows::Foundation::Collections::IMap<int32_t, Windows::Foundation::Collections::IVector<TestComponentCSharp::EnumValue>> GetIntToListDictionary();
// Test IIDOptimizer -- testing the windows projection covers most code paths, and these two types exercise the rest.
Windows::Foundation::Collections::IVectorView<Microsoft::UI::Xaml::Data::DataErrorsChangedEventArgs> GetEventArgsVector();
Windows::Foundation::Collections::IVectorView<TestComponentCSharp::ProvideUri> GetNonGenericDelegateVector();
Windows::Foundation::Collections::IIterable<int32_t> GetIntIterable();
void SetIntIterable(Windows::Foundation::Collections::IIterable<int32_t> const& value);
void SetCharIterable(Windows::Foundation::Collections::IIterable<char16_t> const& value);
Windows::Foundation::Collections::IIterable<TestComponentCSharp::EnumValue> GetEnumIterable();
Windows::Foundation::Collections::IIterable<TestComponentCSharp::CustomDisposableTest> GetClassIterable();
Windows::Foundation::Collections::IIterator<int32_t> GetIteratorForCollection(Windows::Foundation::Collections::IIterable<int32_t> iterable);
Microsoft::UI::Xaml::Interop::IBindableIterable BindableIterableProperty();
void BindableIterableProperty(Microsoft::UI::Xaml::Interop::IBindableIterable const& value);
void RaiseBindableIterableChanged();
void CallForBindableIterable(TestComponentCSharp::ProvideBindableIterable const& provideBindableIterable);
winrt::event_token BindableIterablePropertyChanged(Windows::Foundation::EventHandler<Microsoft::UI::Xaml::Interop::IBindableIterable> const& handler);
void BindableIterablePropertyChanged(winrt::event_token const& token) noexcept;
Microsoft::UI::Xaml::Interop::IBindableVector BindableVectorProperty();
void BindableVectorProperty(Microsoft::UI::Xaml::Interop::IBindableVector const& value);
void RaiseBindableVectorChanged();
void CallForBindableVector(TestComponentCSharp::ProvideBindableVector const& provideBindableVector);
winrt::event_token BindableVectorPropertyChanged(Windows::Foundation::EventHandler<Microsoft::UI::Xaml::Interop::IBindableVector> const& handler);
void BindableVectorPropertyChanged(winrt::event_token const& token) noexcept;
Microsoft::UI::Xaml::Interop::IBindableObservableVector BindableObservableVectorProperty();
void BindableObservableVectorProperty(Microsoft::UI::Xaml::Interop::IBindableObservableVector const& value);
Microsoft::UI::Xaml::Interop::IBindableObservableVector GetBindableObservableVector(Microsoft::UI::Xaml::Interop::IBindableObservableVector vector);
bool ValidateBindableProperty(
IInspectable const& bindableObject,
hstring property,
Windows::UI::Xaml::Interop::TypeName const& indexerType,
bool validateOnlyExists,
bool canRead,
bool canWrite,
bool isIndexer,
Windows::UI::Xaml::Interop::TypeName const& type,
IInspectable const& indexerValue,
IInspectable const& setValue,
IInspectable& retrievedValue);
void CopyProperties(TestComponentCSharp::IProperties1 const& src);
void CopyPropertiesViaWeakReference(TestComponentCSharp::IProperties1 const& src);
void CompleteAsync();
void CompleteAsync(int32_t hr);
void AdvanceAsync(int32_t delta);
Windows::Foundation::IAsyncAction DoitAsync();
Windows::Foundation::IAsyncActionWithProgress<int32_t> DoitAsyncWithProgress();
Windows::Foundation::IAsyncOperation<int32_t> AddAsync(int32_t lhs, int32_t rhs);
Windows::Foundation::IAsyncOperationWithProgress<int32_t, int32_t> AddAsyncWithProgress(int32_t lhs, int32_t rhs);
Windows::Foundation::Point PointProperty();
void PointProperty(Windows::Foundation::Point const& value);
Windows::Foundation::Rect RectProperty();
void RectProperty(Windows::Foundation::Rect const& value);
Windows::Foundation::Size SizeProperty();
void SizeProperty(Windows::Foundation::Size const& value);
Windows::UI::Color ColorProperty();
void ColorProperty(Windows::UI::Color const& value);
Microsoft::UI::Xaml::CornerRadius CornerRadiusProperty();
void CornerRadiusProperty(Microsoft::UI::Xaml::CornerRadius const& value);
Microsoft::UI::Xaml::Duration DurationProperty();
void DurationProperty(Microsoft::UI::Xaml::Duration const& value);
Microsoft::UI::Xaml::GridLength GridLengthProperty();
void GridLengthProperty(Microsoft::UI::Xaml::GridLength const& value);
Microsoft::UI::Xaml::Thickness ThicknessProperty();
void ThicknessProperty(Microsoft::UI::Xaml::Thickness const& value);
Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition GeneratorPositionProperty();
void GeneratorPositionProperty(Microsoft::UI::Xaml::Controls::Primitives::GeneratorPosition const& value);
Microsoft::UI::Xaml::Media::Matrix MatrixProperty();
void MatrixProperty(Microsoft::UI::Xaml::Media::Matrix const& value);
Microsoft::UI::Xaml::Media::Animation::KeyTime KeyTimeProperty();
void KeyTimeProperty(Microsoft::UI::Xaml::Media::Animation::KeyTime const& value);
Microsoft::UI::Xaml::Media::Animation::RepeatBehavior RepeatBehaviorProperty();
void RepeatBehaviorProperty(Microsoft::UI::Xaml::Media::Animation::RepeatBehavior const& value);
Microsoft::UI::Xaml::Media::Media3D::Matrix3D Matrix3DProperty();
void Matrix3DProperty(Microsoft::UI::Xaml::Media::Media3D::Matrix3D const& value);
Windows::Foundation::Numerics::float3x2 Matrix3x2Property();
void Matrix3x2Property(Windows::Foundation::Numerics::float3x2 const& value);
Windows::Foundation::Numerics::float4x4 Matrix4x4Property();
void Matrix4x4Property(Windows::Foundation::Numerics::float4x4 const& value);
Windows::Foundation::Numerics::plane PlaneProperty();
void PlaneProperty(Windows::Foundation::Numerics::plane const& value);
Windows::Foundation::Numerics::quaternion QuaternionProperty();
void QuaternionProperty(Windows::Foundation::Numerics::quaternion const& value);
Windows::Foundation::Numerics::float2 Vector2Property();
void Vector2Property(Windows::Foundation::Numerics::float2 const& value);
Windows::Foundation::Numerics::float3 Vector3Property();
void Vector3Property(Windows::Foundation::Numerics::float3 const& value);
Windows::Foundation::IReference<Windows::Foundation::Numerics::float3> Vector3NullableProperty();
void Vector3NullableProperty(Windows::Foundation::IReference<Windows::Foundation::Numerics::float3> const& value);
Windows::Foundation::Numerics::float4 Vector4Property();
void Vector4Property(Windows::Foundation::Numerics::float4 const& value);
Windows::Foundation::IReference<Windows::Foundation::Point> GetPointReference();
Windows::Foundation::TimeSpan TimeSpanProperty();
void TimeSpanProperty(Windows::Foundation::TimeSpan const& value);
Windows::Foundation::IReference<Windows::Foundation::TimeSpan> GetTimeSpanReference();
Windows::Foundation::DateTime DateTimeProperty();
void DateTimeProperty(Windows::Foundation::DateTime const& value);
Windows::Foundation::IReference<Windows::Foundation::DateTime> GetDateTimeProperty();
winrt::hresult HResultProperty();
void HResultProperty(winrt::hresult const& value);
static int32_t UnboxInt32(IInspectable const& obj);
static bool UnboxBoolean(IInspectable const& obj);
static hstring UnboxString(IInspectable const& obj);
static EnumValue UnboxEnum(IInspectable const& obj);
static TestComponentCSharp::ProvideInt UnboxDelegate(IInspectable const& obj);
static Windows::UI::Xaml::Interop::TypeName UnboxType(IInspectable const& obj);
static com_array<int32_t> UnboxInt32Array(IInspectable const& obj);
static com_array<bool> UnboxBooleanArray(IInspectable const& obj);
static com_array<hstring> UnboxStringArray(IInspectable const& obj);
static void UnboxAndCallProgressHandler(IInspectable const& httpProgressHandler);
double Calculate(winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Foundation::IReference<double>> const& values);
winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Foundation::IReference<int32_t>> GetNullableIntList();
static int GetPropertyType(Windows::Foundation::IInspectable const& obj);
static hstring GetName(Windows::Foundation::IInspectable const& obj);
static Windows::UI::Xaml::Interop::TypeName Int32Type();
static Windows::UI::Xaml::Interop::TypeName ReferenceInt32Type();
static Windows::UI::Xaml::Interop::TypeName ThisClassType();
static Windows::Foundation::IInspectable BoxedType();
static Windows::Foundation::Collections::IVector<Windows::UI::Xaml::Interop::TypeName> ListOfTypes();
static bool VerifyTypeIsInt32Type(Windows::UI::Xaml::Interop::TypeName const& type_name);
static bool VerifyTypeIsReferenceInt32Type(Windows::UI::Xaml::Interop::TypeName const& type_name);
static bool VerifyTypeIsThisClassType(Windows::UI::Xaml::Interop::TypeName const& type_name);
static hstring GetTypeNameForType(Windows::UI::Xaml::Interop::TypeName const& type);
static Windows::Foundation::IInspectable EmptyString();
static Windows::Foundation::IInspectable BoxedDelegate();
static Windows::Foundation::IInspectable BoxedEnum();
static Windows::Foundation::IInspectable BoxedEventHandler();
hstring Catch(hstring const& params, hstring& locks);
hstring ThrowExceptionWithMessage(hstring message, bool throwNonMappedError);
hstring OriginateAndThrowExceptionWithMessage(hstring message);
static IProperties1 NativeProperties1();
static Windows::Foundation::IInspectable ServiceProvider();
static winrt::Windows::Foundation::IInspectable ComInterop();
static winrt::Windows::Foundation::Collections::IPropertySet PropertySet();
// IStringable
hstring ToString();
// Property test interfaces
//void Draw();
//void Draw(hstring const& gunModel);
//hstring DrawTo();
//void Draw();
//void Draw(int32_t figureSides);
//int32_t DrawTo();
int32_t ReadWriteProperty();
//int32_t DistinctProperty();
void ReadWriteProperty(int32_t value) noexcept;
//hstring DistinctProperty();
//void DistinctProperty(hstring const& value);
winrt::event<Windows::Foundation::EventHandler<Microsoft::UI::Xaml::Data::DataErrorsChangedEventArgs>> _dataErrorsChanged;
bool HasErrors();
winrt::event_token ErrorsChanged(Windows::Foundation::EventHandler<Microsoft::UI::Xaml::Data::DataErrorsChangedEventArgs> const& handler);
void ErrorsChanged(winrt::event_token const& token) noexcept;
Windows::Foundation::Collections::IIterable<Windows::Foundation::IInspectable> GetErrors(hstring const& propertyName);
void RaiseDataErrorChanged();
winrt::event<Windows::Foundation::EventHandler<Windows::Foundation::IInspectable>> _canExecuteChanged;
winrt::event_token CanExecuteChanged(Windows::Foundation::EventHandler<Windows::Foundation::IInspectable> const& handler);
void CanExecuteChanged(winrt::event_token const& token) noexcept;
bool CanExecute(Windows::Foundation::IInspectable const& parameter);
void Execute(Windows::Foundation::IInspectable const& parameter);
void RaiseCanExecuteChanged();
static Windows::Foundation::IInspectable BadRuntimeClassName();
};
}
namespace winrt::TestComponentCSharp::factory_implementation
{
struct Class : ClassT<Class, implementation::Class, Windows::Foundation::IStringable>
{
hstring ToString()
{
return L"Class";
}
};
}