objc2_map_kit/generated/
MKMapItemAnnotation.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
11 #[derive(Debug, PartialEq, Eq, Hash)]
12 pub struct MKMapItemAnnotation;
13);
14
15#[cfg(feature = "MKAnnotation")]
16unsafe impl MKAnnotation for MKMapItemAnnotation {}
17
18unsafe impl NSObjectProtocol for MKMapItemAnnotation {}
19
20impl MKMapItemAnnotation {
21 extern_methods!(
22 #[unsafe(method(new))]
23 #[unsafe(method_family = new)]
24 pub unsafe fn new() -> Retained<Self>;
25
26 #[unsafe(method(init))]
27 #[unsafe(method_family = init)]
28 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30 #[cfg(feature = "MKMapItem")]
31 #[unsafe(method(initWithMapItem:))]
32 #[unsafe(method_family = init)]
33 pub unsafe fn initWithMapItem(
34 this: Allocated<Self>,
35 map_item: &MKMapItem,
36 ) -> Option<Retained<Self>>;
37
38 #[cfg(feature = "MKMapItem")]
39 #[unsafe(method(mapItem))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn mapItem(&self) -> Retained<MKMapItem>;
42 );
43}