use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MKPointOfInterestFilter;
);
extern_conformance!(
unsafe impl NSCoding for MKPointOfInterestFilter {}
);
extern_conformance!(
unsafe impl NSCopying for MKPointOfInterestFilter {}
);
unsafe impl CopyingHelper for MKPointOfInterestFilter {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for MKPointOfInterestFilter {}
);
extern_conformance!(
unsafe impl NSSecureCoding for MKPointOfInterestFilter {}
);
impl MKPointOfInterestFilter {
extern_methods!(
#[unsafe(method(filterIncludingAllCategories))]
#[unsafe(method_family = none)]
pub unsafe fn filterIncludingAllCategories() -> Retained<MKPointOfInterestFilter>;
#[unsafe(method(filterExcludingAllCategories))]
#[unsafe(method_family = none)]
pub unsafe fn filterExcludingAllCategories() -> Retained<MKPointOfInterestFilter>;
#[cfg(feature = "MKPointOfInterestCategory")]
#[unsafe(method(initIncludingCategories:))]
#[unsafe(method_family = init)]
pub unsafe fn initIncludingCategories(
this: Allocated<Self>,
categories: &NSArray<MKPointOfInterestCategory>,
) -> Retained<Self>;
#[cfg(feature = "MKPointOfInterestCategory")]
#[unsafe(method(initExcludingCategories:))]
#[unsafe(method_family = init)]
pub unsafe fn initExcludingCategories(
this: Allocated<Self>,
categories: &NSArray<MKPointOfInterestCategory>,
) -> Retained<Self>;
#[cfg(feature = "MKPointOfInterestCategory")]
#[unsafe(method(includesCategory:))]
#[unsafe(method_family = none)]
pub unsafe fn includesCategory(&self, category: &MKPointOfInterestCategory) -> bool;
#[cfg(feature = "MKPointOfInterestCategory")]
#[unsafe(method(excludesCategory:))]
#[unsafe(method_family = none)]
pub unsafe fn excludesCategory(&self, category: &MKPointOfInterestCategory) -> bool;
);
}
impl MKPointOfInterestFilter {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}