objc2_map_kit/generated/
MKOverlay.rs1use objc2::__framework_prelude::*;
4#[cfg(feature = "objc2-core-location")]
5use objc2_core_location::*;
6
7use crate::*;
8
9extern_protocol!(
10 #[cfg(feature = "MKAnnotation")]
12 pub unsafe trait MKOverlay: MKAnnotation {
13 #[cfg(feature = "objc2-core-location")]
14 #[unsafe(method(coordinate))]
15 #[unsafe(method_family = none)]
16 unsafe fn coordinate(&self) -> CLLocationCoordinate2D;
17
18 #[cfg(feature = "MKGeometry")]
19 #[unsafe(method(boundingMapRect))]
20 #[unsafe(method_family = none)]
21 unsafe fn boundingMapRect(&self) -> MKMapRect;
22
23 #[cfg(feature = "MKGeometry")]
24 #[optional]
25 #[unsafe(method(intersectsMapRect:))]
26 #[unsafe(method_family = none)]
27 unsafe fn intersectsMapRect(&self, map_rect: MKMapRect) -> bool;
28
29 #[optional]
30 #[unsafe(method(canReplaceMapContent))]
31 #[unsafe(method_family = none)]
32 unsafe fn canReplaceMapContent(&self) -> bool;
33 }
34);