objc2_application_services/generated/PrintCore/
PMPrintSettingsKeys.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5#[cfg(feature = "objc2")]
6use objc2::__framework_prelude::*;
7
8use crate::*;
9
10/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcopiesstr?language=objc)
11pub const kPMCopiesStr: &CStr =
12    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCopies\0") };
13/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcopycollatestr?language=objc)
14pub const kPMCopyCollateStr: &CStr = unsafe {
15    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCopyCollate\0")
16};
17/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmoutputorderstr?language=objc)
18pub const kPMOutputOrderStr: &CStr =
19    unsafe { CStr::from_bytes_with_nul_unchecked(b"OutputOrder\0") };
20/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmpagesetstr?language=objc)
21pub const kPMPageSetStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"page-set\0") };
22/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmmirrorstr?language=objc)
23pub const kPMMirrorStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"mirror\0") };
24/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmprintselectiononlystr?language=objc)
25pub const kPMPrintSelectionOnlyStr: &CStr = unsafe {
26    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPrintSelectionOnly\0")
27};
28/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmborderstr?language=objc)
29pub const kPMBorderStr: &CStr =
30    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMBorder\0") };
31/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmbordertypestr?language=objc)
32pub const kPMBorderTypeStr: &CStr =
33    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMBorderType\0") };
34/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmlayoutnupstr?language=objc)
35pub const kPMLayoutNUpStr: &CStr =
36    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutNUp\0") };
37/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmlayoutrowsstr?language=objc)
38pub const kPMLayoutRowsStr: &CStr =
39    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutRows\0") };
40/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmlayoutcolumnsstr?language=objc)
41pub const kPMLayoutColumnsStr: &CStr = unsafe {
42    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutColumns\0")
43};
44/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmlayoutdirectionstr?language=objc)
45pub const kPMLayoutDirectionStr: &CStr = unsafe {
46    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutDirection\0")
47};
48/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmlayouttileorientationstr?language=objc)
49pub const kPMLayoutTileOrientationStr: &CStr = unsafe {
50    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutTileOrientation\0")
51};
52/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmjobstatestr?language=objc)
53pub const kPMJobStateStr: &CStr =
54    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobState\0") };
55/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmjobholduntiltimestr?language=objc)
56pub const kPMJobHoldUntilTimeStr: &CStr = unsafe {
57    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobHoldUntilTime\0")
58};
59/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmjobprioritystr?language=objc)
60pub const kPMJobPriorityStr: &CStr = unsafe {
61    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobPriority\0")
62};
63/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmduplexingstr?language=objc)
64pub const kPMDuplexingStr: &CStr =
65    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMDuplexing\0") };
66/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcolorsyncprofileidstr?language=objc)
67pub const kPMColorSyncProfileIDStr: &CStr = unsafe {
68    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMColorSyncProfileID\0")
69};
70/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmprimarypaperfeedstr?language=objc)
71pub const kPMPrimaryPaperFeedStr: &CStr = unsafe {
72    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPrimaryPaperFeed\0")
73};
74/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmsecondarypaperfeedstr?language=objc)
75pub const kPMSecondaryPaperFeedStr: &CStr = unsafe {
76    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMSecondaryPaperFeed\0")
77};
78/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmpserrorhandlerstr?language=objc)
79pub const kPMPSErrorHandlerStr: &CStr = unsafe {
80    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPSErrorHandler\0")
81};
82/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmpstrayswitchstr?language=objc)
83pub const kPMPSTraySwitchStr: &CStr = unsafe {
84    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPSTraySwitch\0")
85};
86/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmtotalbeginpagesstr?language=objc)
87pub const kPMTotalBeginPagesStr: &CStr = unsafe {
88    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMTotalBeginPages\0")
89};
90/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmtotalsidesimagedstr?language=objc)
91pub const kPMTotalSidesImagedStr: &CStr = unsafe {
92    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMTotalSidesImaged\0")
93};
94/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfittopagestr?language=objc)
95pub const kPMFitToPageStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"fit-to-page\0") };
96/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmuseoptionalpinstr?language=objc)
97pub const kPMUseOptionalPINStr: &CStr = unsafe {
98    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMUseOptionalPIN\0")
99};
100/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmuseoptionalaccountidstr?language=objc)
101pub const kPMUseOptionalAccountIDStr: &CStr = unsafe {
102    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMUseOptionalAccountID\0")
103};
104/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxnumberstr?language=objc)
105pub const kPMFaxNumberStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"phone\0") };
106/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxtostr?language=objc)
107pub const kPMFaxToStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxTo\0") };
108/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxprefixstr?language=objc)
109pub const kPMFaxPrefixStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxPrefix\0") };
110/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxsubjectstr?language=objc)
111pub const kPMFaxSubjectStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSubject\0") };
112/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxcoversheetstr?language=objc)
113pub const kPMFaxCoverSheetStr: &CStr =
114    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxCoverSheet\0") };
115/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxcoversheetmessagestr?language=objc)
116pub const kPMFaxCoverSheetMessageStr: &CStr =
117    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxCoverSheetMessage\0") };
118/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxtonedialingstr?language=objc)
119pub const kPMFaxToneDialingStr: &CStr =
120    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxToneDialing\0") };
121/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxusesoundstr?language=objc)
122pub const kPMFaxUseSoundStr: &CStr =
123    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxUseSound\0") };
124/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxwaitfordialtonestr?language=objc)
125pub const kPMFaxWaitForDialToneStr: &CStr =
126    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxWaitForDialTone\0") };
127/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxtolabelstr?language=objc)
128pub const kPMFaxToLabelStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxToLabel\0") };
129/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxfromlabelstr?language=objc)
130pub const kPMFaxFromLabelStr: &CStr =
131    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxFromLabel\0") };
132/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxdatelabelstr?language=objc)
133pub const kPMFaxDateLabelStr: &CStr =
134    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxDateLabel\0") };
135/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxsubjectlabelstr?language=objc)
136pub const kPMFaxSubjectLabelStr: &CStr =
137    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSubjectLabel\0") };
138/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmfaxsheetslabelstr?language=objc)
139pub const kPMFaxSheetsLabelStr: &CStr =
140    unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSheetsLabel\0") };
141/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcoverpagestr?language=objc)
142pub const kPMCoverPageStr: &CStr =
143    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCoverPage\0") };
144/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcoverpagedefault?language=objc)
145pub const kPMCoverPageDefault: c_uint = kPMCoverPageNone;
146/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcoverpagesourcestr?language=objc)
147pub const kPMCoverPageSourceStr: &CStr = unsafe {
148    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCoverPageSource\0")
149};
150/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmdestinationprinteridstr?language=objc)
151pub const kPMDestinationPrinterIDStr: &CStr =
152    unsafe { CStr::from_bytes_with_nul_unchecked(b"DestinationPrinterID\0") };
153/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpminlineworkflowstr?language=objc)
154pub const kPMInlineWorkflowStr: &CStr =
155    unsafe { CStr::from_bytes_with_nul_unchecked(b"inlineWorkflow\0") };
156/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmpagetopapermappingtypestr?language=objc)
157pub const kPMPageToPaperMappingTypeStr: &CStr =
158    unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingType\0") };
159/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmpagetopapermedianamestr?language=objc)
160pub const kPMPageToPaperMediaNameStr: &CStr = unsafe {
161    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingMediaName\0")
162};
163/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmpagetopapermappingallowscalingupstr?language=objc)
164pub const kPMPageToPaperMappingAllowScalingUpStr: &CStr = unsafe {
165    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingAllowScalingUp\0")
166};
167/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcustomprofilepathstr?language=objc)
168pub const kPMCustomProfilePathStr: &CStr =
169    unsafe { CStr::from_bytes_with_nul_unchecked(b"PMCustomProfilePath\0") };
170/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmvendorcolormatchingstr?language=objc)
171pub const kPMVendorColorMatchingStr: &CStr =
172    unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_VendorColorMatching\0") };
173/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmapplicationcolormatchingstr?language=objc)
174pub const kPMApplicationColorMatchingStr: &CStr =
175    unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_ApplicationColorMatching\0") };
176/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcolormatchingmodestr?language=objc)
177pub const kPMColorMatchingModeStr: &CStr =
178    unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_ColorMatchingMode\0") };
179/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmdestinationtypestr?language=objc)
180pub const kPMDestinationTypeStr: &CStr = unsafe {
181    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMDestinationType\0")
182};
183/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmoutputfilenamestr?language=objc)
184pub const kPMOutputFilenameStr: &CStr = unsafe {
185    CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMOutputFilename\0")
186};
187/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcoverpagenone?language=objc)
188pub const kPMCoverPageNone: c_uint = 1;
189/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcoverpagebefore?language=objc)
190pub const kPMCoverPageBefore: c_uint = 2;
191/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/kpmcoverpageafter?language=objc)
192pub const kPMCoverPageAfter: c_uint = 3;
193
194/// [Apple's documentation](https://developer.apple.com/documentation/applicationservices/pmpagetopapermappingtype?language=objc)
195#[repr(transparent)]
196#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
197pub struct PMPageToPaperMappingType(pub c_uint);
198impl PMPageToPaperMappingType {
199    #[doc(alias = "kPMPageToPaperMappingNone")]
200    pub const None: Self = Self(1);
201    #[doc(alias = "kPMPageToPaperMappingScaleToFit")]
202    pub const ScaleToFit: Self = Self(2);
203}
204
205#[cfg(feature = "objc2")]
206unsafe impl Encode for PMPageToPaperMappingType {
207    const ENCODING: Encoding = c_uint::ENCODING;
208}
209
210#[cfg(feature = "objc2")]
211unsafe impl RefEncode for PMPageToPaperMappingType {
212    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
213}