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