]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Foundation/mod.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Foundation / mod.rs
CommitLineData
5e7ed085
FG
1#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2#[cfg(feature = "Foundation_Collections")]
3pub mod Collections;
4#[cfg(feature = "Foundation_Diagnostics")]
5pub mod Diagnostics;
6#[cfg(feature = "Foundation_Metadata")]
7pub mod Metadata;
8#[cfg(feature = "Foundation_Numerics")]
9pub mod Numerics;
10pub type AsyncActionCompletedHandler = *mut ::core::ffi::c_void;
11pub type AsyncActionProgressHandler = *mut ::core::ffi::c_void;
12pub type AsyncActionWithProgressCompletedHandler = *mut ::core::ffi::c_void;
13pub type AsyncOperationCompletedHandler = *mut ::core::ffi::c_void;
14pub type AsyncOperationProgressHandler = *mut ::core::ffi::c_void;
15pub type AsyncOperationWithProgressCompletedHandler = *mut ::core::ffi::c_void;
16#[doc = "*Required features: 'Foundation'*"]
17#[repr(transparent)]
18pub struct AsyncStatus(pub i32);
19impl AsyncStatus {
20 pub const Canceled: Self = Self(2i32);
21 pub const Completed: Self = Self(1i32);
22 pub const Error: Self = Self(3i32);
23 pub const Started: Self = Self(0i32);
24}
25impl ::core::marker::Copy for AsyncStatus {}
26impl ::core::clone::Clone for AsyncStatus {
27 fn clone(&self) -> Self {
28 *self
29 }
30}
31#[repr(C)]
32#[doc = "*Required features: 'Foundation'*"]
33pub struct DateTime {
34 pub UniversalTime: i64,
35}
36impl ::core::marker::Copy for DateTime {}
37impl ::core::clone::Clone for DateTime {
38 fn clone(&self) -> Self {
39 *self
40 }
41}
42pub type Deferral = *mut ::core::ffi::c_void;
43pub type DeferralCompletedHandler = *mut ::core::ffi::c_void;
44pub type EventHandler = *mut ::core::ffi::c_void;
45#[repr(C)]
46#[doc = "*Required features: 'Foundation'*"]
47pub struct EventRegistrationToken {
48 pub Value: i64,
49}
50impl ::core::marker::Copy for EventRegistrationToken {}
51impl ::core::clone::Clone for EventRegistrationToken {
52 fn clone(&self) -> Self {
53 *self
54 }
55}
56pub type IAsyncAction = *mut ::core::ffi::c_void;
57pub type IAsyncActionWithProgress = *mut ::core::ffi::c_void;
58pub type IAsyncInfo = *mut ::core::ffi::c_void;
59pub type IAsyncOperation = *mut ::core::ffi::c_void;
60pub type IAsyncOperationWithProgress = *mut ::core::ffi::c_void;
61pub type IClosable = *mut ::core::ffi::c_void;
62pub type IGetActivationFactory = *mut ::core::ffi::c_void;
63pub type IMemoryBuffer = *mut ::core::ffi::c_void;
64pub type IMemoryBufferReference = *mut ::core::ffi::c_void;
65pub type IPropertyValue = *mut ::core::ffi::c_void;
66pub type IReference = *mut ::core::ffi::c_void;
67pub type IReferenceArray = *mut ::core::ffi::c_void;
68pub type IStringable = *mut ::core::ffi::c_void;
69pub type IWwwFormUrlDecoderEntry = *mut ::core::ffi::c_void;
70pub type MemoryBuffer = *mut ::core::ffi::c_void;
71#[repr(C)]
72#[doc = "*Required features: 'Foundation'*"]
73pub struct Point {
74 pub X: f32,
75 pub Y: f32,
76}
77impl ::core::marker::Copy for Point {}
78impl ::core::clone::Clone for Point {
79 fn clone(&self) -> Self {
80 *self
81 }
82}
83#[doc = "*Required features: 'Foundation'*"]
84#[repr(transparent)]
85pub struct PropertyType(pub i32);
86impl PropertyType {
87 pub const Empty: Self = Self(0i32);
88 pub const UInt8: Self = Self(1i32);
89 pub const Int16: Self = Self(2i32);
90 pub const UInt16: Self = Self(3i32);
91 pub const Int32: Self = Self(4i32);
92 pub const UInt32: Self = Self(5i32);
93 pub const Int64: Self = Self(6i32);
94 pub const UInt64: Self = Self(7i32);
95 pub const Single: Self = Self(8i32);
96 pub const Double: Self = Self(9i32);
97 pub const Char16: Self = Self(10i32);
98 pub const Boolean: Self = Self(11i32);
99 pub const String: Self = Self(12i32);
100 pub const Inspectable: Self = Self(13i32);
101 pub const DateTime: Self = Self(14i32);
102 pub const TimeSpan: Self = Self(15i32);
103 pub const Guid: Self = Self(16i32);
104 pub const Point: Self = Self(17i32);
105 pub const Size: Self = Self(18i32);
106 pub const Rect: Self = Self(19i32);
107 pub const OtherType: Self = Self(20i32);
108 pub const UInt8Array: Self = Self(1025i32);
109 pub const Int16Array: Self = Self(1026i32);
110 pub const UInt16Array: Self = Self(1027i32);
111 pub const Int32Array: Self = Self(1028i32);
112 pub const UInt32Array: Self = Self(1029i32);
113 pub const Int64Array: Self = Self(1030i32);
114 pub const UInt64Array: Self = Self(1031i32);
115 pub const SingleArray: Self = Self(1032i32);
116 pub const DoubleArray: Self = Self(1033i32);
117 pub const Char16Array: Self = Self(1034i32);
118 pub const BooleanArray: Self = Self(1035i32);
119 pub const StringArray: Self = Self(1036i32);
120 pub const InspectableArray: Self = Self(1037i32);
121 pub const DateTimeArray: Self = Self(1038i32);
122 pub const TimeSpanArray: Self = Self(1039i32);
123 pub const GuidArray: Self = Self(1040i32);
124 pub const PointArray: Self = Self(1041i32);
125 pub const SizeArray: Self = Self(1042i32);
126 pub const RectArray: Self = Self(1043i32);
127 pub const OtherTypeArray: Self = Self(1044i32);
128}
129impl ::core::marker::Copy for PropertyType {}
130impl ::core::clone::Clone for PropertyType {
131 fn clone(&self) -> Self {
132 *self
133 }
134}
135#[repr(C)]
136#[doc = "*Required features: 'Foundation'*"]
137pub struct Rect {
138 pub X: f32,
139 pub Y: f32,
140 pub Width: f32,
141 pub Height: f32,
142}
143impl ::core::marker::Copy for Rect {}
144impl ::core::clone::Clone for Rect {
145 fn clone(&self) -> Self {
146 *self
147 }
148}
149#[repr(C)]
150#[doc = "*Required features: 'Foundation'*"]
151pub struct Size {
152 pub Width: f32,
153 pub Height: f32,
154}
155impl ::core::marker::Copy for Size {}
156impl ::core::clone::Clone for Size {
157 fn clone(&self) -> Self {
158 *self
159 }
160}
161#[repr(C)]
162#[doc = "*Required features: 'Foundation'*"]
163pub struct TimeSpan {
164 pub Duration: i64,
165}
166impl ::core::marker::Copy for TimeSpan {}
167impl ::core::clone::Clone for TimeSpan {
168 fn clone(&self) -> Self {
169 *self
170 }
171}
172pub type TypedEventHandler = *mut ::core::ffi::c_void;
173pub type Uri = *mut ::core::ffi::c_void;
174pub type WwwFormUrlDecoder = *mut ::core::ffi::c_void;
175pub type WwwFormUrlDecoderEntry = *mut ::core::ffi::c_void;