objc2-map-kit 0.3.2

Bindings to the MapKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;

use crate::*;

extern_protocol!(
    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkoverlay?language=objc)
    #[cfg(feature = "MKAnnotation")]
    pub unsafe trait MKOverlay: MKAnnotation {
        #[cfg(feature = "objc2-core-location")]
        #[unsafe(method(coordinate))]
        #[unsafe(method_family = none)]
        unsafe fn coordinate(&self) -> CLLocationCoordinate2D;

        #[cfg(feature = "MKGeometry")]
        #[unsafe(method(boundingMapRect))]
        #[unsafe(method_family = none)]
        unsafe fn boundingMapRect(&self) -> MKMapRect;

        #[cfg(feature = "MKGeometry")]
        #[optional]
        #[unsafe(method(intersectsMapRect:))]
        #[unsafe(method_family = none)]
        unsafe fn intersectsMapRect(&self, map_rect: MKMapRect) -> bool;

        #[optional]
        #[unsafe(method(canReplaceMapContent))]
        #[unsafe(method_family = none)]
        unsafe fn canReplaceMapContent(&self) -> bool;
    }
);