objc2_map_kit/generated/
MKAnnotation.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-location")]
6use objc2_core_location::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_protocol!(
12 pub unsafe trait MKAnnotation: NSObjectProtocol {
14 #[cfg(feature = "objc2-core-location")]
15 #[unsafe(method(coordinate))]
16 #[unsafe(method_family = none)]
17 unsafe fn coordinate(&self) -> CLLocationCoordinate2D;
18
19 #[optional]
20 #[unsafe(method(title))]
21 #[unsafe(method_family = none)]
22 unsafe fn title(&self) -> Option<Retained<NSString>>;
23
24 #[optional]
25 #[unsafe(method(subtitle))]
26 #[unsafe(method_family = none)]
27 unsafe fn subtitle(&self) -> Option<Retained<NSString>>;
28
29 #[cfg(feature = "objc2-core-location")]
30 #[optional]
31 #[unsafe(method(setCoordinate:))]
32 #[unsafe(method_family = none)]
33 unsafe fn setCoordinate(&self, new_coordinate: CLLocationCoordinate2D);
34 }
35);