objc2_ui_kit/generated/
UICollectionViewListCell.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9#[cfg(feature = "objc2-quartz-core")]
10#[cfg(not(target_os = "watchos"))]
11use objc2_quartz_core::*;
12
13use crate::*;
14
15extern_class!(
16 #[unsafe(super(
18 UICollectionViewCell,
19 UICollectionReusableView,
20 UIView,
21 UIResponder,
22 NSObject
23 ))]
24 #[thread_kind = MainThreadOnly]
25 #[derive(Debug, PartialEq, Eq, Hash)]
26 #[cfg(all(
27 feature = "UICollectionViewCell",
28 feature = "UIResponder",
29 feature = "UIView"
30 ))]
31 pub struct UICollectionViewListCell;
32);
33
34#[cfg(all(
35 feature = "UICollectionViewCell",
36 feature = "UIResponder",
37 feature = "UIView",
38 feature = "objc2-quartz-core"
39))]
40#[cfg(not(target_os = "watchos"))]
41unsafe impl CALayerDelegate for UICollectionViewListCell {}
42
43#[cfg(all(
44 feature = "UICollectionViewCell",
45 feature = "UIResponder",
46 feature = "UIView"
47))]
48unsafe impl NSCoding for UICollectionViewListCell {}
49
50#[cfg(all(
51 feature = "UICollectionViewCell",
52 feature = "UIResponder",
53 feature = "UIView"
54))]
55unsafe impl NSObjectProtocol for UICollectionViewListCell {}
56
57#[cfg(all(
58 feature = "UIAppearance",
59 feature = "UICollectionViewCell",
60 feature = "UIResponder",
61 feature = "UIView"
62))]
63unsafe impl UIAppearance for UICollectionViewListCell {}
64
65#[cfg(all(
66 feature = "UIAppearance",
67 feature = "UICollectionViewCell",
68 feature = "UIResponder",
69 feature = "UIView"
70))]
71unsafe impl UIAppearanceContainer for UICollectionViewListCell {}
72
73#[cfg(all(
74 feature = "UICollectionViewCell",
75 feature = "UIResponder",
76 feature = "UIView"
77))]
78unsafe impl UICoordinateSpace for UICollectionViewListCell {}
79
80#[cfg(all(
81 feature = "UICollectionViewCell",
82 feature = "UIDynamicBehavior",
83 feature = "UIResponder",
84 feature = "UIView"
85))]
86unsafe impl UIDynamicItem for UICollectionViewListCell {}
87
88#[cfg(all(
89 feature = "UICollectionViewCell",
90 feature = "UIFocus",
91 feature = "UIResponder",
92 feature = "UIView"
93))]
94unsafe impl UIFocusEnvironment for UICollectionViewListCell {}
95
96#[cfg(all(
97 feature = "UICollectionViewCell",
98 feature = "UIFocus",
99 feature = "UIResponder",
100 feature = "UIView"
101))]
102unsafe impl UIFocusItem for UICollectionViewListCell {}
103
104#[cfg(all(
105 feature = "UICollectionViewCell",
106 feature = "UIFocus",
107 feature = "UIResponder",
108 feature = "UIView"
109))]
110unsafe impl UIFocusItemContainer for UICollectionViewListCell {}
111
112#[cfg(all(
113 feature = "UICollectionViewCell",
114 feature = "UIResponder",
115 feature = "UIView"
116))]
117unsafe impl UIResponderStandardEditActions for UICollectionViewListCell {}
118
119#[cfg(all(
120 feature = "UICollectionViewCell",
121 feature = "UIResponder",
122 feature = "UITraitCollection",
123 feature = "UIView"
124))]
125unsafe impl UITraitEnvironment for UICollectionViewListCell {}
126
127#[cfg(all(
128 feature = "UICollectionViewCell",
129 feature = "UIResponder",
130 feature = "UIView"
131))]
132impl UICollectionViewListCell {
133 extern_methods!(
134 #[cfg(feature = "UIListContentConfiguration")]
135 #[unsafe(method(defaultContentConfiguration))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn defaultContentConfiguration(&self) -> Retained<UIListContentConfiguration>;
139
140 #[unsafe(method(indentationLevel))]
142 #[unsafe(method_family = none)]
143 pub unsafe fn indentationLevel(&self) -> NSInteger;
144
145 #[unsafe(method(setIndentationLevel:))]
147 #[unsafe(method_family = none)]
148 pub unsafe fn setIndentationLevel(&self, indentation_level: NSInteger);
149
150 #[cfg(feature = "objc2-core-foundation")]
151 #[unsafe(method(indentationWidth))]
153 #[unsafe(method_family = none)]
154 pub unsafe fn indentationWidth(&self) -> CGFloat;
155
156 #[cfg(feature = "objc2-core-foundation")]
157 #[unsafe(method(setIndentationWidth:))]
159 #[unsafe(method_family = none)]
160 pub unsafe fn setIndentationWidth(&self, indentation_width: CGFloat);
161
162 #[unsafe(method(indentsAccessories))]
165 #[unsafe(method_family = none)]
166 pub unsafe fn indentsAccessories(&self) -> bool;
167
168 #[unsafe(method(setIndentsAccessories:))]
170 #[unsafe(method_family = none)]
171 pub unsafe fn setIndentsAccessories(&self, indents_accessories: bool);
172
173 #[cfg(feature = "UICellAccessory")]
174 #[unsafe(method(accessories))]
177 #[unsafe(method_family = none)]
178 pub unsafe fn accessories(&self) -> Retained<NSArray<UICellAccessory>>;
179
180 #[cfg(feature = "UICellAccessory")]
181 #[unsafe(method(setAccessories:))]
183 #[unsafe(method_family = none)]
184 pub unsafe fn setAccessories(&self, accessories: &NSArray<UICellAccessory>);
185
186 #[cfg(feature = "UILayoutGuide")]
187 #[unsafe(method(separatorLayoutGuide))]
194 #[unsafe(method_family = none)]
195 pub unsafe fn separatorLayoutGuide(&self) -> Retained<UILayoutGuide>;
196 );
197}
198
199#[cfg(all(
201 feature = "UICollectionViewCell",
202 feature = "UIResponder",
203 feature = "UIView"
204))]
205impl UICollectionViewListCell {
206 extern_methods!(
207 #[cfg(feature = "objc2-core-foundation")]
208 #[unsafe(method(initWithFrame:))]
209 #[unsafe(method_family = init)]
210 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
211
212 #[unsafe(method(initWithCoder:))]
213 #[unsafe(method_family = init)]
214 pub unsafe fn initWithCoder(
215 this: Allocated<Self>,
216 coder: &NSCoder,
217 ) -> Option<Retained<Self>>;
218 );
219}
220
221#[cfg(all(
223 feature = "UICollectionViewCell",
224 feature = "UIResponder",
225 feature = "UIView"
226))]
227impl UICollectionViewListCell {
228 extern_methods!(
229 #[unsafe(method(init))]
230 #[unsafe(method_family = init)]
231 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
232
233 #[unsafe(method(new))]
234 #[unsafe(method_family = new)]
235 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
236 );
237}