objc2_ui_kit/generated/
UITableViewController.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(UIViewController, UIResponder, NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
16 pub struct UITableViewController;
17);
18
19#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
20extern_conformance!(
21 unsafe impl NSCoding for UITableViewController {}
22);
23
24#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
25extern_conformance!(
26 unsafe impl NSObjectProtocol for UITableViewController {}
27);
28
29#[cfg(all(
30 feature = "UIAppearance",
31 feature = "UIResponder",
32 feature = "UIViewController"
33))]
34extern_conformance!(
35 unsafe impl UIAppearanceContainer for UITableViewController {}
36);
37
38#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
39extern_conformance!(
40 unsafe impl UIContentContainer for UITableViewController {}
41);
42
43#[cfg(all(
44 feature = "UIFocus",
45 feature = "UIResponder",
46 feature = "UIViewController"
47))]
48extern_conformance!(
49 unsafe impl UIFocusEnvironment for UITableViewController {}
50);
51
52#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
53extern_conformance!(
54 unsafe impl UIResponderStandardEditActions for UITableViewController {}
55);
56
57#[cfg(all(
58 feature = "UIResponder",
59 feature = "UIScrollView",
60 feature = "UIViewController"
61))]
62extern_conformance!(
63 unsafe impl UIScrollViewDelegate for UITableViewController {}
64);
65
66#[cfg(all(
67 feature = "UIResponder",
68 feature = "UITableView",
69 feature = "UIViewController"
70))]
71extern_conformance!(
72 unsafe impl UITableViewDataSource for UITableViewController {}
73);
74
75#[cfg(all(
76 feature = "UIResponder",
77 feature = "UIScrollView",
78 feature = "UITableView",
79 feature = "UIViewController"
80))]
81extern_conformance!(
82 unsafe impl UITableViewDelegate for UITableViewController {}
83);
84
85#[cfg(all(
86 feature = "UIResponder",
87 feature = "UITraitCollection",
88 feature = "UIViewController"
89))]
90extern_conformance!(
91 unsafe impl UITraitEnvironment for UITableViewController {}
92);
93
94#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
95impl UITableViewController {
96 extern_methods!(
97 #[cfg(feature = "UITableView")]
98 #[unsafe(method(initWithStyle:))]
99 #[unsafe(method_family = init)]
100 pub fn initWithStyle(this: Allocated<Self>, style: UITableViewStyle) -> Retained<Self>;
101
102 #[unsafe(method(initWithNibName:bundle:))]
103 #[unsafe(method_family = init)]
104 pub fn initWithNibName_bundle(
105 this: Allocated<Self>,
106 nib_name_or_nil: Option<&NSString>,
107 nib_bundle_or_nil: Option<&NSBundle>,
108 ) -> Retained<Self>;
109
110 #[unsafe(method(initWithCoder:))]
114 #[unsafe(method_family = init)]
115 pub unsafe fn initWithCoder(
116 this: Allocated<Self>,
117 coder: &NSCoder,
118 ) -> Option<Retained<Self>>;
119
120 #[cfg(all(feature = "UIScrollView", feature = "UITableView", feature = "UIView"))]
121 #[unsafe(method(tableView))]
122 #[unsafe(method_family = none)]
123 pub fn tableView(&self) -> Option<Retained<UITableView>>;
124
125 #[cfg(all(feature = "UIScrollView", feature = "UITableView", feature = "UIView"))]
126 #[unsafe(method(setTableView:))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn setTableView(&self, table_view: Option<&UITableView>);
134
135 #[unsafe(method(clearsSelectionOnViewWillAppear))]
136 #[unsafe(method_family = none)]
137 pub fn clearsSelectionOnViewWillAppear(&self) -> bool;
138
139 #[unsafe(method(setClearsSelectionOnViewWillAppear:))]
141 #[unsafe(method_family = none)]
142 pub fn setClearsSelectionOnViewWillAppear(
143 &self,
144 clears_selection_on_view_will_appear: bool,
145 );
146
147 #[cfg(all(
148 feature = "UIControl",
149 feature = "UIRefreshControl",
150 feature = "UIView"
151 ))]
152 #[unsafe(method(refreshControl))]
153 #[unsafe(method_family = none)]
154 pub fn refreshControl(&self) -> Option<Retained<UIRefreshControl>>;
155
156 #[cfg(all(
157 feature = "UIControl",
158 feature = "UIRefreshControl",
159 feature = "UIView"
160 ))]
161 #[unsafe(method(setRefreshControl:))]
163 #[unsafe(method_family = none)]
164 pub fn setRefreshControl(&self, refresh_control: Option<&UIRefreshControl>);
165 );
166}
167
168#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
170impl UITableViewController {
171 extern_methods!(
172 #[unsafe(method(init))]
173 #[unsafe(method_family = init)]
174 pub fn init(this: Allocated<Self>) -> Retained<Self>;
175
176 #[unsafe(method(new))]
177 #[unsafe(method_family = new)]
178 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
179 );
180}