use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;
use crate::*;
extern_class!(
#[unsafe(super(MKMultiPoint, MKShape, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "MKMultiPoint", feature = "MKShape"))]
pub struct MKPolyline;
);
#[cfg(all(
feature = "MKAnnotation",
feature = "MKMultiPoint",
feature = "MKShape"
))]
extern_conformance!(
unsafe impl MKAnnotation for MKPolyline {}
);
#[cfg(all(
feature = "MKAnnotation",
feature = "MKMultiPoint",
feature = "MKOverlay",
feature = "MKShape"
))]
extern_conformance!(
unsafe impl MKOverlay for MKPolyline {}
);
#[cfg(all(feature = "MKMultiPoint", feature = "MKShape"))]
extern_conformance!(
unsafe impl NSObjectProtocol for MKPolyline {}
);
#[cfg(all(feature = "MKMultiPoint", feature = "MKShape"))]
impl MKPolyline {
extern_methods!(
#[cfg(feature = "MKGeometry")]
#[unsafe(method(polylineWithPoints:count:))]
#[unsafe(method_family = none)]
pub unsafe fn polylineWithPoints_count(
points: NonNull<MKMapPoint>,
count: NSUInteger,
) -> Retained<Self>;
#[cfg(feature = "objc2-core-location")]
#[unsafe(method(polylineWithCoordinates:count:))]
#[unsafe(method_family = none)]
pub unsafe fn polylineWithCoordinates_count(
coords: NonNull<CLLocationCoordinate2D>,
count: NSUInteger,
) -> Retained<Self>;
);
}
#[cfg(all(feature = "MKMultiPoint", feature = "MKShape"))]
impl MKPolyline {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}