objc2_map_kit/generated/
MKMapCameraZoomRange.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-location")]
6use objc2_core_location::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern "C" {
12    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkmapcamerazoomdefault?language=objc)
13    #[cfg(feature = "objc2-core-location")]
14    pub static MKMapCameraZoomDefault: CLLocationDistance;
15}
16
17extern_class!(
18    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkmapcamerazoomrange?language=objc)
19    #[unsafe(super(NSObject))]
20    #[derive(Debug, PartialEq, Eq, Hash)]
21    pub struct MKMapCameraZoomRange;
22);
23
24unsafe impl NSCoding for MKMapCameraZoomRange {}
25
26unsafe impl NSCopying for MKMapCameraZoomRange {}
27
28unsafe impl CopyingHelper for MKMapCameraZoomRange {
29    type Result = Self;
30}
31
32unsafe impl NSObjectProtocol for MKMapCameraZoomRange {}
33
34unsafe impl NSSecureCoding for MKMapCameraZoomRange {}
35
36impl MKMapCameraZoomRange {
37    extern_methods!(
38        #[cfg(feature = "objc2-core-location")]
39        #[unsafe(method(initWithMinCenterCoordinateDistance:maxCenterCoordinateDistance:))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn initWithMinCenterCoordinateDistance_maxCenterCoordinateDistance(
42            this: Allocated<Self>,
43            min_distance: CLLocationDistance,
44            max_distance: CLLocationDistance,
45        ) -> Option<Retained<Self>>;
46
47        #[cfg(feature = "objc2-core-location")]
48        #[unsafe(method(initWithMinCenterCoordinateDistance:))]
49        #[unsafe(method_family = init)]
50        pub unsafe fn initWithMinCenterCoordinateDistance(
51            this: Allocated<Self>,
52            min_distance: CLLocationDistance,
53        ) -> Option<Retained<Self>>;
54
55        #[cfg(feature = "objc2-core-location")]
56        #[unsafe(method(initWithMaxCenterCoordinateDistance:))]
57        #[unsafe(method_family = init)]
58        pub unsafe fn initWithMaxCenterCoordinateDistance(
59            this: Allocated<Self>,
60            max_distance: CLLocationDistance,
61        ) -> Option<Retained<Self>>;
62
63        #[cfg(feature = "objc2-core-location")]
64        #[unsafe(method(minCenterCoordinateDistance))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn minCenterCoordinateDistance(&self) -> CLLocationDistance;
67
68        #[cfg(feature = "objc2-core-location")]
69        #[unsafe(method(maxCenterCoordinateDistance))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn maxCenterCoordinateDistance(&self) -> CLLocationDistance;
72    );
73}
74
75/// Methods declared on superclass `NSObject`.
76impl MKMapCameraZoomRange {
77    extern_methods!(
78        #[unsafe(method(init))]
79        #[unsafe(method_family = init)]
80        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
81
82        #[unsafe(method(new))]
83        #[unsafe(method_family = new)]
84        pub unsafe fn new() -> Retained<Self>;
85    );
86}