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
16extern_conformance!(
17 unsafe impl NSCoding for MKMapCameraBoundary {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for MKMapCameraBoundary {}
22);
23
24unsafe impl CopyingHelper for MKMapCameraBoundary {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for MKMapCameraBoundary {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for MKMapCameraBoundary {}
34);
35
36impl MKMapCameraBoundary {
37 extern_methods!(
38 #[cfg(feature = "MKGeometry")]
39 #[unsafe(method(initWithMapRect:))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn initWithMapRect(
42 this: Allocated<Self>,
43 map_rect: MKMapRect,
44 ) -> Option<Retained<Self>>;
45
46 #[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
47 #[unsafe(method(initWithCoordinateRegion:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initWithCoordinateRegion(
50 this: Allocated<Self>,
51 region: MKCoordinateRegion,
52 ) -> Option<Retained<Self>>;
53
54 #[unsafe(method(initWithCoder:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithCoder(
57 this: Allocated<Self>,
58 coder: &NSCoder,
59 ) -> Option<Retained<Self>>;
60
61 #[cfg(feature = "MKGeometry")]
62 #[unsafe(method(mapRect))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn mapRect(&self) -> MKMapRect;
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}
72
73impl MKMapCameraBoundary {
75 extern_methods!(
76 #[unsafe(method(init))]
77 #[unsafe(method_family = init)]
78 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
79
80 #[unsafe(method(new))]
81 #[unsafe(method_family = new)]
82 pub unsafe fn new() -> Retained<Self>;
83 );
84}