objc2_map_kit/generated/
MKPolygonRenderer.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 MKPolygonRenderer;
17);
18
19#[cfg(all(feature = "MKOverlayPathRenderer", feature = "MKOverlayRenderer"))]
20extern_conformance!(
21 unsafe impl NSObjectProtocol for MKPolygonRenderer {}
22);
23
24#[cfg(all(feature = "MKOverlayPathRenderer", feature = "MKOverlayRenderer"))]
25impl MKPolygonRenderer {
26 extern_methods!(
27 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon", feature = "MKShape"))]
28 #[unsafe(method(initWithPolygon:))]
29 #[unsafe(method_family = init)]
30 pub unsafe fn initWithPolygon(this: Allocated<Self>, polygon: &MKPolygon)
31 -> Retained<Self>;
32
33 #[cfg(all(feature = "MKMultiPoint", feature = "MKPolygon", feature = "MKShape"))]
34 #[unsafe(method(polygon))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn polygon(&self) -> Retained<MKPolygon>;
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 MKPolygonRenderer {
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 MKPolygonRenderer {
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}