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")]
18unsafe impl MKAnnotation for MKShape {}
19
20unsafe impl NSObjectProtocol for MKShape {}
21
22impl MKShape {
23 extern_methods!(
24 #[unsafe(method(title))]
25 #[unsafe(method_family = none)]
26 pub unsafe fn title(&self) -> Option<Retained<NSString>>;
27
28 #[unsafe(method(setTitle:))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn setTitle(&self, title: Option<&NSString>);
32
33 #[unsafe(method(subtitle))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn subtitle(&self) -> Option<Retained<NSString>>;
36
37 #[unsafe(method(setSubtitle:))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
41 );
42}
43
44impl MKShape {
46 extern_methods!(
47 #[unsafe(method(init))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51 #[unsafe(method(new))]
52 #[unsafe(method_family = new)]
53 pub unsafe fn new() -> Retained<Self>;
54 );
55}