use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(MKShape, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MKShape")]
pub struct MKPointAnnotation;
);
#[cfg(all(feature = "MKAnnotation", feature = "MKShape"))]
extern_conformance!(
unsafe impl MKAnnotation for MKPointAnnotation {}
);
#[cfg(feature = "MKShape")]
extern_conformance!(
unsafe impl NSObjectProtocol for MKPointAnnotation {}
);
#[cfg(feature = "MKShape")]
impl MKPointAnnotation {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(initWithCoordinate:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoordinate(
this: Allocated<Self>,
coordinate: CLLocationCoordinate2D,
) -> Retained<Self>;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(initWithCoordinate:title:subtitle:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoordinate_title_subtitle(
this: Allocated<Self>,
coordinate: CLLocationCoordinate2D,
title: Option<&NSString>,
subtitle: Option<&NSString>,
) -> Retained<Self>;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(coordinate))]
#[unsafe(method_family = none)]
pub unsafe fn coordinate(&self) -> CLLocationCoordinate2D;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(setCoordinate:))]
#[unsafe(method_family = none)]
pub unsafe fn setCoordinate(&self, coordinate: CLLocationCoordinate2D);
);
}
#[cfg(feature = "MKShape")]
impl MKPointAnnotation {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}