objc2_ui_kit/generated/
UIContentUnavailableConfigurationState.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 UIContentUnavailableConfigurationState;
16);
17
18unsafe impl NSCoding for UIContentUnavailableConfigurationState {}
19
20unsafe impl NSCopying for UIContentUnavailableConfigurationState {}
21
22unsafe impl CopyingHelper for UIContentUnavailableConfigurationState {
23 type Result = Self;
24}
25
26unsafe impl NSObjectProtocol for UIContentUnavailableConfigurationState {}
27
28unsafe impl NSSecureCoding for UIContentUnavailableConfigurationState {}
29
30#[cfg(feature = "UIConfigurationState")]
31unsafe impl UIConfigurationState for UIContentUnavailableConfigurationState {}
32
33impl UIContentUnavailableConfigurationState {
34 extern_methods!(
35 #[cfg(feature = "UITraitCollection")]
36 #[unsafe(method(initWithTraitCollection:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithTraitCollection(
39 this: Allocated<Self>,
40 trait_collection: &UITraitCollection,
41 ) -> Retained<Self>;
42
43 #[unsafe(method(initWithCoder:))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn initWithCoder(
46 this: Allocated<Self>,
47 coder: &NSCoder,
48 ) -> Option<Retained<Self>>;
49
50 #[unsafe(method(init))]
51 #[unsafe(method_family = init)]
52 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
53
54 #[unsafe(method(new))]
55 #[unsafe(method_family = new)]
56 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
57
58 #[cfg(feature = "UITraitCollection")]
59 #[unsafe(method(traitCollection))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn traitCollection(&self) -> Retained<UITraitCollection>;
63
64 #[cfg(feature = "UITraitCollection")]
65 #[unsafe(method(setTraitCollection:))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection);
69
70 #[unsafe(method(searchText))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn searchText(&self) -> Option<Retained<NSString>>;
74
75 #[unsafe(method(setSearchText:))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn setSearchText(&self, search_text: Option<&NSString>);
79 );
80}