objc2_map_kit/generated/
MKLocalPointsOfInterestRequest.rs1use 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 #[cfg(feature = "objc2-core-location")]
15 pub static MKPointsOfInterestRequestMaxRadius: CLLocationDistance;
16}
17
18extern_class!(
19 #[unsafe(super(NSObject))]
21 #[derive(Debug, PartialEq, Eq, Hash)]
22 pub struct MKLocalPointsOfInterestRequest;
23);
24
25unsafe impl NSCopying for MKLocalPointsOfInterestRequest {}
26
27unsafe impl CopyingHelper for MKLocalPointsOfInterestRequest {
28 type Result = Self;
29}
30
31unsafe impl NSObjectProtocol for MKLocalPointsOfInterestRequest {}
32
33impl MKLocalPointsOfInterestRequest {
34 extern_methods!(
35 #[unsafe(method(init))]
36 #[unsafe(method_family = init)]
37 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
38
39 #[cfg(feature = "objc2-core-location")]
40 #[unsafe(method(initWithCenterCoordinate:radius:))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn initWithCenterCoordinate_radius(
43 this: Allocated<Self>,
44 coordinate: CLLocationCoordinate2D,
45 radius: CLLocationDistance,
46 ) -> Retained<Self>;
47
48 #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
49 #[unsafe(method(initWithCoordinateRegion:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithCoordinateRegion(
52 this: Allocated<Self>,
53 region: MKCoordinateRegion,
54 ) -> Retained<Self>;
55
56 #[cfg(feature = "objc2-core-location")]
57 #[unsafe(method(coordinate))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn coordinate(&self) -> CLLocationCoordinate2D;
60
61 #[cfg(feature = "objc2-core-location")]
62 #[unsafe(method(radius))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn radius(&self) -> CLLocationDistance;
65
66 #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
67 #[unsafe(method(region))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn region(&self) -> MKCoordinateRegion;
70
71 #[cfg(feature = "MKPointOfInterestFilter")]
72 #[unsafe(method(pointOfInterestFilter))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn pointOfInterestFilter(&self) -> Option<Retained<MKPointOfInterestFilter>>;
75
76 #[cfg(feature = "MKPointOfInterestFilter")]
77 #[unsafe(method(setPointOfInterestFilter:))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn setPointOfInterestFilter(
81 &self,
82 point_of_interest_filter: Option<&MKPointOfInterestFilter>,
83 );
84 );
85}
86
87impl MKLocalPointsOfInterestRequest {
89 extern_methods!(
90 #[unsafe(method(new))]
91 #[unsafe(method_family = new)]
92 pub unsafe fn new() -> Retained<Self>;
93 );
94}