summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys-0.28.0/src/Windows/UI/Composition/mod.rs
blob: 442287bb0fcfad0b69d6b8c5c5bc0d68afbac7c1 (plain)
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
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[cfg(feature = "UI_Composition_Core")]
pub mod Core;
#[cfg(feature = "UI_Composition_Desktop")]
pub mod Desktop;
#[cfg(feature = "UI_Composition_Diagnostics")]
pub mod Diagnostics;
#[cfg(feature = "UI_Composition_Effects")]
pub mod Effects;
#[cfg(feature = "UI_Composition_Interactions")]
pub mod Interactions;
#[cfg(feature = "UI_Composition_Scenes")]
pub mod Scenes;
#[link(name = "windows")]
extern "system" {}
pub type AmbientLight = *mut ::core::ffi::c_void;
pub type AnimationController = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct AnimationControllerProgressBehavior(pub i32);
impl AnimationControllerProgressBehavior {
    pub const Default: Self = Self(0i32);
    pub const IncludesDelayTime: Self = Self(1i32);
}
impl ::core::marker::Copy for AnimationControllerProgressBehavior {}
impl ::core::clone::Clone for AnimationControllerProgressBehavior {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AnimationDelayBehavior(pub i32);
impl AnimationDelayBehavior {
    pub const SetInitialValueAfterDelay: Self = Self(0i32);
    pub const SetInitialValueBeforeDelay: Self = Self(1i32);
}
impl ::core::marker::Copy for AnimationDelayBehavior {}
impl ::core::clone::Clone for AnimationDelayBehavior {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AnimationDirection(pub i32);
impl AnimationDirection {
    pub const Normal: Self = Self(0i32);
    pub const Reverse: Self = Self(1i32);
    pub const Alternate: Self = Self(2i32);
    pub const AlternateReverse: Self = Self(3i32);
}
impl ::core::marker::Copy for AnimationDirection {}
impl ::core::clone::Clone for AnimationDirection {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AnimationIterationBehavior(pub i32);
impl AnimationIterationBehavior {
    pub const Count: Self = Self(0i32);
    pub const Forever: Self = Self(1i32);
}
impl ::core::marker::Copy for AnimationIterationBehavior {}
impl ::core::clone::Clone for AnimationIterationBehavior {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AnimationPropertyAccessMode(pub i32);
impl AnimationPropertyAccessMode {
    pub const None: Self = Self(0i32);
    pub const ReadOnly: Self = Self(1i32);
    pub const WriteOnly: Self = Self(2i32);
    pub const ReadWrite: Self = Self(3i32);
}
impl ::core::marker::Copy for AnimationPropertyAccessMode {}
impl ::core::clone::Clone for AnimationPropertyAccessMode {
    fn clone(&self) -> Self {
        *self
    }
}
pub type AnimationPropertyInfo = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct AnimationStopBehavior(pub i32);
impl AnimationStopBehavior {
    pub const LeaveCurrentValue: Self = Self(0i32);
    pub const SetToInitialValue: Self = Self(1i32);
    pub const SetToFinalValue: Self = Self(2i32);
}
impl ::core::marker::Copy for AnimationStopBehavior {}
impl ::core::clone::Clone for AnimationStopBehavior {
    fn clone(&self) -> Self {
        *self
    }
}
pub type BackEasingFunction = *mut ::core::ffi::c_void;
pub type BooleanKeyFrameAnimation = *mut ::core::ffi::c_void;
pub type BounceEasingFunction = *mut ::core::ffi::c_void;
pub type BounceScalarNaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type BounceVector2NaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type BounceVector3NaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type CircleEasingFunction = *mut ::core::ffi::c_void;
pub type ColorKeyFrameAnimation = *mut ::core::ffi::c_void;
pub type CompositionAnimation = *mut ::core::ffi::c_void;
pub type CompositionAnimationGroup = *mut ::core::ffi::c_void;
pub type CompositionBackdropBrush = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionBackfaceVisibility(pub i32);
impl CompositionBackfaceVisibility {
    pub const Inherit: Self = Self(0i32);
    pub const Visible: Self = Self(1i32);
    pub const Hidden: Self = Self(2i32);
}
impl ::core::marker::Copy for CompositionBackfaceVisibility {}
impl ::core::clone::Clone for CompositionBackfaceVisibility {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionBatchCompletedEventArgs = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionBatchTypes(pub u32);
impl CompositionBatchTypes {
    pub const None: Self = Self(0u32);
    pub const Animation: Self = Self(1u32);
    pub const Effect: Self = Self(2u32);
    pub const InfiniteAnimation: Self = Self(4u32);
    pub const AllAnimations: Self = Self(5u32);
}
impl ::core::marker::Copy for CompositionBatchTypes {}
impl ::core::clone::Clone for CompositionBatchTypes {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CompositionBitmapInterpolationMode(pub i32);
impl CompositionBitmapInterpolationMode {
    pub const NearestNeighbor: Self = Self(0i32);
    pub const Linear: Self = Self(1i32);
    pub const MagLinearMinLinearMipLinear: Self = Self(2i32);
    pub const MagLinearMinLinearMipNearest: Self = Self(3i32);
    pub const MagLinearMinNearestMipLinear: Self = Self(4i32);
    pub const MagLinearMinNearestMipNearest: Self = Self(5i32);
    pub const MagNearestMinLinearMipLinear: Self = Self(6i32);
    pub const MagNearestMinLinearMipNearest: Self = Self(7i32);
    pub const MagNearestMinNearestMipLinear: Self = Self(8i32);
    pub const MagNearestMinNearestMipNearest: Self = Self(9i32);
}
impl ::core::marker::Copy for CompositionBitmapInterpolationMode {}
impl ::core::clone::Clone for CompositionBitmapInterpolationMode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CompositionBorderMode(pub i32);
impl CompositionBorderMode {
    pub const Inherit: Self = Self(0i32);
    pub const Soft: Self = Self(1i32);
    pub const Hard: Self = Self(2i32);
}
impl ::core::marker::Copy for CompositionBorderMode {}
impl ::core::clone::Clone for CompositionBorderMode {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionBrush = *mut ::core::ffi::c_void;
pub type CompositionCapabilities = *mut ::core::ffi::c_void;
pub type CompositionClip = *mut ::core::ffi::c_void;
pub type CompositionColorBrush = *mut ::core::ffi::c_void;
pub type CompositionColorGradientStop = *mut ::core::ffi::c_void;
pub type CompositionColorGradientStopCollection = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionColorSpace(pub i32);
impl CompositionColorSpace {
    pub const Auto: Self = Self(0i32);
    pub const Hsl: Self = Self(1i32);
    pub const Rgb: Self = Self(2i32);
    pub const HslLinear: Self = Self(3i32);
    pub const RgbLinear: Self = Self(4i32);
}
impl ::core::marker::Copy for CompositionColorSpace {}
impl ::core::clone::Clone for CompositionColorSpace {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionCommitBatch = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionCompositeMode(pub i32);
impl CompositionCompositeMode {
    pub const Inherit: Self = Self(0i32);
    pub const SourceOver: Self = Self(1i32);
    pub const DestinationInvert: Self = Self(2i32);
    pub const MinBlend: Self = Self(3i32);
}
impl ::core::marker::Copy for CompositionCompositeMode {}
impl ::core::clone::Clone for CompositionCompositeMode {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionContainerShape = *mut ::core::ffi::c_void;
pub type CompositionDrawingSurface = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionDropShadowSourcePolicy(pub i32);
impl CompositionDropShadowSourcePolicy {
    pub const Default: Self = Self(0i32);
    pub const InheritFromVisualContent: Self = Self(1i32);
}
impl ::core::marker::Copy for CompositionDropShadowSourcePolicy {}
impl ::core::clone::Clone for CompositionDropShadowSourcePolicy {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionEasingFunction = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionEasingFunctionMode(pub i32);
impl CompositionEasingFunctionMode {
    pub const In: Self = Self(0i32);
    pub const Out: Self = Self(1i32);
    pub const InOut: Self = Self(2i32);
}
impl ::core::marker::Copy for CompositionEasingFunctionMode {}
impl ::core::clone::Clone for CompositionEasingFunctionMode {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionEffectBrush = *mut ::core::ffi::c_void;
pub type CompositionEffectFactory = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionEffectFactoryLoadStatus(pub i32);
impl CompositionEffectFactoryLoadStatus {
    pub const Success: Self = Self(0i32);
    pub const EffectTooComplex: Self = Self(1i32);
    pub const Pending: Self = Self(2i32);
    pub const Other: Self = Self(-1i32);
}
impl ::core::marker::Copy for CompositionEffectFactoryLoadStatus {}
impl ::core::clone::Clone for CompositionEffectFactoryLoadStatus {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionEffectSourceParameter = *mut ::core::ffi::c_void;
pub type CompositionEllipseGeometry = *mut ::core::ffi::c_void;
pub type CompositionGeometricClip = *mut ::core::ffi::c_void;
pub type CompositionGeometry = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionGetValueStatus(pub i32);
impl CompositionGetValueStatus {
    pub const Succeeded: Self = Self(0i32);
    pub const TypeMismatch: Self = Self(1i32);
    pub const NotFound: Self = Self(2i32);
}
impl ::core::marker::Copy for CompositionGetValueStatus {}
impl ::core::clone::Clone for CompositionGetValueStatus {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionGradientBrush = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionGradientExtendMode(pub i32);
impl CompositionGradientExtendMode {
    pub const Clamp: Self = Self(0i32);
    pub const Wrap: Self = Self(1i32);
    pub const Mirror: Self = Self(2i32);
}
impl ::core::marker::Copy for CompositionGradientExtendMode {}
impl ::core::clone::Clone for CompositionGradientExtendMode {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionGraphicsDevice = *mut ::core::ffi::c_void;
pub type CompositionLight = *mut ::core::ffi::c_void;
pub type CompositionLineGeometry = *mut ::core::ffi::c_void;
pub type CompositionLinearGradientBrush = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionMappingMode(pub i32);
impl CompositionMappingMode {
    pub const Absolute: Self = Self(0i32);
    pub const Relative: Self = Self(1i32);
}
impl ::core::marker::Copy for CompositionMappingMode {}
impl ::core::clone::Clone for CompositionMappingMode {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionMaskBrush = *mut ::core::ffi::c_void;
pub type CompositionMipmapSurface = *mut ::core::ffi::c_void;
pub type CompositionNineGridBrush = *mut ::core::ffi::c_void;
pub type CompositionObject = *mut ::core::ffi::c_void;
pub type CompositionPath = *mut ::core::ffi::c_void;
pub type CompositionPathGeometry = *mut ::core::ffi::c_void;
pub type CompositionProjectedShadow = *mut ::core::ffi::c_void;
pub type CompositionProjectedShadowCaster = *mut ::core::ffi::c_void;
pub type CompositionProjectedShadowCasterCollection = *mut ::core::ffi::c_void;
pub type CompositionProjectedShadowReceiver = *mut ::core::ffi::c_void;
pub type CompositionProjectedShadowReceiverUnorderedCollection = *mut ::core::ffi::c_void;
pub type CompositionPropertySet = *mut ::core::ffi::c_void;
pub type CompositionRadialGradientBrush = *mut ::core::ffi::c_void;
pub type CompositionRectangleGeometry = *mut ::core::ffi::c_void;
pub type CompositionRoundedRectangleGeometry = *mut ::core::ffi::c_void;
pub type CompositionScopedBatch = *mut ::core::ffi::c_void;
pub type CompositionShadow = *mut ::core::ffi::c_void;
pub type CompositionShape = *mut ::core::ffi::c_void;
pub type CompositionShapeCollection = *mut ::core::ffi::c_void;
pub type CompositionSpriteShape = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionStretch(pub i32);
impl CompositionStretch {
    pub const None: Self = Self(0i32);
    pub const Fill: Self = Self(1i32);
    pub const Uniform: Self = Self(2i32);
    pub const UniformToFill: Self = Self(3i32);
}
impl ::core::marker::Copy for CompositionStretch {}
impl ::core::clone::Clone for CompositionStretch {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct CompositionStrokeCap(pub i32);
impl CompositionStrokeCap {
    pub const Flat: Self = Self(0i32);
    pub const Square: Self = Self(1i32);
    pub const Round: Self = Self(2i32);
    pub const Triangle: Self = Self(3i32);
}
impl ::core::marker::Copy for CompositionStrokeCap {}
impl ::core::clone::Clone for CompositionStrokeCap {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionStrokeDashArray = *mut ::core::ffi::c_void;
#[repr(transparent)]
pub struct CompositionStrokeLineJoin(pub i32);
impl CompositionStrokeLineJoin {
    pub const Miter: Self = Self(0i32);
    pub const Bevel: Self = Self(1i32);
    pub const Round: Self = Self(2i32);
    pub const MiterOrBevel: Self = Self(3i32);
}
impl ::core::marker::Copy for CompositionStrokeLineJoin {}
impl ::core::clone::Clone for CompositionStrokeLineJoin {
    fn clone(&self) -> Self {
        *self
    }
}
pub type CompositionSurfaceBrush = *mut ::core::ffi::c_void;
pub type CompositionTarget = *mut ::core::ffi::c_void;
pub type CompositionTransform = *mut ::core::ffi::c_void;
pub type CompositionViewBox = *mut ::core::ffi::c_void;
pub type CompositionVirtualDrawingSurface = *mut ::core::ffi::c_void;
pub type CompositionVisualSurface = *mut ::core::ffi::c_void;
pub type Compositor = *mut ::core::ffi::c_void;
pub type ContainerVisual = *mut ::core::ffi::c_void;
pub type CubicBezierEasingFunction = *mut ::core::ffi::c_void;
pub type DelegatedInkTrailVisual = *mut ::core::ffi::c_void;
pub type DistantLight = *mut ::core::ffi::c_void;
pub type DropShadow = *mut ::core::ffi::c_void;
pub type ElasticEasingFunction = *mut ::core::ffi::c_void;
pub type ExponentialEasingFunction = *mut ::core::ffi::c_void;
pub type ExpressionAnimation = *mut ::core::ffi::c_void;
pub type IAnimationObject = *mut ::core::ffi::c_void;
pub type ICompositionAnimationBase = *mut ::core::ffi::c_void;
pub type ICompositionSupportsSystemBackdrop = *mut ::core::ffi::c_void;
pub type ICompositionSurface = *mut ::core::ffi::c_void;
pub type ICompositionSurfaceFacade = *mut ::core::ffi::c_void;
pub type IVisualElement = *mut ::core::ffi::c_void;
pub type IVisualElement2 = *mut ::core::ffi::c_void;
pub type ImplicitAnimationCollection = *mut ::core::ffi::c_void;
pub type InitialValueExpressionCollection = *mut ::core::ffi::c_void;
#[repr(C)]
#[cfg(feature = "Foundation")]
pub struct InkTrailPoint {
    pub Point: super::super::Foundation::Point,
    pub Radius: f32,
}
#[cfg(feature = "Foundation")]
impl ::core::marker::Copy for InkTrailPoint {}
#[cfg(feature = "Foundation")]
impl ::core::clone::Clone for InkTrailPoint {
    fn clone(&self) -> Self {
        *self
    }
}
pub type InsetClip = *mut ::core::ffi::c_void;
pub type KeyFrameAnimation = *mut ::core::ffi::c_void;
pub type LayerVisual = *mut ::core::ffi::c_void;
pub type LinearEasingFunction = *mut ::core::ffi::c_void;
pub type NaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type PathKeyFrameAnimation = *mut ::core::ffi::c_void;
pub type PointLight = *mut ::core::ffi::c_void;
pub type PowerEasingFunction = *mut ::core::ffi::c_void;
pub type QuaternionKeyFrameAnimation = *mut ::core::ffi::c_void;
pub type RectangleClip = *mut ::core::ffi::c_void;
pub type RedirectVisual = *mut ::core::ffi::c_void;
pub type RenderingDeviceReplacedEventArgs = *mut ::core::ffi::c_void;
pub type ScalarKeyFrameAnimation = *mut ::core::ffi::c_void;
pub type ScalarNaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type ShapeVisual = *mut ::core::ffi::c_void;
pub type SineEasingFunction = *mut ::core::ffi::c_void;
pub type SpotLight = *mut ::core::ffi::c_void;
pub type SpringScalarNaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type SpringVector2NaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type SpringVector3NaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type SpriteVisual = *mut ::core::ffi::c_void;
pub type StepEasingFunction = *mut ::core::ffi::c_void;
pub type Vector2KeyFrameAnimation = *mut ::core::ffi::c_void;
pub type Vector2NaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type Vector3KeyFrameAnimation = *mut ::core::ffi::c_void;
pub type Vector3NaturalMotionAnimation = *mut ::core::ffi::c_void;
pub type Vector4KeyFrameAnimation = *mut ::core::ffi::c_void;
pub type Visual = *mut ::core::ffi::c_void;
pub type VisualCollection = *mut ::core::ffi::c_void;
pub type VisualUnorderedCollection = *mut ::core::ffi::c_void;