use core::ptr::NonNull;
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!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MKMapCameraZoomRange;
);
extern_conformance!(
unsafe impl NSCoding for MKMapCameraZoomRange {}
);
extern_conformance!(
unsafe impl NSCopying for MKMapCameraZoomRange {}
);
unsafe impl CopyingHelper for MKMapCameraZoomRange {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for MKMapCameraZoomRange {}
);
extern_conformance!(
unsafe impl NSSecureCoding for MKMapCameraZoomRange {}
);
impl MKMapCameraZoomRange {
extern_methods!(
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(initWithMinCenterCoordinateDistance:maxCenterCoordinateDistance:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithMinCenterCoordinateDistance_maxCenterCoordinateDistance(
this: Allocated<Self>,
min_distance: CLLocationDistance,
max_distance: CLLocationDistance,
) -> Option<Retained<Self>>;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(initWithMinCenterCoordinateDistance:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithMinCenterCoordinateDistance(
this: Allocated<Self>,
min_distance: CLLocationDistance,
) -> Option<Retained<Self>>;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(initWithMaxCenterCoordinateDistance:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithMaxCenterCoordinateDistance(
this: Allocated<Self>,
max_distance: CLLocationDistance,
) -> Option<Retained<Self>>;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(minCenterCoordinateDistance))]
#[unsafe(method_family = none)]
pub unsafe fn minCenterCoordinateDistance(&self) -> CLLocationDistance;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(maxCenterCoordinateDistance))]
#[unsafe(method_family = none)]
pub unsafe fn maxCenterCoordinateDistance(&self) -> CLLocationDistance;
);
}
impl MKMapCameraZoomRange {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}