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")]
18extern_conformance!(
19    unsafe impl MKAnnotation for MKClusterAnnotation {}
20);
21
22extern_conformance!(
23    unsafe impl NSObjectProtocol for MKClusterAnnotation {}
24);
25
26impl MKClusterAnnotation {
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        ///
34        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
35        #[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        /// Setter for [`subtitle`][Self::subtitle].
44        ///
45        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
46        #[unsafe(method(setSubtitle:))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
49
50        #[cfg(feature = "MKAnnotation")]
51        #[unsafe(method(memberAnnotations))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn memberAnnotations(
54            &self,
55        ) -> Retained<NSArray<ProtocolObject<dyn MKAnnotation>>>;
56
57        #[unsafe(method(init))]
58        #[unsafe(method_family = init)]
59        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
60
61        #[cfg(feature = "MKAnnotation")]
62        #[unsafe(method(initWithMemberAnnotations:))]
63        #[unsafe(method_family = init)]
64        pub unsafe fn initWithMemberAnnotations(
65            this: Allocated<Self>,
66            member_annotations: &NSArray<ProtocolObject<dyn MKAnnotation>>,
67        ) -> Retained<Self>;
68    );
69}
70
71/// Methods declared on superclass `NSObject`.
72impl MKClusterAnnotation {
73    extern_methods!(
74        #[unsafe(method(new))]
75        #[unsafe(method_family = new)]
76        pub unsafe fn new() -> Retained<Self>;
77    );
78}