objc2_ui_kit/generated/
UISearchContainerViewController.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uisearchcontainerviewcontroller?language=objc)
11    #[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"))]
19unsafe impl NSCoding for UISearchContainerViewController {}
20
21#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
22unsafe impl NSObjectProtocol for UISearchContainerViewController {}
23
24#[cfg(all(
25    feature = "UIAppearance",
26    feature = "UIResponder",
27    feature = "UIViewController"
28))]
29unsafe impl UIAppearanceContainer for UISearchContainerViewController {}
30
31#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
32unsafe impl UIContentContainer for UISearchContainerViewController {}
33
34#[cfg(all(
35    feature = "UIFocus",
36    feature = "UIResponder",
37    feature = "UIViewController"
38))]
39unsafe impl UIFocusEnvironment for UISearchContainerViewController {}
40
41#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
42unsafe impl UIResponderStandardEditActions for UISearchContainerViewController {}
43
44#[cfg(all(
45    feature = "UIResponder",
46    feature = "UITraitCollection",
47    feature = "UIViewController"
48))]
49unsafe impl UITraitEnvironment for UISearchContainerViewController {}
50
51#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
52impl UISearchContainerViewController {
53    extern_methods!(
54        #[cfg(feature = "UISearchController")]
55        #[unsafe(method(searchController))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn searchController(&self) -> Retained<UISearchController>;
58
59        #[cfg(feature = "UISearchController")]
60        #[unsafe(method(initWithSearchController:))]
61        #[unsafe(method_family = init)]
62        pub unsafe fn initWithSearchController(
63            this: Allocated<Self>,
64            search_controller: &UISearchController,
65        ) -> Retained<Self>;
66    );
67}
68
69/// Methods declared on superclass `UIViewController`.
70#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
71impl UISearchContainerViewController {
72    extern_methods!(
73        #[unsafe(method(initWithNibName:bundle:))]
74        #[unsafe(method_family = init)]
75        pub unsafe fn initWithNibName_bundle(
76            this: Allocated<Self>,
77            nib_name_or_nil: Option<&NSString>,
78            nib_bundle_or_nil: Option<&NSBundle>,
79        ) -> Retained<Self>;
80
81        #[unsafe(method(initWithCoder:))]
82        #[unsafe(method_family = init)]
83        pub unsafe fn initWithCoder(
84            this: Allocated<Self>,
85            coder: &NSCoder,
86        ) -> Option<Retained<Self>>;
87    );
88}
89
90/// Methods declared on superclass `NSObject`.
91#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
92impl UISearchContainerViewController {
93    extern_methods!(
94        #[unsafe(method(init))]
95        #[unsafe(method_family = init)]
96        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
97
98        #[unsafe(method(new))]
99        #[unsafe(method_family = new)]
100        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
101    );
102}