objc2_map_kit/generated/
MKMapCameraBoundary.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct MKMapCameraBoundary;
14);
15
16unsafe impl NSCoding for MKMapCameraBoundary {}
17
18unsafe impl NSCopying for MKMapCameraBoundary {}
19
20unsafe impl CopyingHelper for MKMapCameraBoundary {
21 type Result = Self;
22}
23
24unsafe impl NSObjectProtocol for MKMapCameraBoundary {}
25
26unsafe impl NSSecureCoding for MKMapCameraBoundary {}
27
28impl MKMapCameraBoundary {
29 extern_methods!(
30 #[cfg(feature = "MKGeometry")]
31 #[unsafe(method(initWithMapRect:))]
32 #[unsafe(method_family = init)]
33 pub unsafe fn initWithMapRect(
34 this: Allocated<Self>,
35 map_rect: MKMapRect,
36 ) -> Option<Retained<Self>>;
37
38 #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
39 #[unsafe(method(initWithCoordinateRegion:))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn initWithCoordinateRegion(
42 this: Allocated<Self>,
43 region: MKCoordinateRegion,
44 ) -> Option<Retained<Self>>;
45
46 #[unsafe(method(initWithCoder:))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn initWithCoder(
49 this: Allocated<Self>,
50 coder: &NSCoder,
51 ) -> Option<Retained<Self>>;
52
53 #[cfg(feature = "MKGeometry")]
54 #[unsafe(method(mapRect))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn mapRect(&self) -> MKMapRect;
57
58 #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
59 #[unsafe(method(region))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn region(&self) -> MKCoordinateRegion;
62 );
63}
64
65impl MKMapCameraBoundary {
67 extern_methods!(
68 #[unsafe(method(init))]
69 #[unsafe(method_family = init)]
70 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
71
72 #[unsafe(method(new))]
73 #[unsafe(method_family = new)]
74 pub unsafe fn new() -> Retained<Self>;
75 );
76}