objc2-cinematic 0.3.2

Bindings to the Cinematic framework
Documentation
//! 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/cinematic/cncinematicerrordomain?language=objc)
    pub static CNCinematicErrorDomain: &'static NSErrorDomain;
}

/// [Apple's documentation](https://developer.apple.com/documentation/cinematic/cncinematicerrorcode?language=objc)
// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNCinematicErrorCode(pub NSInteger);
impl CNCinematicErrorCode {
    #[doc(alias = "CNCinematicErrorCodeUnknown")]
    pub const Unknown: Self = Self(1);
    #[doc(alias = "CNCinematicErrorCodeUnreadable")]
    pub const Unreadable: Self = Self(2);
    #[doc(alias = "CNCinematicErrorCodeIncomplete")]
    pub const Incomplete: Self = Self(3);
    #[doc(alias = "CNCinematicErrorCodeMalformed")]
    pub const Malformed: Self = Self(4);
    #[doc(alias = "CNCinematicErrorCodeUnsupported")]
    pub const Unsupported: Self = Self(5);
    #[doc(alias = "CNCinematicErrorCodeIncompatible")]
    pub const Incompatible: Self = Self(6);
    #[doc(alias = "CNCinematicErrorCodeCancelled")]
    pub const Cancelled: Self = Self(7);
}

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

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