objc2_map_kit/generated/
MKClusterAnnotation.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 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 #[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 #[unsafe(method(setSubtitle:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn setSubtitle(&self, subtitle: Option<&NSString>);
45
46 #[cfg(feature = "MKAnnotation")]
47 #[unsafe(method(memberAnnotations))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn memberAnnotations(
50 &self,
51 ) -> Retained<NSArray<ProtocolObject<dyn MKAnnotation>>>;
52
53 #[unsafe(method(init))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
56
57 #[cfg(feature = "MKAnnotation")]
58 #[unsafe(method(initWithMemberAnnotations:))]
59 #[unsafe(method_family = init)]
60 pub unsafe fn initWithMemberAnnotations(
61 this: Allocated<Self>,
62 member_annotations: &NSArray<ProtocolObject<dyn MKAnnotation>>,
63 ) -> Retained<Self>;
64 );
65}
66
67impl MKClusterAnnotation {
69 extern_methods!(
70 #[unsafe(method(new))]
71 #[unsafe(method_family = new)]
72 pub unsafe fn new() -> Retained<Self>;
73 );
74}