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))]
23extern_conformance!(
24 unsafe impl MKAnnotation for MKPolyline {}
25);
26
27#[cfg(all(
28 feature = "MKAnnotation",
29 feature = "MKMultiPoint",
30 feature = "MKOverlay",
31 feature = "MKShape"
32))]
33extern_conformance!(
34 unsafe impl MKOverlay for MKPolyline {}
35);
36
37#[cfg(all(feature = "MKMultiPoint", feature = "MKShape"))]
38extern_conformance!(
39 unsafe impl NSObjectProtocol for MKPolyline {}
40);
41
42#[cfg(all(feature = "MKMultiPoint", feature = "MKShape"))]
43impl MKPolyline {
44 extern_methods!(
45 #[cfg(feature = "MKGeometry")]
46 #[unsafe(method(polylineWithPoints:count:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn polylineWithPoints_count(
49 points: NonNull<MKMapPoint>,
50 count: NSUInteger,
51 ) -> Retained<Self>;
52
53 #[cfg(feature = "objc2-core-location")]
54 #[unsafe(method(polylineWithCoordinates:count:))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn polylineWithCoordinates_count(
57 coords: NonNull<CLLocationCoordinate2D>,
58 count: NSUInteger,
59 ) -> Retained<Self>;
60 );
61}
62
63#[cfg(all(feature = "MKMultiPoint", feature = "MKShape"))]
65impl MKPolyline {
66 extern_methods!(
67 #[unsafe(method(init))]
68 #[unsafe(method_family = init)]
69 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
70
71 #[unsafe(method(new))]
72 #[unsafe(method_family = new)]
73 pub unsafe fn new() -> Retained<Self>;
74 );
75}