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_PHObject")]
pub struct PHObject;
#[cfg(feature = "PhotoKit_PHObject")]
unsafe impl ClassType for PHObject {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "PhotoKit_PHObject")]
unsafe impl Send for PHObject {}
#[cfg(feature = "PhotoKit_PHObject")]
unsafe impl Sync for PHObject {}
#[cfg(feature = "PhotoKit_PHObject")]
unsafe impl NSCopying for PHObject {}
#[cfg(feature = "PhotoKit_PHObject")]
unsafe impl NSObjectProtocol for PHObject {}
extern_methods!(
#[cfg(feature = "PhotoKit_PHObject")]
unsafe impl PHObject {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other localIdentifier)]
pub unsafe fn localIdentifier(&self) -> Id<NSString>;
}
);
extern_methods!(
#[cfg(feature = "PhotoKit_PHObject")]
unsafe impl PHObject {
#[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>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
pub struct PHObjectPlaceholder;
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
unsafe impl ClassType for PHObjectPlaceholder {
#[inherits(NSObject)]
type Super = PHObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
unsafe impl Send for PHObjectPlaceholder {}
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
unsafe impl Sync for PHObjectPlaceholder {}
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
unsafe impl NSCopying for PHObjectPlaceholder {}
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
unsafe impl NSObjectProtocol for PHObjectPlaceholder {}
extern_methods!(
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
unsafe impl PHObjectPlaceholder {}
);
extern_methods!(
#[cfg(feature = "PhotoKit_PHObjectPlaceholder")]
unsafe impl PHObjectPlaceholder {
#[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>;
}
);