objc2_ui_kit/generated/
UIFontPickerViewControllerConfiguration.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uifontpickerviewcontrollerconfiguration?language=objc)
12    #[unsafe(super(NSObject))]
13    #[thread_kind = MainThreadOnly]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct UIFontPickerViewControllerConfiguration;
16);
17
18unsafe impl NSCopying for UIFontPickerViewControllerConfiguration {}
19
20unsafe impl CopyingHelper for UIFontPickerViewControllerConfiguration {
21    type Result = Self;
22}
23
24unsafe impl NSObjectProtocol for UIFontPickerViewControllerConfiguration {}
25
26impl UIFontPickerViewControllerConfiguration {
27    extern_methods!(
28        #[unsafe(method(includeFaces))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn includeFaces(&self) -> bool;
31
32        /// Setter for [`includeFaces`][Self::includeFaces].
33        #[unsafe(method(setIncludeFaces:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn setIncludeFaces(&self, include_faces: bool);
36
37        #[unsafe(method(displayUsingSystemFont))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn displayUsingSystemFont(&self) -> bool;
40
41        /// Setter for [`displayUsingSystemFont`][Self::displayUsingSystemFont].
42        #[unsafe(method(setDisplayUsingSystemFont:))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn setDisplayUsingSystemFont(&self, display_using_system_font: bool);
45
46        #[cfg(feature = "UIFontDescriptor")]
47        #[unsafe(method(filteredTraits))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn filteredTraits(&self) -> UIFontDescriptorSymbolicTraits;
50
51        #[cfg(feature = "UIFontDescriptor")]
52        /// Setter for [`filteredTraits`][Self::filteredTraits].
53        #[unsafe(method(setFilteredTraits:))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn setFilteredTraits(&self, filtered_traits: UIFontDescriptorSymbolicTraits);
56
57        #[deprecated = "Use languageFilter"]
58        #[unsafe(method(filteredLanguagesPredicate))]
59        #[unsafe(method_family = none)]
60        pub unsafe fn filteredLanguagesPredicate(&self) -> Option<Retained<NSPredicate>>;
61
62        /// Setter for [`filteredLanguagesPredicate`][Self::filteredLanguagesPredicate].
63        #[deprecated = "Use languageFilter"]
64        #[unsafe(method(setFilteredLanguagesPredicate:))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn setFilteredLanguagesPredicate(
67            &self,
68            filtered_languages_predicate: Option<&NSPredicate>,
69        );
70
71        #[deprecated = "Use languageFilter"]
72        #[unsafe(method(filterPredicateForFilteredLanguages:))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn filterPredicateForFilteredLanguages(
75            filtered_languages: &NSArray<NSString>,
76            mtm: MainThreadMarker,
77        ) -> Option<Retained<NSPredicate>>;
78    );
79}
80
81/// Methods declared on superclass `NSObject`.
82impl UIFontPickerViewControllerConfiguration {
83    extern_methods!(
84        #[unsafe(method(init))]
85        #[unsafe(method_family = init)]
86        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
87
88        #[unsafe(method(new))]
89        #[unsafe(method_family = new)]
90        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
91    );
92}