use objc2::__framework_prelude::*;
use crate::*;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHImageContentMode(pub NSInteger);
impl PHImageContentMode {
#[doc(alias = "PHImageContentModeAspectFit")]
pub const AspectFit: Self = Self(0);
#[doc(alias = "PHImageContentModeAspectFill")]
pub const AspectFill: Self = Self(1);
#[doc(alias = "PHImageContentModeDefault")]
pub const Default: Self = Self(PHImageContentMode::AspectFit.0);
}
unsafe impl Encode for PHImageContentMode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHImageContentMode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHCollectionListType(pub NSInteger);
impl PHCollectionListType {
#[doc(alias = "PHCollectionListTypeMomentList")]
#[deprecated = "Will be removed in a future release"]
pub const MomentList: Self = Self(1);
#[doc(alias = "PHCollectionListTypeFolder")]
pub const Folder: Self = Self(2);
#[doc(alias = "PHCollectionListTypeSmartFolder")]
pub const SmartFolder: Self = Self(3);
}
unsafe impl Encode for PHCollectionListType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHCollectionListType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHCollectionListSubtype(pub NSInteger);
impl PHCollectionListSubtype {
#[doc(alias = "PHCollectionListSubtypeMomentListCluster")]
#[deprecated = "Will be removed in a future release"]
pub const MomentListCluster: Self = Self(1);
#[doc(alias = "PHCollectionListSubtypeMomentListYear")]
#[deprecated = "Will be removed in a future release"]
pub const MomentListYear: Self = Self(2);
#[doc(alias = "PHCollectionListSubtypeRegularFolder")]
pub const RegularFolder: Self = Self(100);
#[doc(alias = "PHCollectionListSubtypeSmartFolderEvents")]
pub const SmartFolderEvents: Self = Self(200);
#[doc(alias = "PHCollectionListSubtypeSmartFolderFaces")]
pub const SmartFolderFaces: Self = Self(201);
#[doc(alias = "PHCollectionListSubtypeAny")]
pub const Any: Self = Self(NSIntegerMax as _);
}
unsafe impl Encode for PHCollectionListSubtype {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHCollectionListSubtype {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHCollectionEditOperation(pub NSInteger);
impl PHCollectionEditOperation {
#[doc(alias = "PHCollectionEditOperationDeleteContent")]
pub const DeleteContent: Self = Self(1);
#[doc(alias = "PHCollectionEditOperationRemoveContent")]
pub const RemoveContent: Self = Self(2);
#[doc(alias = "PHCollectionEditOperationAddContent")]
pub const AddContent: Self = Self(3);
#[doc(alias = "PHCollectionEditOperationCreateContent")]
pub const CreateContent: Self = Self(4);
#[doc(alias = "PHCollectionEditOperationRearrangeContent")]
pub const RearrangeContent: Self = Self(5);
#[doc(alias = "PHCollectionEditOperationDelete")]
pub const Delete: Self = Self(6);
#[doc(alias = "PHCollectionEditOperationRename")]
pub const Rename: Self = Self(7);
}
unsafe impl Encode for PHCollectionEditOperation {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHCollectionEditOperation {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetCollectionType(pub NSInteger);
impl PHAssetCollectionType {
#[doc(alias = "PHAssetCollectionTypeAlbum")]
pub const Album: Self = Self(1);
#[doc(alias = "PHAssetCollectionTypeSmartAlbum")]
pub const SmartAlbum: Self = Self(2);
#[doc(alias = "PHAssetCollectionTypeMoment")]
#[deprecated = "Will be removed in a future release"]
pub const Moment: Self = Self(3);
}
unsafe impl Encode for PHAssetCollectionType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetCollectionType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetCollectionSubtype(pub NSInteger);
impl PHAssetCollectionSubtype {
#[doc(alias = "PHAssetCollectionSubtypeAlbumRegular")]
pub const AlbumRegular: Self = Self(2);
#[doc(alias = "PHAssetCollectionSubtypeAlbumSyncedEvent")]
pub const AlbumSyncedEvent: Self = Self(3);
#[doc(alias = "PHAssetCollectionSubtypeAlbumSyncedFaces")]
pub const AlbumSyncedFaces: Self = Self(4);
#[doc(alias = "PHAssetCollectionSubtypeAlbumSyncedAlbum")]
pub const AlbumSyncedAlbum: Self = Self(5);
#[doc(alias = "PHAssetCollectionSubtypeAlbumImported")]
pub const AlbumImported: Self = Self(6);
#[doc(alias = "PHAssetCollectionSubtypeAlbumMyPhotoStream")]
pub const AlbumMyPhotoStream: Self = Self(100);
#[doc(alias = "PHAssetCollectionSubtypeAlbumCloudShared")]
pub const AlbumCloudShared: Self = Self(101);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumGeneric")]
pub const SmartAlbumGeneric: Self = Self(200);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumPanoramas")]
pub const SmartAlbumPanoramas: Self = Self(201);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumVideos")]
pub const SmartAlbumVideos: Self = Self(202);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumFavorites")]
pub const SmartAlbumFavorites: Self = Self(203);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumTimelapses")]
pub const SmartAlbumTimelapses: Self = Self(204);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumAllHidden")]
pub const SmartAlbumAllHidden: Self = Self(205);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumRecentlyAdded")]
pub const SmartAlbumRecentlyAdded: Self = Self(206);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumBursts")]
pub const SmartAlbumBursts: Self = Self(207);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumSlomoVideos")]
pub const SmartAlbumSlomoVideos: Self = Self(208);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumUserLibrary")]
pub const SmartAlbumUserLibrary: Self = Self(209);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumSelfPortraits")]
pub const SmartAlbumSelfPortraits: Self = Self(210);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumScreenshots")]
pub const SmartAlbumScreenshots: Self = Self(211);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumDepthEffect")]
pub const SmartAlbumDepthEffect: Self = Self(212);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumLivePhotos")]
pub const SmartAlbumLivePhotos: Self = Self(213);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumAnimated")]
pub const SmartAlbumAnimated: Self = Self(214);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumLongExposures")]
pub const SmartAlbumLongExposures: Self = Self(215);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumUnableToUpload")]
pub const SmartAlbumUnableToUpload: Self = Self(216);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumRAW")]
pub const SmartAlbumRAW: Self = Self(217);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumCinematic")]
pub const SmartAlbumCinematic: Self = Self(218);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumSpatial")]
pub const SmartAlbumSpatial: Self = Self(219);
#[doc(alias = "PHAssetCollectionSubtypeSmartAlbumScreenRecordings")]
pub const SmartAlbumScreenRecordings: Self = Self(220);
#[doc(alias = "PHAssetCollectionSubtypeAny")]
pub const Any: Self = Self(NSIntegerMax as _);
}
unsafe impl Encode for PHAssetCollectionSubtype {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetCollectionSubtype {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetEditOperation(pub NSInteger);
impl PHAssetEditOperation {
#[doc(alias = "PHAssetEditOperationDelete")]
pub const Delete: Self = Self(1);
#[doc(alias = "PHAssetEditOperationContent")]
pub const Content: Self = Self(2);
#[doc(alias = "PHAssetEditOperationProperties")]
pub const Properties: Self = Self(3);
}
unsafe impl Encode for PHAssetEditOperation {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetEditOperation {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetPlaybackStyle(pub NSInteger);
impl PHAssetPlaybackStyle {
#[doc(alias = "PHAssetPlaybackStyleUnsupported")]
pub const Unsupported: Self = Self(0);
#[doc(alias = "PHAssetPlaybackStyleImage")]
pub const Image: Self = Self(1);
#[doc(alias = "PHAssetPlaybackStyleImageAnimated")]
pub const ImageAnimated: Self = Self(2);
#[doc(alias = "PHAssetPlaybackStyleLivePhoto")]
pub const LivePhoto: Self = Self(3);
#[doc(alias = "PHAssetPlaybackStyleVideo")]
pub const Video: Self = Self(4);
#[doc(alias = "PHAssetPlaybackStyleVideoLooping")]
pub const VideoLooping: Self = Self(5);
}
unsafe impl Encode for PHAssetPlaybackStyle {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetPlaybackStyle {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetMediaType(pub NSInteger);
impl PHAssetMediaType {
#[doc(alias = "PHAssetMediaTypeUnknown")]
pub const Unknown: Self = Self(0);
#[doc(alias = "PHAssetMediaTypeImage")]
pub const Image: Self = Self(1);
#[doc(alias = "PHAssetMediaTypeVideo")]
pub const Video: Self = Self(2);
#[doc(alias = "PHAssetMediaTypeAudio")]
pub const Audio: Self = Self(3);
}
unsafe impl Encode for PHAssetMediaType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetMediaType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetMediaSubtype(pub NSUInteger);
bitflags::bitflags! {
impl PHAssetMediaSubtype: NSUInteger {
#[doc(alias = "PHAssetMediaSubtypeNone")]
const None = 0;
#[doc(alias = "PHAssetMediaSubtypePhotoPanorama")]
const PhotoPanorama = 1<<0;
#[doc(alias = "PHAssetMediaSubtypePhotoHDR")]
const PhotoHDR = 1<<1;
#[doc(alias = "PHAssetMediaSubtypePhotoScreenshot")]
const PhotoScreenshot = 1<<2;
#[doc(alias = "PHAssetMediaSubtypePhotoLive")]
const PhotoLive = 1<<3;
#[doc(alias = "PHAssetMediaSubtypePhotoDepthEffect")]
const PhotoDepthEffect = 1<<4;
#[doc(alias = "PHAssetMediaSubtypeSpatialMedia")]
const SpatialMedia = 1<<10;
#[doc(alias = "PHAssetMediaSubtypeVideoStreamed")]
const VideoStreamed = 1<<16;
#[doc(alias = "PHAssetMediaSubtypeVideoHighFrameRate")]
const VideoHighFrameRate = 1<<17;
#[doc(alias = "PHAssetMediaSubtypeVideoTimelapse")]
const VideoTimelapse = 1<<18;
#[doc(alias = "PHAssetMediaSubtypeVideoScreenRecording")]
const VideoScreenRecording = 1<<19;
#[doc(alias = "PHAssetMediaSubtypeVideoCinematic")]
const VideoCinematic = 1<<21;
}
}
unsafe impl Encode for PHAssetMediaSubtype {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetMediaSubtype {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetBurstSelectionType(pub NSUInteger);
bitflags::bitflags! {
impl PHAssetBurstSelectionType: NSUInteger {
#[doc(alias = "PHAssetBurstSelectionTypeNone")]
const None = 0;
#[doc(alias = "PHAssetBurstSelectionTypeAutoPick")]
const AutoPick = 1<<0;
#[doc(alias = "PHAssetBurstSelectionTypeUserPick")]
const UserPick = 1<<1;
}
}
unsafe impl Encode for PHAssetBurstSelectionType {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetBurstSelectionType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetSourceType(pub NSUInteger);
bitflags::bitflags! {
impl PHAssetSourceType: NSUInteger {
#[doc(alias = "PHAssetSourceTypeNone")]
const TypeNone = 0;
#[doc(alias = "PHAssetSourceTypeUserLibrary")]
const TypeUserLibrary = 1<<0;
#[doc(alias = "PHAssetSourceTypeCloudShared")]
const TypeCloudShared = 1<<1;
#[doc(alias = "PHAssetSourceTypeiTunesSynced")]
const TypeiTunesSynced = 1<<2;
}
}
unsafe impl Encode for PHAssetSourceType {
const ENCODING: Encoding = NSUInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetSourceType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHAssetResourceType(pub NSInteger);
impl PHAssetResourceType {
#[doc(alias = "PHAssetResourceTypePhoto")]
pub const Photo: Self = Self(1);
#[doc(alias = "PHAssetResourceTypeVideo")]
pub const Video: Self = Self(2);
#[doc(alias = "PHAssetResourceTypeAudio")]
pub const Audio: Self = Self(3);
#[doc(alias = "PHAssetResourceTypeAlternatePhoto")]
pub const AlternatePhoto: Self = Self(4);
#[doc(alias = "PHAssetResourceTypeFullSizePhoto")]
pub const FullSizePhoto: Self = Self(5);
#[doc(alias = "PHAssetResourceTypeFullSizeVideo")]
pub const FullSizeVideo: Self = Self(6);
#[doc(alias = "PHAssetResourceTypeAdjustmentData")]
pub const AdjustmentData: Self = Self(7);
#[doc(alias = "PHAssetResourceTypeAdjustmentBasePhoto")]
pub const AdjustmentBasePhoto: Self = Self(8);
#[doc(alias = "PHAssetResourceTypePairedVideo")]
pub const PairedVideo: Self = Self(9);
#[doc(alias = "PHAssetResourceTypeFullSizePairedVideo")]
pub const FullSizePairedVideo: Self = Self(10);
#[doc(alias = "PHAssetResourceTypeAdjustmentBasePairedVideo")]
pub const AdjustmentBasePairedVideo: Self = Self(11);
#[doc(alias = "PHAssetResourceTypeAdjustmentBaseVideo")]
pub const AdjustmentBaseVideo: Self = Self(12);
#[doc(alias = "PHAssetResourceTypePhotoProxy")]
pub const PhotoProxy: Self = Self(19);
}
unsafe impl Encode for PHAssetResourceType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHAssetResourceType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct PHObjectType(pub NSInteger);
impl PHObjectType {
#[doc(alias = "PHObjectTypeAsset")]
pub const Asset: Self = Self(1);
#[doc(alias = "PHObjectTypeAssetCollection")]
pub const AssetCollection: Self = Self(2);
#[doc(alias = "PHObjectTypeCollectionList")]
pub const CollectionList: Self = Self(3);
}
unsafe impl Encode for PHObjectType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for PHObjectType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}