objc2_map_kit/generated/
MKPointOfInterestFilter.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct MKPointOfInterestFilter;
14);
15
16unsafe impl NSCoding for MKPointOfInterestFilter {}
17
18unsafe impl NSCopying for MKPointOfInterestFilter {}
19
20unsafe impl CopyingHelper for MKPointOfInterestFilter {
21 type Result = Self;
22}
23
24unsafe impl NSObjectProtocol for MKPointOfInterestFilter {}
25
26unsafe impl NSSecureCoding for MKPointOfInterestFilter {}
27
28impl MKPointOfInterestFilter {
29 extern_methods!(
30 #[unsafe(method(filterIncludingAllCategories))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn filterIncludingAllCategories() -> Retained<MKPointOfInterestFilter>;
33
34 #[unsafe(method(filterExcludingAllCategories))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn filterExcludingAllCategories() -> Retained<MKPointOfInterestFilter>;
37
38 #[cfg(feature = "MKPointOfInterestCategory")]
39 #[unsafe(method(initIncludingCategories:))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn initIncludingCategories(
42 this: Allocated<Self>,
43 categories: &NSArray<MKPointOfInterestCategory>,
44 ) -> Retained<Self>;
45
46 #[cfg(feature = "MKPointOfInterestCategory")]
47 #[unsafe(method(initExcludingCategories:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initExcludingCategories(
50 this: Allocated<Self>,
51 categories: &NSArray<MKPointOfInterestCategory>,
52 ) -> Retained<Self>;
53
54 #[cfg(feature = "MKPointOfInterestCategory")]
55 #[unsafe(method(includesCategory:))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn includesCategory(&self, category: &MKPointOfInterestCategory) -> bool;
58
59 #[cfg(feature = "MKPointOfInterestCategory")]
60 #[unsafe(method(excludesCategory:))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn excludesCategory(&self, category: &MKPointOfInterestCategory) -> bool;
63 );
64}
65
66impl MKPointOfInterestFilter {
68 extern_methods!(
69 #[unsafe(method(init))]
70 #[unsafe(method_family = init)]
71 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
72
73 #[unsafe(method(new))]
74 #[unsafe(method_family = new)]
75 pub unsafe fn new() -> Retained<Self>;
76 );
77}