objc2_map_kit/generated/
MKShape.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct MKShape;
15);
16
17#[cfg(feature = "MKAnnotation")]
18extern_conformance!(
19 unsafe impl MKAnnotation for MKShape {}
20);
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for MKShape {}
24);
25
26impl MKShape {
27 extern_methods!(
28 #[unsafe(method(title))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn title(&self) -> Option<Retained<NSString>>;
31
32 #[unsafe(method(setTitle:))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn setTitle(&self, title: Option<&NSString>);
38
39 #[unsafe(method(subtitle))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn subtitle(&self) -> Option<Retained<NSString>>;
42
43 #[unsafe(method(setSubtitle:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
49 );
50}
51
52impl MKShape {
54 extern_methods!(
55 #[unsafe(method(init))]
56 #[unsafe(method_family = init)]
57 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58
59 #[unsafe(method(new))]
60 #[unsafe(method_family = new)]
61 pub unsafe fn new() -> Retained<Self>;
62 );
63}