objc2_map_kit/generated/
MKClusterAnnotation.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/mkclusterannotation?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct MKClusterAnnotation;
15);
16
17#[cfg(feature = "MKAnnotation")]
18unsafe impl MKAnnotation for MKClusterAnnotation {}
19
20unsafe impl NSObjectProtocol for MKClusterAnnotation {}
21
22impl MKClusterAnnotation {
23    extern_methods!(
24        #[unsafe(method(title))]
25        #[unsafe(method_family = none)]
26        pub unsafe fn title(&self) -> Option<Retained<NSString>>;
27
28        /// Setter for [`title`][Self::title].
29        #[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        /// Setter for [`subtitle`][Self::subtitle].
38        #[unsafe(method(setSubtitle:))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
41
42        #[cfg(feature = "MKAnnotation")]
43        #[unsafe(method(memberAnnotations))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn memberAnnotations(
46            &self,
47        ) -> Retained<NSArray<ProtocolObject<dyn MKAnnotation>>>;
48
49        #[unsafe(method(init))]
50        #[unsafe(method_family = init)]
51        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
52
53        #[cfg(feature = "MKAnnotation")]
54        #[unsafe(method(initWithMemberAnnotations:))]
55        #[unsafe(method_family = init)]
56        pub unsafe fn initWithMemberAnnotations(
57            this: Allocated<Self>,
58            member_annotations: &NSArray<ProtocolObject<dyn MKAnnotation>>,
59        ) -> Retained<Self>;
60    );
61}
62
63/// Methods declared on superclass `NSObject`.
64impl MKClusterAnnotation {
65    extern_methods!(
66        #[unsafe(method(new))]
67        #[unsafe(method_family = new)]
68        pub unsafe fn new() -> Retained<Self>;
69    );
70}