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"))]
20unsafe impl NSCoding for UITableViewController {}
21
22#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
23unsafe impl NSObjectProtocol for UITableViewController {}
24
25#[cfg(all(
26 feature = "UIAppearance",
27 feature = "UIResponder",
28 feature = "UIViewController"
29))]
30unsafe impl UIAppearanceContainer for UITableViewController {}
31
32#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
33unsafe impl UIContentContainer for UITableViewController {}
34
35#[cfg(all(
36 feature = "UIFocus",
37 feature = "UIResponder",
38 feature = "UIViewController"
39))]
40unsafe impl UIFocusEnvironment for UITableViewController {}
41
42#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
43unsafe impl UIResponderStandardEditActions for UITableViewController {}
44
45#[cfg(all(
46 feature = "UIResponder",
47 feature = "UIScrollView",
48 feature = "UIViewController"
49))]
50unsafe impl UIScrollViewDelegate for UITableViewController {}
51
52#[cfg(all(
53 feature = "UIResponder",
54 feature = "UITableView",
55 feature = "UIViewController"
56))]
57unsafe impl UITableViewDataSource for UITableViewController {}
58
59#[cfg(all(
60 feature = "UIResponder",
61 feature = "UIScrollView",
62 feature = "UITableView",
63 feature = "UIViewController"
64))]
65unsafe impl UITableViewDelegate for UITableViewController {}
66
67#[cfg(all(
68 feature = "UIResponder",
69 feature = "UITraitCollection",
70 feature = "UIViewController"
71))]
72unsafe impl UITraitEnvironment for UITableViewController {}
73
74#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
75impl UITableViewController {
76 extern_methods!(
77 #[cfg(feature = "UITableView")]
78 #[unsafe(method(initWithStyle:))]
79 #[unsafe(method_family = init)]
80 pub unsafe fn initWithStyle(
81 this: Allocated<Self>,
82 style: UITableViewStyle,
83 ) -> Retained<Self>;
84
85 #[unsafe(method(initWithNibName:bundle:))]
86 #[unsafe(method_family = init)]
87 pub unsafe fn initWithNibName_bundle(
88 this: Allocated<Self>,
89 nib_name_or_nil: Option<&NSString>,
90 nib_bundle_or_nil: Option<&NSBundle>,
91 ) -> Retained<Self>;
92
93 #[unsafe(method(initWithCoder:))]
94 #[unsafe(method_family = init)]
95 pub unsafe fn initWithCoder(
96 this: Allocated<Self>,
97 coder: &NSCoder,
98 ) -> Option<Retained<Self>>;
99
100 #[cfg(all(feature = "UIScrollView", feature = "UITableView", feature = "UIView"))]
101 #[unsafe(method(tableView))]
102 #[unsafe(method_family = none)]
103 pub unsafe fn tableView(&self) -> Option<Retained<UITableView>>;
104
105 #[cfg(all(feature = "UIScrollView", feature = "UITableView", feature = "UIView"))]
106 #[unsafe(method(setTableView:))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn setTableView(&self, table_view: Option<&UITableView>);
110
111 #[unsafe(method(clearsSelectionOnViewWillAppear))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn clearsSelectionOnViewWillAppear(&self) -> bool;
114
115 #[unsafe(method(setClearsSelectionOnViewWillAppear:))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn setClearsSelectionOnViewWillAppear(
119 &self,
120 clears_selection_on_view_will_appear: bool,
121 );
122
123 #[cfg(all(
124 feature = "UIControl",
125 feature = "UIRefreshControl",
126 feature = "UIView"
127 ))]
128 #[unsafe(method(refreshControl))]
129 #[unsafe(method_family = none)]
130 pub unsafe fn refreshControl(&self) -> Option<Retained<UIRefreshControl>>;
131
132 #[cfg(all(
133 feature = "UIControl",
134 feature = "UIRefreshControl",
135 feature = "UIView"
136 ))]
137 #[unsafe(method(setRefreshControl:))]
139 #[unsafe(method_family = none)]
140 pub unsafe fn setRefreshControl(&self, refresh_control: Option<&UIRefreshControl>);
141 );
142}
143
144#[cfg(all(feature = "UIResponder", feature = "UIViewController"))]
146impl UITableViewController {
147 extern_methods!(
148 #[unsafe(method(init))]
149 #[unsafe(method_family = init)]
150 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
151
152 #[unsafe(method(new))]
153 #[unsafe(method_family = new)]
154 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
155 );
156}