objc2_map_kit/generated/
MKGeodesicPolyline.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-location")]
6use objc2_core_location::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(MKPolyline, MKMultiPoint, MKShape, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
15 pub struct MKGeodesicPolyline;
16);
17
18#[cfg(all(
19 feature = "MKAnnotation",
20 feature = "MKMultiPoint",
21 feature = "MKPolyline",
22 feature = "MKShape"
23))]
24unsafe impl MKAnnotation for MKGeodesicPolyline {}
25
26#[cfg(all(
27 feature = "MKAnnotation",
28 feature = "MKMultiPoint",
29 feature = "MKOverlay",
30 feature = "MKPolyline",
31 feature = "MKShape"
32))]
33unsafe impl MKOverlay for MKGeodesicPolyline {}
34
35#[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
36unsafe impl NSObjectProtocol for MKGeodesicPolyline {}
37
38#[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
39impl MKGeodesicPolyline {
40 extern_methods!(
41 #[cfg(feature = "MKGeometry")]
42 #[unsafe(method(polylineWithPoints:count:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn polylineWithPoints_count(
45 points: NonNull<MKMapPoint>,
46 count: NSUInteger,
47 ) -> Retained<Self>;
48
49 #[cfg(feature = "objc2-core-location")]
50 #[unsafe(method(polylineWithCoordinates:count:))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn polylineWithCoordinates_count(
53 coords: NonNull<CLLocationCoordinate2D>,
54 count: NSUInteger,
55 ) -> Retained<Self>;
56 );
57}
58
59#[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
61impl MKGeodesicPolyline {
62 extern_methods!(
63 #[unsafe(method(init))]
64 #[unsafe(method_family = init)]
65 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
66
67 #[unsafe(method(new))]
68 #[unsafe(method_family = new)]
69 pub unsafe fn new() -> Retained<Self>;
70 );
71}