icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::PhotoKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "PhotoKit_PHProject")]
    pub struct PHProject;

    #[cfg(feature = "PhotoKit_PHProject")]
    unsafe impl ClassType for PHProject {
        #[inherits(PHCollection, PHObject, NSObject)]
        type Super = PHAssetCollection;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "PhotoKit_PHProject")]
unsafe impl NSCopying for PHProject {}

#[cfg(feature = "PhotoKit_PHProject")]
unsafe impl NSObjectProtocol for PHProject {}

extern_methods!(
    #[cfg(feature = "PhotoKit_PHProject")]
    unsafe impl PHProject {
        #[cfg(feature = "Foundation_NSData")]
        #[method_id(@__retain_semantics Other projectExtensionData)]
        pub unsafe fn projectExtensionData(&self) -> Id<NSData>;

        #[method(hasProjectPreview)]
        pub unsafe fn hasProjectPreview(&self) -> bool;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "PhotoKit_PHProject")]
    unsafe impl PHProject {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);