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
18extern_conformance!(
19    unsafe impl NSCopying for UIFontPickerViewControllerConfiguration {}
20);
21
22unsafe impl CopyingHelper for UIFontPickerViewControllerConfiguration {
23    type Result = Self;
24}
25
26extern_conformance!(
27    unsafe impl NSObjectProtocol for UIFontPickerViewControllerConfiguration {}
28);
29
30impl UIFontPickerViewControllerConfiguration {
31    extern_methods!(
32        #[unsafe(method(includeFaces))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn includeFaces(&self) -> bool;
35
36        /// Setter for [`includeFaces`][Self::includeFaces].
37        #[unsafe(method(setIncludeFaces:))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn setIncludeFaces(&self, include_faces: bool);
40
41        #[unsafe(method(displayUsingSystemFont))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn displayUsingSystemFont(&self) -> bool;
44
45        /// Setter for [`displayUsingSystemFont`][Self::displayUsingSystemFont].
46        #[unsafe(method(setDisplayUsingSystemFont:))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn setDisplayUsingSystemFont(&self, display_using_system_font: bool);
49
50        #[cfg(feature = "UIFontDescriptor")]
51        #[unsafe(method(filteredTraits))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn filteredTraits(&self) -> UIFontDescriptorSymbolicTraits;
54
55        #[cfg(feature = "UIFontDescriptor")]
56        /// Setter for [`filteredTraits`][Self::filteredTraits].
57        #[unsafe(method(setFilteredTraits:))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn setFilteredTraits(&self, filtered_traits: UIFontDescriptorSymbolicTraits);
60
61        #[deprecated = "Use languageFilter"]
62        #[unsafe(method(filteredLanguagesPredicate))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn filteredLanguagesPredicate(&self) -> Option<Retained<NSPredicate>>;
65
66        /// Setter for [`filteredLanguagesPredicate`][Self::filteredLanguagesPredicate].
67        #[deprecated = "Use languageFilter"]
68        #[unsafe(method(setFilteredLanguagesPredicate:))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn setFilteredLanguagesPredicate(
71            &self,
72            filtered_languages_predicate: Option<&NSPredicate>,
73        );
74
75        #[deprecated = "Use languageFilter"]
76        #[unsafe(method(filterPredicateForFilteredLanguages:))]
77        #[unsafe(method_family = none)]
78        pub unsafe fn filterPredicateForFilteredLanguages(
79            filtered_languages: &NSArray<NSString>,
80            mtm: MainThreadMarker,
81        ) -> Option<Retained<NSPredicate>>;
82    );
83}
84
85/// Methods declared on superclass `NSObject`.
86impl UIFontPickerViewControllerConfiguration {
87    extern_methods!(
88        #[unsafe(method(init))]
89        #[unsafe(method_family = init)]
90        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
91
92        #[unsafe(method(new))]
93        #[unsafe(method_family = new)]
94        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
95    );
96}