objc2_ui_kit/generated/
UISearchContainerViewController.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(UIViewController, UIResponder, NSObject))]
12 #[thread_kind = MainThreadOnly]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
15 pub struct UISearchContainerViewController;
16);
17
18#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
19extern_conformance!(
20 unsafe impl NSCoding for UISearchContainerViewController {}
21);
22
23#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
24extern_conformance!(
25 unsafe impl NSObjectProtocol for UISearchContainerViewController {}
26);
27
28#[cfg(all(
29 feature = "UIAppearance",
30 feature = "UIResponder",
31 feature = "UIViewController"
32))]
33extern_conformance!(
34 unsafe impl UIAppearanceContainer for UISearchContainerViewController {}
35);
36
37#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
38extern_conformance!(
39 unsafe impl UIContentContainer for UISearchContainerViewController {}
40);
41
42#[cfg(all(
43 feature = "UIFocus",
44 feature = "UIResponder",
45 feature = "UIViewController"
46))]
47extern_conformance!(
48 unsafe impl UIFocusEnvironment for UISearchContainerViewController {}
49);
50
51#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
52extern_conformance!(
53 unsafe impl UIResponderStandardEditActions for UISearchContainerViewController {}
54);
55
56#[cfg(all(
57 feature = "UIResponder",
58 feature = "UITraitCollection",
59 feature = "UIViewController"
60))]
61extern_conformance!(
62 unsafe impl UITraitEnvironment for UISearchContainerViewController {}
63);
64
65#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
66impl UISearchContainerViewController {
67 extern_methods!(
68 #[cfg(feature = "UISearchController")]
69 #[unsafe(method(searchController))]
70 #[unsafe(method_family = none)]
71 pub fn searchController(&self) -> Retained<UISearchController>;
72
73 #[cfg(feature = "UISearchController")]
74 #[unsafe(method(initWithSearchController:))]
75 #[unsafe(method_family = init)]
76 pub fn initWithSearchController(
77 this: Allocated<Self>,
78 search_controller: &UISearchController,
79 ) -> Retained<Self>;
80 );
81}
82
83#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
85impl UISearchContainerViewController {
86 extern_methods!(
87 #[unsafe(method(initWithNibName:bundle:))]
88 #[unsafe(method_family = init)]
89 pub fn initWithNibName_bundle(
90 this: Allocated<Self>,
91 nib_name_or_nil: Option<&NSString>,
92 nib_bundle_or_nil: Option<&NSBundle>,
93 ) -> Retained<Self>;
94
95 #[unsafe(method(initWithCoder:))]
99 #[unsafe(method_family = init)]
100 pub unsafe fn initWithCoder(
101 this: Allocated<Self>,
102 coder: &NSCoder,
103 ) -> Option<Retained<Self>>;
104 );
105}
106
107#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
109impl UISearchContainerViewController {
110 extern_methods!(
111 #[unsafe(method(init))]
112 #[unsafe(method_family = init)]
113 pub fn init(this: Allocated<Self>) -> Retained<Self>;
114
115 #[unsafe(method(new))]
116 #[unsafe(method_family = new)]
117 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
118 );
119}