use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CKLocationSortDescriptor;
unsafe impl ClassType for CKLocationSortDescriptor {
#[inherits(NSObject)]
type Super = NSSortDescriptor;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CKLocationSortDescriptor {}
unsafe impl NSCopying for CKLocationSortDescriptor {}
unsafe impl NSObjectProtocol for CKLocationSortDescriptor {}
unsafe impl NSSecureCoding for CKLocationSortDescriptor {}
extern_methods!(
unsafe impl CKLocationSortDescriptor {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
#[cfg(feature = "objc2-core-location")]
#[method_id(@__retain_semantics Init initWithKey:relativeLocation:)]
pub unsafe fn initWithKey_relativeLocation(
this: Allocated<Self>,
key: &NSString,
relative_location: &CLLocation,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithCoder:)]
pub unsafe fn initWithCoder(this: Allocated<Self>, a_decoder: &NSCoder) -> Retained<Self>;
#[cfg(feature = "objc2-core-location")]
#[method_id(@__retain_semantics Other relativeLocation)]
pub unsafe fn relativeLocation(&self) -> Retained<CLLocation>;
}
);
extern_methods!(
unsafe impl CKLocationSortDescriptor {
#[method_id(@__retain_semantics Other sortDescriptorWithKey:ascending:)]
pub unsafe fn sortDescriptorWithKey_ascending(
key: Option<&NSString>,
ascending: bool,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other sortDescriptorWithKey:ascending:selector:)]
pub unsafe fn sortDescriptorWithKey_ascending_selector(
key: Option<&NSString>,
ascending: bool,
selector: Option<Sel>,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithKey:ascending:)]
pub unsafe fn initWithKey_ascending(
this: Allocated<Self>,
key: Option<&NSString>,
ascending: bool,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithKey:ascending:selector:)]
pub unsafe fn initWithKey_ascending_selector(
this: Allocated<Self>,
key: Option<&NSString>,
ascending: bool,
selector: Option<Sel>,
) -> Retained<Self>;
#[cfg(feature = "block2")]
#[method_id(@__retain_semantics Other sortDescriptorWithKey:ascending:comparator:)]
pub unsafe fn sortDescriptorWithKey_ascending_comparator(
key: Option<&NSString>,
ascending: bool,
cmptr: NSComparator,
) -> Retained<Self>;
#[cfg(feature = "block2")]
#[method_id(@__retain_semantics Init initWithKey:ascending:comparator:)]
pub unsafe fn initWithKey_ascending_comparator(
this: Allocated<Self>,
key: Option<&NSString>,
ascending: bool,
cmptr: NSComparator,
) -> Retained<Self>;
}
);