use core::ffi::*;
use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
use crate::*;
pub const kPMCopiesStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCopies\0") };
pub const kPMCopyCollateStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCopyCollate\0")
};
pub const kPMOutputOrderStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"OutputOrder\0") };
pub const kPMPageSetStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"page-set\0") };
pub const kPMMirrorStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"mirror\0") };
pub const kPMPrintSelectionOnlyStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPrintSelectionOnly\0")
};
pub const kPMBorderStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMBorder\0") };
pub const kPMBorderTypeStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMBorderType\0") };
pub const kPMLayoutNUpStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutNUp\0") };
pub const kPMLayoutRowsStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutRows\0") };
pub const kPMLayoutColumnsStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutColumns\0")
};
pub const kPMLayoutDirectionStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutDirection\0")
};
pub const kPMLayoutTileOrientationStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutTileOrientation\0")
};
pub const kPMJobStateStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobState\0") };
pub const kPMJobHoldUntilTimeStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobHoldUntilTime\0")
};
pub const kPMJobPriorityStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobPriority\0")
};
pub const kPMDuplexingStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMDuplexing\0") };
pub const kPMColorSyncProfileIDStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMColorSyncProfileID\0")
};
pub const kPMPrimaryPaperFeedStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPrimaryPaperFeed\0")
};
pub const kPMSecondaryPaperFeedStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMSecondaryPaperFeed\0")
};
pub const kPMPSErrorHandlerStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPSErrorHandler\0")
};
pub const kPMPSTraySwitchStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPSTraySwitch\0")
};
pub const kPMTotalBeginPagesStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMTotalBeginPages\0")
};
pub const kPMTotalSidesImagedStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMTotalSidesImaged\0")
};
pub const kPMFitToPageStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"fit-to-page\0") };
pub const kPMUseOptionalPINStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMUseOptionalPIN\0")
};
pub const kPMUseOptionalAccountIDStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMUseOptionalAccountID\0")
};
pub const kPMFaxNumberStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"phone\0") };
pub const kPMFaxToStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxTo\0") };
pub const kPMFaxPrefixStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxPrefix\0") };
pub const kPMFaxSubjectStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSubject\0") };
pub const kPMFaxCoverSheetStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxCoverSheet\0") };
pub const kPMFaxCoverSheetMessageStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxCoverSheetMessage\0") };
pub const kPMFaxToneDialingStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxToneDialing\0") };
pub const kPMFaxUseSoundStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxUseSound\0") };
pub const kPMFaxWaitForDialToneStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxWaitForDialTone\0") };
pub const kPMFaxToLabelStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxToLabel\0") };
pub const kPMFaxFromLabelStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxFromLabel\0") };
pub const kPMFaxDateLabelStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxDateLabel\0") };
pub const kPMFaxSubjectLabelStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSubjectLabel\0") };
pub const kPMFaxSheetsLabelStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSheetsLabel\0") };
pub const kPMCoverPageStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCoverPage\0") };
pub const kPMCoverPageDefault: c_uint = kPMCoverPageNone;
pub const kPMCoverPageSourceStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCoverPageSource\0")
};
pub const kPMDestinationPrinterIDStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"DestinationPrinterID\0") };
pub const kPMInlineWorkflowStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"inlineWorkflow\0") };
pub const kPMPageToPaperMappingTypeStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingType\0") };
pub const kPMPageToPaperMediaNameStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingMediaName\0")
};
pub const kPMPageToPaperMappingAllowScalingUpStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingAllowScalingUp\0")
};
pub const kPMCustomProfilePathStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"PMCustomProfilePath\0") };
pub const kPMVendorColorMatchingStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_VendorColorMatching\0") };
pub const kPMApplicationColorMatchingStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_ApplicationColorMatching\0") };
pub const kPMColorMatchingModeStr: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_ColorMatchingMode\0") };
pub const kPMDestinationTypeStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMDestinationType\0")
};
pub const kPMOutputFilenameStr: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMOutputFilename\0")
};
pub const kPMCoverPageNone: c_uint = 1;
pub const kPMCoverPageBefore: c_uint = 2;
pub const kPMCoverPageAfter: c_uint = 3;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PMPageToPaperMappingType(pub c_uint);
impl PMPageToPaperMappingType {
#[doc(alias = "kPMPageToPaperMappingNone")]
pub const None: Self = Self(1);
#[doc(alias = "kPMPageToPaperMappingScaleToFit")]
pub const ScaleToFit: Self = Self(2);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for PMPageToPaperMappingType {
const ENCODING: Encoding = c_uint::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for PMPageToPaperMappingType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}