objc2_map_kit/generated/
MKMultiPoint.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8#[cfg(feature = "objc2-core-location")]
9use objc2_core_location::*;
10use objc2_foundation::*;
11
12use crate::*;
13
14extern_class!(
15 #[unsafe(super(MKShape, NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(feature = "MKShape")]
19 pub struct MKMultiPoint;
20);
21
22#[cfg(all(feature = "MKAnnotation", feature = "MKShape"))]
23unsafe impl MKAnnotation for MKMultiPoint {}
24
25#[cfg(feature = "MKShape")]
26unsafe impl NSObjectProtocol for MKMultiPoint {}
27
28#[cfg(feature = "MKShape")]
29impl MKMultiPoint {
30 extern_methods!(
31 #[cfg(feature = "MKGeometry")]
32 #[unsafe(method(points))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn points(&self) -> NonNull<MKMapPoint>;
35
36 #[unsafe(method(pointCount))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn pointCount(&self) -> NSUInteger;
39
40 #[cfg(feature = "objc2-core-location")]
41 #[unsafe(method(getCoordinates:range:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn getCoordinates_range(
44 &self,
45 coords: NonNull<CLLocationCoordinate2D>,
46 range: NSRange,
47 );
48
49 #[cfg(feature = "objc2-core-foundation")]
50 #[unsafe(method(locationAtPointIndex:))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn locationAtPointIndex(&self, index: NSUInteger) -> CGFloat;
53
54 #[unsafe(method(locationsAtPointIndexes:))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn locationsAtPointIndexes(
57 &self,
58 indexes: &NSIndexSet,
59 ) -> Retained<NSArray<NSNumber>>;
60 );
61}
62
63#[cfg(feature = "MKShape")]
65impl MKMultiPoint {
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}