objc2_map_kit/generated/
MKPolylineRenderer.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8
9use crate::*;
10
11extern_class!(
12 #[unsafe(super(MKOverlayPathRenderer, MKOverlayRenderer, NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(all(feature = "MKOverlayPathRenderer", feature = "MKOverlayRenderer"))]
16 pub struct MKPolylineRenderer;
17);
18
19#[cfg(all(feature = "MKOverlayPathRenderer", feature = "MKOverlayRenderer"))]
20unsafe impl NSObjectProtocol for MKPolylineRenderer {}
21
22#[cfg(all(feature = "MKOverlayPathRenderer", feature = "MKOverlayRenderer"))]
23impl MKPolylineRenderer {
24 extern_methods!(
25 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
26 #[unsafe(method(initWithPolyline:))]
27 #[unsafe(method_family = init)]
28 pub unsafe fn initWithPolyline(
29 this: Allocated<Self>,
30 polyline: &MKPolyline,
31 ) -> Retained<Self>;
32
33 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolyline", feature = "MKShape"))]
34 #[unsafe(method(polyline))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn polyline(&self) -> Retained<MKPolyline>;
37
38 #[cfg(feature = "objc2-core-foundation")]
39 #[unsafe(method(strokeStart))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn strokeStart(&self) -> CGFloat;
42
43 #[cfg(feature = "objc2-core-foundation")]
44 #[unsafe(method(setStrokeStart:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn setStrokeStart(&self, stroke_start: CGFloat);
48
49 #[cfg(feature = "objc2-core-foundation")]
50 #[unsafe(method(strokeEnd))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn strokeEnd(&self) -> CGFloat;
53
54 #[cfg(feature = "objc2-core-foundation")]
55 #[unsafe(method(setStrokeEnd:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn setStrokeEnd(&self, stroke_end: CGFloat);
59 );
60}
61
62#[cfg(all(feature = "MKOverlayPathRenderer", feature = "MKOverlayRenderer"))]
64impl MKPolylineRenderer {
65 extern_methods!(
66 #[cfg(all(feature = "MKAnnotation", feature = "MKOverlay"))]
67 #[unsafe(method(initWithOverlay:))]
68 #[unsafe(method_family = init)]
69 pub unsafe fn initWithOverlay(
70 this: Allocated<Self>,
71 overlay: &ProtocolObject<dyn MKOverlay>,
72 ) -> Retained<Self>;
73 );
74}
75
76#[cfg(all(feature = "MKOverlayPathRenderer", feature = "MKOverlayRenderer"))]
78impl MKPolylineRenderer {
79 extern_methods!(
80 #[unsafe(method(init))]
81 #[unsafe(method_family = init)]
82 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
83
84 #[unsafe(method(new))]
85 #[unsafe(method_family = new)]
86 pub unsafe fn new() -> Retained<Self>;
87 );
88}