objc2_ui_kit/generated/
UIFontPickerViewControllerConfiguration.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[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 fn includeFaces(&self) -> bool;
35
36 #[unsafe(method(setIncludeFaces:))]
38 #[unsafe(method_family = none)]
39 pub fn setIncludeFaces(&self, include_faces: bool);
40
41 #[unsafe(method(displayUsingSystemFont))]
42 #[unsafe(method_family = none)]
43 pub fn displayUsingSystemFont(&self) -> bool;
44
45 #[unsafe(method(setDisplayUsingSystemFont:))]
47 #[unsafe(method_family = none)]
48 pub fn setDisplayUsingSystemFont(&self, display_using_system_font: bool);
49
50 #[cfg(feature = "UIFontDescriptor")]
51 #[unsafe(method(filteredTraits))]
52 #[unsafe(method_family = none)]
53 pub fn filteredTraits(&self) -> UIFontDescriptorSymbolicTraits;
54
55 #[cfg(feature = "UIFontDescriptor")]
56 #[unsafe(method(setFilteredTraits:))]
58 #[unsafe(method_family = none)]
59 pub fn setFilteredTraits(&self, filtered_traits: UIFontDescriptorSymbolicTraits);
60
61 #[deprecated = "Use languageFilter"]
62 #[unsafe(method(filteredLanguagesPredicate))]
63 #[unsafe(method_family = none)]
64 pub fn filteredLanguagesPredicate(&self) -> Option<Retained<NSPredicate>>;
65
66 #[deprecated = "Use languageFilter"]
70 #[unsafe(method(setFilteredLanguagesPredicate:))]
71 #[unsafe(method_family = none)]
72 pub fn setFilteredLanguagesPredicate(
73 &self,
74 filtered_languages_predicate: Option<&NSPredicate>,
75 );
76
77 #[deprecated = "Use languageFilter"]
78 #[unsafe(method(filterPredicateForFilteredLanguages:))]
79 #[unsafe(method_family = none)]
80 pub fn filterPredicateForFilteredLanguages(
81 filtered_languages: &NSArray<NSString>,
82 mtm: MainThreadMarker,
83 ) -> Option<Retained<NSPredicate>>;
84 );
85}
86
87impl UIFontPickerViewControllerConfiguration {
89 extern_methods!(
90 #[unsafe(method(init))]
91 #[unsafe(method_family = init)]
92 pub fn init(this: Allocated<Self>) -> Retained<Self>;
93
94 #[unsafe(method(new))]
95 #[unsafe(method_family = new)]
96 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
97 );
98}