use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
#[cfg(feature = "objc2-core-location")]
pub static MKMapCameraZoomDefault: CLLocationDistance;
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MKMapCameraZoomRange;
unsafe impl ClassType for MKMapCameraZoomRange {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for MKMapCameraZoomRange {}
unsafe impl NSCopying for MKMapCameraZoomRange {}
unsafe impl NSObjectProtocol for MKMapCameraZoomRange {}
unsafe impl NSSecureCoding for MKMapCameraZoomRange {}
extern_methods!(
unsafe impl MKMapCameraZoomRange {
#[cfg(feature = "objc2-core-location")]
#[method_id(@__retain_semantics Init initWithMinCenterCoordinateDistance:maxCenterCoordinateDistance:)]
pub unsafe fn initWithMinCenterCoordinateDistance_maxCenterCoordinateDistance(
this: Allocated<Self>,
min_distance: CLLocationDistance,
max_distance: CLLocationDistance,
) -> Option<Id<Self>>;
#[cfg(feature = "objc2-core-location")]
#[method_id(@__retain_semantics Init initWithMinCenterCoordinateDistance:)]
pub unsafe fn initWithMinCenterCoordinateDistance(
this: Allocated<Self>,
min_distance: CLLocationDistance,
) -> Option<Id<Self>>;
#[cfg(feature = "objc2-core-location")]
#[method_id(@__retain_semantics Init initWithMaxCenterCoordinateDistance:)]
pub unsafe fn initWithMaxCenterCoordinateDistance(
this: Allocated<Self>,
max_distance: CLLocationDistance,
) -> Option<Id<Self>>;
#[cfg(feature = "objc2-core-location")]
#[method(minCenterCoordinateDistance)]
pub unsafe fn minCenterCoordinateDistance(&self) -> CLLocationDistance;
#[cfg(feature = "objc2-core-location")]
#[method(maxCenterCoordinateDistance)]
pub unsafe fn maxCenterCoordinateDistance(&self) -> CLLocationDistance;
}
);
extern_methods!(
unsafe impl MKMapCameraZoomRange {
#[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>;
}
);