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
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 #[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 #[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 #[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 #[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
81impl 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}