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
16extern_conformance!(
17 unsafe impl NSCoding for MKPointOfInterestFilter {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for MKPointOfInterestFilter {}
22);
23
24unsafe impl CopyingHelper for MKPointOfInterestFilter {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for MKPointOfInterestFilter {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for MKPointOfInterestFilter {}
34);
35
36impl MKPointOfInterestFilter {
37 extern_methods!(
38 #[unsafe(method(filterIncludingAllCategories))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn filterIncludingAllCategories() -> Retained<MKPointOfInterestFilter>;
41
42 #[unsafe(method(filterExcludingAllCategories))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn filterExcludingAllCategories() -> Retained<MKPointOfInterestFilter>;
45
46 #[cfg(feature = "MKPointOfInterestCategory")]
47 #[unsafe(method(initIncludingCategories:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initIncludingCategories(
50 this: Allocated<Self>,
51 categories: &NSArray<MKPointOfInterestCategory>,
52 ) -> Retained<Self>;
53
54 #[cfg(feature = "MKPointOfInterestCategory")]
55 #[unsafe(method(initExcludingCategories:))]
56 #[unsafe(method_family = init)]
57 pub unsafe fn initExcludingCategories(
58 this: Allocated<Self>,
59 categories: &NSArray<MKPointOfInterestCategory>,
60 ) -> Retained<Self>;
61
62 #[cfg(feature = "MKPointOfInterestCategory")]
63 #[unsafe(method(includesCategory:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn includesCategory(&self, category: &MKPointOfInterestCategory) -> bool;
66
67 #[cfg(feature = "MKPointOfInterestCategory")]
68 #[unsafe(method(excludesCategory:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn excludesCategory(&self, category: &MKPointOfInterestCategory) -> bool;
71 );
72}
73
74impl MKPointOfInterestFilter {
76 extern_methods!(
77 #[unsafe(method(init))]
78 #[unsafe(method_family = init)]
79 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
80
81 #[unsafe(method(new))]
82 #[unsafe(method_family = new)]
83 pub unsafe fn new() -> Retained<Self>;
84 );
85}