objc2_map_kit/generated/
MKShape.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkshape?language=objc)
12    #[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        /// Setter for [`title`][Self::title].
33        #[unsafe(method(setTitle:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn setTitle(&self, title: Option<&NSString>);
36
37        #[unsafe(method(subtitle))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn subtitle(&self) -> Option<Retained<NSString>>;
40
41        /// Setter for [`subtitle`][Self::subtitle].
42        #[unsafe(method(setSubtitle:))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
45    );
46}
47
48/// Methods declared on superclass `NSObject`.
49impl MKShape {
50    extern_methods!(
51        #[unsafe(method(init))]
52        #[unsafe(method_family = init)]
53        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
54
55        #[unsafe(method(new))]
56        #[unsafe(method_family = new)]
57        pub unsafe fn new() -> Retained<Self>;
58    );
59}