icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::MapKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MapKit_MKMapCameraBoundary")]
    pub struct MKMapCameraBoundary;

    #[cfg(feature = "MapKit_MKMapCameraBoundary")]
    unsafe impl ClassType for MKMapCameraBoundary {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "MapKit_MKMapCameraBoundary")]
unsafe impl NSCoding for MKMapCameraBoundary {}

#[cfg(feature = "MapKit_MKMapCameraBoundary")]
unsafe impl NSCopying for MKMapCameraBoundary {}

#[cfg(feature = "MapKit_MKMapCameraBoundary")]
unsafe impl NSObjectProtocol for MKMapCameraBoundary {}

#[cfg(feature = "MapKit_MKMapCameraBoundary")]
unsafe impl NSSecureCoding for MKMapCameraBoundary {}

extern_methods!(
    #[cfg(feature = "MapKit_MKMapCameraBoundary")]
    unsafe impl MKMapCameraBoundary {
        #[method_id(@__retain_semantics Init initWithMapRect:)]
        pub unsafe fn initWithMapRect(
            this: Allocated<Self>,
            map_rect: MKMapRect,
        ) -> Option<Id<Self>>;

        #[method_id(@__retain_semantics Init initWithCoordinateRegion:)]
        pub unsafe fn initWithCoordinateRegion(
            this: Allocated<Self>,
            region: MKCoordinateRegion,
        ) -> Option<Id<Self>>;

        #[cfg(feature = "Foundation_NSCoder")]
        #[method_id(@__retain_semantics Init initWithCoder:)]
        pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;

        #[method(mapRect)]
        pub unsafe fn mapRect(&self) -> MKMapRect;

        #[method(region)]
        pub unsafe fn region(&self) -> MKCoordinateRegion;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "MapKit_MKMapCameraBoundary")]
    unsafe impl MKMapCameraBoundary {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);