objc2_core_location/generated/
CLCircularRegion.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(CLRegion, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(feature = "CLRegion")]
14 #[deprecated]
15 pub struct CLCircularRegion;
16);
17
18#[cfg(feature = "CLRegion")]
19extern_conformance!(
20 unsafe impl NSCoding for CLCircularRegion {}
21);
22
23#[cfg(feature = "CLRegion")]
24extern_conformance!(
25 unsafe impl NSCopying for CLCircularRegion {}
26);
27
28#[cfg(feature = "CLRegion")]
29unsafe impl CopyingHelper for CLCircularRegion {
30 type Result = Self;
31}
32
33#[cfg(feature = "CLRegion")]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for CLCircularRegion {}
36);
37
38#[cfg(feature = "CLRegion")]
39extern_conformance!(
40 unsafe impl NSSecureCoding for CLCircularRegion {}
41);
42
43#[cfg(feature = "CLRegion")]
44impl CLCircularRegion {
45 extern_methods!(
46 #[cfg(feature = "CLLocation")]
47 #[deprecated]
48 #[unsafe(method(initWithCenter:radius:identifier:))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn initWithCenter_radius_identifier(
51 this: Allocated<Self>,
52 center: CLLocationCoordinate2D,
53 radius: CLLocationDistance,
54 identifier: &NSString,
55 ) -> Retained<Self>;
56
57 #[cfg(feature = "CLLocation")]
58 #[deprecated]
59 #[unsafe(method(center))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn center(&self) -> CLLocationCoordinate2D;
62
63 #[cfg(feature = "CLLocation")]
64 #[deprecated]
65 #[unsafe(method(radius))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn radius(&self) -> CLLocationDistance;
68
69 #[cfg(feature = "CLLocation")]
70 #[deprecated]
71 #[unsafe(method(containsCoordinate:))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn containsCoordinate(&self, coordinate: CLLocationCoordinate2D) -> bool;
74 );
75}
76
77#[cfg(feature = "CLRegion")]
79impl CLCircularRegion {
80 extern_methods!(
81 #[cfg(feature = "CLLocation")]
82 #[deprecated = "Please see CLCircularRegion"]
83 #[unsafe(method(initCircularRegionWithCenter:radius:identifier:))]
84 #[unsafe(method_family = init)]
85 pub unsafe fn initCircularRegionWithCenter_radius_identifier(
86 this: Allocated<Self>,
87 center: CLLocationCoordinate2D,
88 radius: CLLocationDistance,
89 identifier: &NSString,
90 ) -> Retained<Self>;
91 );
92}
93
94#[cfg(feature = "CLRegion")]
96impl CLCircularRegion {
97 extern_methods!(
98 #[unsafe(method(init))]
99 #[unsafe(method_family = init)]
100 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
101
102 #[unsafe(method(new))]
103 #[unsafe(method_family = new)]
104 pub unsafe fn new() -> Retained<Self>;
105 );
106}