//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uifontpickerviewcontrollerconfiguration?language=objc)
    #[unsafe(super(NSObject))]
    #[thread_kind = MainThreadOnly]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct UIFontPickerViewControllerConfiguration;
);

extern_conformance!(
    unsafe impl NSCopying for UIFontPickerViewControllerConfiguration {}
);

unsafe impl CopyingHelper for UIFontPickerViewControllerConfiguration {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for UIFontPickerViewControllerConfiguration {}
);

impl UIFontPickerViewControllerConfiguration {
    extern_methods!(
        #[unsafe(method(includeFaces))]
        #[unsafe(method_family = none)]
        pub fn includeFaces(&self) -> bool;

        /// Setter for [`includeFaces`][Self::includeFaces].
        #[unsafe(method(setIncludeFaces:))]
        #[unsafe(method_family = none)]
        pub fn setIncludeFaces(&self, include_faces: bool);

        #[unsafe(method(displayUsingSystemFont))]
        #[unsafe(method_family = none)]
        pub fn displayUsingSystemFont(&self) -> bool;

        /// Setter for [`displayUsingSystemFont`][Self::displayUsingSystemFont].
        #[unsafe(method(setDisplayUsingSystemFont:))]
        #[unsafe(method_family = none)]
        pub fn setDisplayUsingSystemFont(&self, display_using_system_font: bool);

        #[cfg(feature = "UIFontDescriptor")]
        #[unsafe(method(filteredTraits))]
        #[unsafe(method_family = none)]
        pub fn filteredTraits(&self) -> UIFontDescriptorSymbolicTraits;

        #[cfg(feature = "UIFontDescriptor")]
        /// Setter for [`filteredTraits`][Self::filteredTraits].
        #[unsafe(method(setFilteredTraits:))]
        #[unsafe(method_family = none)]
        pub fn setFilteredTraits(&self, filtered_traits: UIFontDescriptorSymbolicTraits);

        #[deprecated = "Use languageFilter"]
        #[unsafe(method(filteredLanguagesPredicate))]
        #[unsafe(method_family = none)]
        pub fn filteredLanguagesPredicate(&self) -> Option<Retained<NSPredicate>>;

        /// Setter for [`filteredLanguagesPredicate`][Self::filteredLanguagesPredicate].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated = "Use languageFilter"]
        #[unsafe(method(setFilteredLanguagesPredicate:))]
        #[unsafe(method_family = none)]
        pub fn setFilteredLanguagesPredicate(
            &self,
            filtered_languages_predicate: Option<&NSPredicate>,
        );

        #[deprecated = "Use languageFilter"]
        #[unsafe(method(filterPredicateForFilteredLanguages:))]
        #[unsafe(method_family = none)]
        pub fn filterPredicateForFilteredLanguages(
            filtered_languages: &NSArray<NSString>,
            mtm: MainThreadMarker,
        ) -> Option<Retained<NSPredicate>>;
    );
}

/// Methods declared on superclass `NSObject`.
impl UIFontPickerViewControllerConfiguration {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
    );
}
