//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiprinterrordomain?language=objc)
    pub static UIPrintErrorDomain: &'static NSErrorDomain;
}

/// [Apple's documentation](https://developer.apple.com/documentation/uikit/uiprinterrorcode?language=objc)
// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UIPrintErrorCode(pub NSInteger);
impl UIPrintErrorCode {
    #[doc(alias = "UIPrintingNotAvailableError")]
    pub const PrintingNotAvailableError: Self = Self(1);
    #[doc(alias = "UIPrintNoContentError")]
    pub const PrintNoContentError: Self = Self(2);
    #[doc(alias = "UIPrintUnknownImageFormatError")]
    pub const PrintUnknownImageFormatError: Self = Self(3);
    #[doc(alias = "UIPrintJobFailedError")]
    pub const PrintJobFailedError: Self = Self(4);
}

unsafe impl Encode for UIPrintErrorCode {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UIPrintErrorCode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
