objc2_map_kit/generated/
MKMapItemAnnotation.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkmapitemannotation?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct MKMapItemAnnotation;
13);
14
15#[cfg(feature = "MKAnnotation")]
16extern_conformance!(
17    unsafe impl MKAnnotation for MKMapItemAnnotation {}
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for MKMapItemAnnotation {}
22);
23
24impl MKMapItemAnnotation {
25    extern_methods!(
26        #[unsafe(method(new))]
27        #[unsafe(method_family = new)]
28        pub unsafe fn new() -> Retained<Self>;
29
30        #[unsafe(method(init))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
33
34        #[cfg(feature = "MKMapItem")]
35        #[unsafe(method(initWithMapItem:))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn initWithMapItem(
38            this: Allocated<Self>,
39            map_item: &MKMapItem,
40        ) -> Option<Retained<Self>>;
41
42        #[cfg(feature = "MKMapItem")]
43        #[unsafe(method(mapItem))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn mapItem(&self) -> Retained<MKMapItem>;
46    );
47}