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 core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkimagerymapconfiguration?language=objc)
    #[unsafe(super(MKMapConfiguration, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MKMapConfiguration")]
    pub struct MKImageryMapConfiguration;
);

#[cfg(feature = "MKMapConfiguration")]
extern_conformance!(
    unsafe impl NSCoding for MKImageryMapConfiguration {}
);

#[cfg(feature = "MKMapConfiguration")]
extern_conformance!(
    unsafe impl NSCopying for MKImageryMapConfiguration {}
);

#[cfg(feature = "MKMapConfiguration")]
unsafe impl CopyingHelper for MKImageryMapConfiguration {
    type Result = Self;
}

#[cfg(feature = "MKMapConfiguration")]
extern_conformance!(
    unsafe impl NSObjectProtocol for MKImageryMapConfiguration {}
);

#[cfg(feature = "MKMapConfiguration")]
extern_conformance!(
    unsafe impl NSSecureCoding for MKImageryMapConfiguration {}
);

#[cfg(feature = "MKMapConfiguration")]
impl MKImageryMapConfiguration {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(initWithElevationStyle:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithElevationStyle(
            this: Allocated<Self>,
            elevation_style: MKMapElevationStyle,
        ) -> Retained<Self>;
    );
}

/// Methods declared on superclass `MKMapConfiguration`.
#[cfg(feature = "MKMapConfiguration")]
impl MKImageryMapConfiguration {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}