objc2_map_kit/generated/
MKLocalPointsOfInterestRequest.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-location")]
7use objc2_core_location::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern "C" {
13    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkpointsofinterestrequestmaxradius?language=objc)
14    #[cfg(feature = "objc2-core-location")]
15    pub static MKPointsOfInterestRequestMaxRadius: CLLocationDistance;
16}
17
18extern_class!(
19    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mklocalpointsofinterestrequest?language=objc)
20    #[unsafe(super(NSObject))]
21    #[derive(Debug, PartialEq, Eq, Hash)]
22    pub struct MKLocalPointsOfInterestRequest;
23);
24
25extern_conformance!(
26    unsafe impl NSCopying for MKLocalPointsOfInterestRequest {}
27);
28
29unsafe impl CopyingHelper for MKLocalPointsOfInterestRequest {
30    type Result = Self;
31}
32
33extern_conformance!(
34    unsafe impl NSObjectProtocol for MKLocalPointsOfInterestRequest {}
35);
36
37impl MKLocalPointsOfInterestRequest {
38    extern_methods!(
39        #[unsafe(method(init))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43        #[cfg(feature = "objc2-core-location")]
44        #[unsafe(method(initWithCenterCoordinate:radius:))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn initWithCenterCoordinate_radius(
47            this: Allocated<Self>,
48            coordinate: CLLocationCoordinate2D,
49            radius: CLLocationDistance,
50        ) -> Retained<Self>;
51
52        #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
53        #[unsafe(method(initWithCoordinateRegion:))]
54        #[unsafe(method_family = init)]
55        pub unsafe fn initWithCoordinateRegion(
56            this: Allocated<Self>,
57            region: MKCoordinateRegion,
58        ) -> Retained<Self>;
59
60        #[cfg(feature = "objc2-core-location")]
61        #[unsafe(method(coordinate))]
62        #[unsafe(method_family = none)]
63        pub unsafe fn coordinate(&self) -> CLLocationCoordinate2D;
64
65        #[cfg(feature = "objc2-core-location")]
66        #[unsafe(method(radius))]
67        #[unsafe(method_family = none)]
68        pub unsafe fn radius(&self) -> CLLocationDistance;
69
70        #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
71        #[unsafe(method(region))]
72        #[unsafe(method_family = none)]
73        pub unsafe fn region(&self) -> MKCoordinateRegion;
74
75        #[cfg(feature = "MKPointOfInterestFilter")]
76        #[unsafe(method(pointOfInterestFilter))]
77        #[unsafe(method_family = none)]
78        pub unsafe fn pointOfInterestFilter(&self) -> Option<Retained<MKPointOfInterestFilter>>;
79
80        #[cfg(feature = "MKPointOfInterestFilter")]
81        /// Setter for [`pointOfInterestFilter`][Self::pointOfInterestFilter].
82        #[unsafe(method(setPointOfInterestFilter:))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn setPointOfInterestFilter(
85            &self,
86            point_of_interest_filter: Option<&MKPointOfInterestFilter>,
87        );
88    );
89}
90
91/// Methods declared on superclass `NSObject`.
92impl MKLocalPointsOfInterestRequest {
93    extern_methods!(
94        #[unsafe(method(new))]
95        #[unsafe(method_family = new)]
96        pub unsafe fn new() -> Retained<Self>;
97    );
98}