objc2_image_capture_core/generated/
ImageCaptureConstants.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 #[deprecated = "ICRunLoopMode has been deprecated and may break in future releases."]
11 pub static ICRunLoopMode: Option<&'static NSString>;
12}
13
14extern "C" {
15 pub static ICErrorDomain: Option<&'static NSErrorDomain>;
35}
36
37#[repr(transparent)]
40#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
41pub struct ICEXIFOrientationType(pub NSUInteger);
42impl ICEXIFOrientationType {
43 #[doc(alias = "ICEXIFOrientation1")]
44 pub const Orientation1: Self = Self(1);
45 #[doc(alias = "ICEXIFOrientation2")]
46 pub const Orientation2: Self = Self(2);
47 #[doc(alias = "ICEXIFOrientation3")]
48 pub const Orientation3: Self = Self(3);
49 #[doc(alias = "ICEXIFOrientation4")]
50 pub const Orientation4: Self = Self(4);
51 #[doc(alias = "ICEXIFOrientation5")]
52 pub const Orientation5: Self = Self(5);
53 #[doc(alias = "ICEXIFOrientation6")]
54 pub const Orientation6: Self = Self(6);
55 #[doc(alias = "ICEXIFOrientation7")]
56 pub const Orientation7: Self = Self(7);
57 #[doc(alias = "ICEXIFOrientation8")]
58 pub const Orientation8: Self = Self(8);
59}
60
61unsafe impl Encode for ICEXIFOrientationType {
62 const ENCODING: Encoding = NSUInteger::ENCODING;
63}
64
65unsafe impl RefEncode for ICEXIFOrientationType {
66 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
67}
68
69#[repr(transparent)]
72#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
73pub struct ICReturnCodeOffset(pub NSInteger);
74impl ICReturnCodeOffset {
75 #[doc(alias = "ICReturnCodeThumbnailOffset")]
76 pub const ThumbnailOffset: Self = Self(-21000);
77 #[doc(alias = "ICReturnCodeMetadataOffset")]
78 pub const MetadataOffset: Self = Self(-21050);
79 #[doc(alias = "ICReturnCodeDownloadOffset")]
80 pub const DownloadOffset: Self = Self(-21100);
81 #[doc(alias = "ICReturnCodeDeleteOffset")]
82 pub const DeleteOffset: Self = Self(-21150);
83 #[doc(alias = "ICReturnCodeExFATOffset")]
84 pub const ExFATOffset: Self = Self(-21200);
85 #[doc(alias = "ICReturnCodePTPOffset")]
86 pub const PTPOffset: Self = Self(-21250);
87 #[doc(alias = "ICReturnCodeSystemOffset")]
88 pub const SystemOffset: Self = Self(-21300);
89 #[doc(alias = "ICReturnCodeDeviceOffset")]
90 pub const DeviceOffset: Self = Self(-21350);
91 #[doc(alias = "ICReturnCodeDeviceConnection")]
92 pub const DeviceConnection: Self = Self(-21400);
93 #[doc(alias = "ICReturnCodeObjectOffset")]
94 pub const ObjectOffset: Self = Self(-21450);
95}
96
97unsafe impl Encode for ICReturnCodeOffset {
98 const ENCODING: Encoding = NSInteger::ENCODING;
99}
100
101unsafe impl RefEncode for ICReturnCodeOffset {
102 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
103}
104
105#[repr(transparent)]
108#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
109pub struct ICReturnThumbnailErrorCode(pub NSInteger);
110impl ICReturnThumbnailErrorCode {
111 #[doc(alias = "ICReturnThumbnailNotAvailable")]
112 pub const NotAvailable: Self = Self(-21000);
113 #[doc(alias = "ICReturnThumbnailAlreadyFetching")]
114 pub const AlreadyFetching: Self = Self(-20999);
115 #[doc(alias = "ICReturnThumbnailCanceled")]
116 pub const Canceled: Self = Self(-20098);
117 #[doc(alias = "ICReturnThumbnailInvalid")]
118 pub const Invalid: Self = Self(-20097);
119}
120
121unsafe impl Encode for ICReturnThumbnailErrorCode {
122 const ENCODING: Encoding = NSInteger::ENCODING;
123}
124
125unsafe impl RefEncode for ICReturnThumbnailErrorCode {
126 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
127}
128
129#[repr(transparent)]
132#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
133pub struct ICReturnMetadataErrorCode(pub NSInteger);
134impl ICReturnMetadataErrorCode {
135 #[doc(alias = "ICReturnMetadataNotAvailable")]
136 pub const NotAvailable: Self = Self(-20150);
137 #[doc(alias = "ICReturnMetadataAlreadyFetching")]
138 pub const AlreadyFetching: Self = Self(-20149);
139 #[doc(alias = "ICReturnMetadataCanceled")]
140 pub const Canceled: Self = Self(-20148);
141 #[doc(alias = "ICReturnMetadataInvalid")]
142 pub const Invalid: Self = Self(-20147);
143}
144
145unsafe impl Encode for ICReturnMetadataErrorCode {
146 const ENCODING: Encoding = NSInteger::ENCODING;
147}
148
149unsafe impl RefEncode for ICReturnMetadataErrorCode {
150 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
151}
152
153#[repr(transparent)]
156#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
157pub struct ICReturnConnectionErrorCode(pub NSInteger);
158impl ICReturnConnectionErrorCode {
159 #[doc(alias = "ICReturnConnectionDriverExited")]
160 pub const DriverExited: Self = Self(-21350);
161 #[doc(alias = "ICReturnConnectionClosedSessionSuddenly")]
162 pub const ClosedSessionSuddenly: Self = Self(-21349);
163 #[doc(alias = "ICReturnConnectionEjectedSuddenly")]
164 pub const EjectedSuddenly: Self = Self(-21348);
165 #[doc(alias = "ICReturnConnectionSessionAlreadyOpen")]
166 pub const SessionAlreadyOpen: Self = Self(-21347);
167 #[doc(alias = "ICReturnConnectionEjectFailed")]
168 pub const EjectFailed: Self = Self(-21346);
169 #[doc(alias = "ICReturnConnectionFailedToOpen")]
170 pub const FailedToOpen: Self = Self(-21345);
171 #[doc(alias = "ICReturnConnectionFailedToOpenDevice")]
172 pub const FailedToOpenDevice: Self = Self(-21344);
173 #[doc(alias = "ICReturnConnectionNotAuthorizedToOpenDevice")]
174 pub const NotAuthorizedToOpenDevice: Self = Self(-21343);
175}
176
177unsafe impl Encode for ICReturnConnectionErrorCode {
178 const ENCODING: Encoding = NSInteger::ENCODING;
179}
180
181unsafe impl RefEncode for ICReturnConnectionErrorCode {
182 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
183}
184
185#[repr(transparent)]
188#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
189pub struct ICReturnPTPDeviceErrorCode(pub NSInteger);
190impl ICReturnPTPDeviceErrorCode {
191 #[doc(alias = "ICReturnPTPFailedToSendCommand")]
192 pub const FailedToSendCommand: Self = Self(-21250);
193 #[doc(alias = "ICReturnPTPNotAuthorizedToSendCommand")]
194 pub const NotAuthorizedToSendCommand: Self = Self(-21249);
195}
196
197unsafe impl Encode for ICReturnPTPDeviceErrorCode {
198 const ENCODING: Encoding = NSInteger::ENCODING;
199}
200
201unsafe impl RefEncode for ICReturnPTPDeviceErrorCode {
202 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
203}
204
205#[repr(transparent)]
208#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
209pub struct ICReturnDownloadErrorCode(pub NSInteger);
210impl ICReturnDownloadErrorCode {
211 #[doc(alias = "ICReturnDownloadPathInvalid")]
212 pub const PathInvalid: Self = Self(-21100);
213 #[doc(alias = "ICReturnDownloadFileWritable")]
214 pub const FileWritable: Self = Self(-21099);
215}
216
217unsafe impl Encode for ICReturnDownloadErrorCode {
218 const ENCODING: Encoding = NSInteger::ENCODING;
219}
220
221unsafe impl RefEncode for ICReturnDownloadErrorCode {
222 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
223}
224
225#[repr(transparent)]
228#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
229pub struct ICLegacyReturnCode(pub NSInteger);
230impl ICLegacyReturnCode {
231 #[doc(alias = "ICLegacyReturnCodeCommunicationErr")]
232 pub const CommunicationErr: Self = Self(-9900);
233 #[doc(alias = "ICLegacyReturnCodeDeviceNotFoundErr")]
234 pub const DeviceNotFoundErr: Self = Self(-9901);
235 #[doc(alias = "ICLegacyReturnCodeDeviceNotOpenErr")]
236 pub const DeviceNotOpenErr: Self = Self(-9902);
237 #[doc(alias = "ICLegacyReturnCodeFileCorruptedErr")]
238 pub const FileCorruptedErr: Self = Self(-9903);
239 #[doc(alias = "ICLegacyReturnCodeIOPendingErr")]
240 pub const IOPendingErr: Self = Self(-9904);
241 #[doc(alias = "ICLegacyReturnCodeInvalidObjectErr")]
242 pub const InvalidObjectErr: Self = Self(-9905);
243 #[doc(alias = "ICLegacyReturnCodeInvalidPropertyErr")]
244 pub const InvalidPropertyErr: Self = Self(-9906);
245 #[doc(alias = "ICLegacyReturnCodeIndexOutOfRangeErr")]
246 pub const IndexOutOfRangeErr: Self = Self(-9907);
247 #[doc(alias = "ICLegacyReturnCodePropertyTypeNotFoundErr")]
248 pub const PropertyTypeNotFoundErr: Self = Self(-9908);
249 #[doc(alias = "ICLegacyReturnCodeCannotYieldDevice")]
250 pub const CannotYieldDevice: Self = Self(-9909);
251 #[doc(alias = "ICLegacyReturnCodeDataTypeNotFoundErr")]
252 pub const DataTypeNotFoundErr: Self = Self(-9910);
253 #[doc(alias = "ICLegacyReturnCodeDeviceMemoryAllocationErr")]
254 pub const DeviceMemoryAllocationErr: Self = Self(-9911);
255 #[doc(alias = "ICLegacyReturnCodeDeviceInternalErr")]
256 pub const DeviceInternalErr: Self = Self(-9912);
257 #[doc(alias = "ICLegacyReturnCodeDeviceInvalidParamErr")]
258 pub const DeviceInvalidParamErr: Self = Self(-9913);
259 #[doc(alias = "ICLegacyReturnCodeDeviceAlreadyOpenErr")]
260 pub const DeviceAlreadyOpenErr: Self = Self(-9914);
261 #[doc(alias = "ICLegacyReturnCodeDeviceLocationIDNotFoundErr")]
262 pub const DeviceLocationIDNotFoundErr: Self = Self(-9915);
263 #[doc(alias = "ICLegacyReturnCodeDeviceGUIDNotFoundErr")]
264 pub const DeviceGUIDNotFoundErr: Self = Self(-9916);
265 #[doc(alias = "ICLegacyReturnCodeDeviceIOServicePathNotFoundErr")]
266 pub const DeviceIOServicePathNotFoundErr: Self = Self(-9917);
267 #[doc(alias = "ICLegacyReturnCodeDeviceUnsupportedErr")]
268 pub const DeviceUnsupportedErr: Self = Self(-9918);
269 #[doc(alias = "ICLegacyReturnCodeFrameworkInternalErr")]
270 pub const FrameworkInternalErr: Self = Self(-9919);
271 #[doc(alias = "ICLegacyReturnCodeExtensionInternalErr")]
272 pub const ExtensionInternalErr: Self = Self(-9920);
273 #[doc(alias = "ICLegacyReturnCodeInvalidSessionErr")]
274 pub const InvalidSessionErr: Self = Self(-9921);
275}
276
277unsafe impl Encode for ICLegacyReturnCode {
278 const ENCODING: Encoding = NSInteger::ENCODING;
279}
280
281unsafe impl RefEncode for ICLegacyReturnCode {
282 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
283}
284
285#[repr(transparent)]
288#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
289pub struct ICReturnCode(pub NSInteger);
290impl ICReturnCode {
291 #[doc(alias = "ICReturnSuccess")]
292 pub const Success: Self = Self(0);
293 #[doc(alias = "ICReturnInvalidParam")]
294 pub const InvalidParam: Self = Self(-9922);
295 #[doc(alias = "ICReturnCommunicationTimedOut")]
296 pub const CommunicationTimedOut: Self = Self(-9923);
297 #[doc(alias = "ICReturnScanOperationCanceled")]
298 pub const ScanOperationCanceled: Self = Self(-9924);
299 #[doc(alias = "ICReturnScannerInUseByLocalUser")]
300 pub const ScannerInUseByLocalUser: Self = Self(-9925);
301 #[doc(alias = "ICReturnScannerInUseByRemoteUser")]
302 pub const ScannerInUseByRemoteUser: Self = Self(-9926);
303 #[doc(alias = "ICReturnDeviceFailedToOpenSession")]
304 pub const DeviceFailedToOpenSession: Self = Self(-9927);
305 #[doc(alias = "ICReturnDeviceFailedToCloseSession")]
306 pub const DeviceFailedToCloseSession: Self = Self(-9928);
307 #[doc(alias = "ICReturnScannerFailedToSelectFunctionalUnit")]
308 pub const ScannerFailedToSelectFunctionalUnit: Self = Self(-9929);
309 #[doc(alias = "ICReturnScannerFailedToCompleteOverviewScan")]
310 pub const ScannerFailedToCompleteOverviewScan: Self = Self(-9930);
311 #[doc(alias = "ICReturnScannerFailedToCompleteScan")]
312 pub const ScannerFailedToCompleteScan: Self = Self(-9931);
313 #[doc(alias = "ICReturnReceivedUnsolicitedScannerStatusInfo")]
314 pub const ReceivedUnsolicitedScannerStatusInfo: Self = Self(-9932);
315 #[doc(alias = "ICReturnReceivedUnsolicitedScannerErrorInfo")]
316 pub const ReceivedUnsolicitedScannerErrorInfo: Self = Self(-9933);
317 #[doc(alias = "ICReturnDownloadFailed")]
318 pub const DownloadFailed: Self = Self(-9934);
319 #[doc(alias = "ICReturnUploadFailed")]
320 pub const UploadFailed: Self = Self(-9935);
321 #[doc(alias = "ICReturnFailedToCompletePassThroughCommand")]
322 pub const FailedToCompletePassThroughCommand: Self = Self(-9936);
323 #[doc(alias = "ICReturnDownloadCanceled")]
324 pub const DownloadCanceled: Self = Self(-9937);
325 #[doc(alias = "ICReturnFailedToEnabeTethering")]
326 pub const FailedToEnabeTethering: Self = Self(-9938);
327 #[doc(alias = "ICReturnFailedToDisabeTethering")]
328 pub const FailedToDisabeTethering: Self = Self(-9939);
329 #[doc(alias = "ICReturnFailedToCompleteSendMessageRequest")]
330 pub const FailedToCompleteSendMessageRequest: Self = Self(-9940);
331 #[doc(alias = "ICReturnDeleteFilesFailed")]
332 pub const DeleteFilesFailed: Self = Self(-9941);
333 #[doc(alias = "ICReturnDeleteFilesCanceled")]
334 pub const DeleteFilesCanceled: Self = Self(-9942);
335 #[doc(alias = "ICReturnDeviceIsPasscodeLocked")]
336 pub const DeviceIsPasscodeLocked: Self = Self(-9943);
337 #[doc(alias = "ICReturnDeviceFailedToTakePicture")]
338 pub const DeviceFailedToTakePicture: Self = Self(-9944);
339 #[doc(alias = "ICReturnDeviceSoftwareNotInstalled")]
340 pub const DeviceSoftwareNotInstalled: Self = Self(-9945);
341 #[doc(alias = "ICReturnDeviceSoftwareIsBeingInstalled")]
342 pub const DeviceSoftwareIsBeingInstalled: Self = Self(-9946);
343 #[doc(alias = "ICReturnDeviceSoftwareInstallationCompleted")]
344 pub const DeviceSoftwareInstallationCompleted: Self = Self(-9947);
345 #[doc(alias = "ICReturnDeviceSoftwareInstallationCanceled")]
346 pub const DeviceSoftwareInstallationCanceled: Self = Self(-9948);
347 #[doc(alias = "ICReturnDeviceSoftwareInstallationFailed")]
348 pub const DeviceSoftwareInstallationFailed: Self = Self(-9949);
349 #[doc(alias = "ICReturnDeviceSoftwareNotAvailable")]
350 pub const DeviceSoftwareNotAvailable: Self = Self(-9950);
351 #[doc(alias = "ICReturnDeviceCouldNotPair")]
352 pub const DeviceCouldNotPair: Self = Self(-9951);
353 #[doc(alias = "ICReturnDeviceCouldNotUnpair")]
354 pub const DeviceCouldNotUnpair: Self = Self(-9952);
355 #[doc(alias = "ICReturnDeviceNeedsCredentials")]
356 pub const DeviceNeedsCredentials: Self = Self(-9953);
357 #[doc(alias = "ICReturnDeviceIsBusyEnumerating")]
358 pub const DeviceIsBusyEnumerating: Self = Self(-9954);
359 #[doc(alias = "ICReturnDeviceCommandGeneralFailure")]
360 pub const DeviceCommandGeneralFailure: Self = Self(-9955);
361 #[doc(alias = "ICReturnDeviceFailedToCompleteTransfer")]
362 pub const DeviceFailedToCompleteTransfer: Self = Self(-9956);
363 #[doc(alias = "ICReturnDeviceFailedToSendData")]
364 pub const DeviceFailedToSendData: Self = Self(-9957);
365 #[doc(alias = "ICReturnSessionNotOpened")]
366 pub const SessionNotOpened: Self = Self(-9958);
367 #[doc(alias = "ICReturnExFATVolumeInvalid")]
368 pub const ExFATVolumeInvalid: Self = Self(21200);
369 #[doc(alias = "ICReturnMultiErrorDictionary")]
370 pub const MultiErrorDictionary: Self = Self(-30000);
371}
372
373unsafe impl Encode for ICReturnCode {
374 const ENCODING: Encoding = NSInteger::ENCODING;
375}
376
377unsafe impl RefEncode for ICReturnCode {
378 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
379}
380
381#[repr(transparent)]
384#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
385pub struct ICReturnObjectErrorCode(pub NSInteger);
386impl ICReturnObjectErrorCode {
387 #[doc(alias = "ICReturnCodeObjectDoesNotExist")]
388 pub const CodeObjectDoesNotExist: Self = Self(-21450);
389 #[doc(alias = "ICReturnCodeObjectDataOffsetInvalid")]
390 pub const CodeObjectDataOffsetInvalid: Self = Self(-21449);
391 #[doc(alias = "ICReturnCodeObjectCouldNotBeRead")]
392 pub const CodeObjectCouldNotBeRead: Self = Self(-21448);
393 #[doc(alias = "ICReturnCodeObjectDataEmpty")]
394 pub const CodeObjectDataEmpty: Self = Self(-21447);
395 #[doc(alias = "ICReturnCodeObjectDataRequestTooLarge")]
396 pub const CodeObjectDataRequestTooLarge: Self = Self(-21446);
397}
398
399unsafe impl Encode for ICReturnObjectErrorCode {
400 const ENCODING: Encoding = NSInteger::ENCODING;
401}
402
403unsafe impl RefEncode for ICReturnObjectErrorCode {
404 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
405}