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_MKMapSnapshotOptions")]
pub struct MKMapSnapshotOptions;
#[cfg(feature = "MapKit_MKMapSnapshotOptions")]
unsafe impl ClassType for MKMapSnapshotOptions {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MapKit_MKMapSnapshotOptions")]
unsafe impl NSCopying for MKMapSnapshotOptions {}
#[cfg(feature = "MapKit_MKMapSnapshotOptions")]
unsafe impl NSObjectProtocol for MKMapSnapshotOptions {}
extern_methods!(
#[cfg(feature = "MapKit_MKMapSnapshotOptions")]
unsafe impl MKMapSnapshotOptions {
#[cfg(feature = "MapKit_MKMapConfiguration")]
#[method_id(@__retain_semantics Other preferredConfiguration)]
pub unsafe fn preferredConfiguration(&self) -> Id<MKMapConfiguration>;
#[cfg(feature = "MapKit_MKMapConfiguration")]
#[method(setPreferredConfiguration:)]
pub unsafe fn setPreferredConfiguration(
&self,
preferred_configuration: &MKMapConfiguration,
);
#[cfg(feature = "MapKit_MKMapCamera")]
#[method_id(@__retain_semantics Other camera)]
pub unsafe fn camera(&self) -> Id<MKMapCamera>;
#[cfg(feature = "MapKit_MKMapCamera")]
#[method(setCamera:)]
pub unsafe fn setCamera(&self, camera: &MKMapCamera);
#[method(mapRect)]
pub unsafe fn mapRect(&self) -> MKMapRect;
#[method(setMapRect:)]
pub unsafe fn setMapRect(&self, map_rect: MKMapRect);
#[method(region)]
pub unsafe fn region(&self) -> MKCoordinateRegion;
#[method(setRegion:)]
pub unsafe fn setRegion(&self, region: MKCoordinateRegion);
#[deprecated = "Use preferredConfiguration"]
#[method(mapType)]
pub unsafe fn mapType(&self) -> MKMapType;
#[deprecated = "Use preferredConfiguration"]
#[method(setMapType:)]
pub unsafe fn setMapType(&self, map_type: MKMapType);
#[cfg(feature = "MapKit_MKPointOfInterestFilter")]
#[deprecated = "Use preferredConfiguration"]
#[method_id(@__retain_semantics Other pointOfInterestFilter)]
pub unsafe fn pointOfInterestFilter(&self) -> Option<Id<MKPointOfInterestFilter>>;
#[cfg(feature = "MapKit_MKPointOfInterestFilter")]
#[deprecated = "Use preferredConfiguration"]
#[method(setPointOfInterestFilter:)]
pub unsafe fn setPointOfInterestFilter(
&self,
point_of_interest_filter: Option<&MKPointOfInterestFilter>,
);
#[deprecated = "Use preferredConfiguration"]
#[method(showsPointsOfInterest)]
pub unsafe fn showsPointsOfInterest(&self) -> bool;
#[deprecated = "Use preferredConfiguration"]
#[method(setShowsPointsOfInterest:)]
pub unsafe fn setShowsPointsOfInterest(&self, shows_points_of_interest: bool);
#[deprecated = "No longer supported."]
#[method(showsBuildings)]
pub unsafe fn showsBuildings(&self) -> bool;
#[deprecated = "No longer supported."]
#[method(setShowsBuildings:)]
pub unsafe fn setShowsBuildings(&self, shows_buildings: bool);
#[method(size)]
pub unsafe fn size(&self) -> NSSize;
#[method(setSize:)]
pub unsafe fn setSize(&self, size: NSSize);
#[cfg(feature = "AppKit_NSAppearance")]
#[method_id(@__retain_semantics Other appearance)]
pub unsafe fn appearance(&self) -> Option<Id<NSAppearance>>;
#[cfg(feature = "AppKit_NSAppearance")]
#[method(setAppearance:)]
pub unsafe fn setAppearance(&self, appearance: Option<&NSAppearance>);
}
);
extern_methods!(
#[cfg(feature = "MapKit_MKMapSnapshotOptions")]
unsafe impl MKMapSnapshotOptions {
#[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>;
}
);