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
24extern_conformance!(
25    unsafe impl NSCoding for MKMapCameraZoomRange {}
26);
27
28extern_conformance!(
29    unsafe impl NSCopying for MKMapCameraZoomRange {}
30);
31
32unsafe impl CopyingHelper for MKMapCameraZoomRange {
33    type Result = Self;
34}
35
36extern_conformance!(
37    unsafe impl NSObjectProtocol for MKMapCameraZoomRange {}
38);
39
40extern_conformance!(
41    unsafe impl NSSecureCoding for MKMapCameraZoomRange {}
42);
43
44impl MKMapCameraZoomRange {
45    extern_methods!(
46        #[cfg(feature = "objc2-core-location")]
47        #[unsafe(method(initWithMinCenterCoordinateDistance:maxCenterCoordinateDistance:))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn initWithMinCenterCoordinateDistance_maxCenterCoordinateDistance(
50            this: Allocated<Self>,
51            min_distance: CLLocationDistance,
52            max_distance: CLLocationDistance,
53        ) -> Option<Retained<Self>>;
54
55        #[cfg(feature = "objc2-core-location")]
56        #[unsafe(method(initWithMinCenterCoordinateDistance:))]
57        #[unsafe(method_family = init)]
58        pub unsafe fn initWithMinCenterCoordinateDistance(
59            this: Allocated<Self>,
60            min_distance: CLLocationDistance,
61        ) -> Option<Retained<Self>>;
62
63        #[cfg(feature = "objc2-core-location")]
64        #[unsafe(method(initWithMaxCenterCoordinateDistance:))]
65        #[unsafe(method_family = init)]
66        pub unsafe fn initWithMaxCenterCoordinateDistance(
67            this: Allocated<Self>,
68            max_distance: CLLocationDistance,
69        ) -> Option<Retained<Self>>;
70
71        #[cfg(feature = "objc2-core-location")]
72        #[unsafe(method(minCenterCoordinateDistance))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn minCenterCoordinateDistance(&self) -> CLLocationDistance;
75
76        #[cfg(feature = "objc2-core-location")]
77        #[unsafe(method(maxCenterCoordinateDistance))]
78        #[unsafe(method_family = none)]
79        pub unsafe fn maxCenterCoordinateDistance(&self) -> CLLocationDistance;
80    );
81}
82
83/// Methods declared on superclass `NSObject`.
84impl MKMapCameraZoomRange {
85    extern_methods!(
86        #[unsafe(method(init))]
87        #[unsafe(method_family = init)]
88        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
89
90        #[unsafe(method(new))]
91        #[unsafe(method_family = new)]
92        pub unsafe fn new() -> Retained<Self>;
93    );
94}