objc2_ui_kit/generated/
UIListContentConfiguration.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(NSObject))]
18 #[thread_kind = MainThreadOnly]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct UIListContentConfiguration;
21);
22
23unsafe impl NSCoding for UIListContentConfiguration {}
24
25unsafe impl NSCopying for UIListContentConfiguration {}
26
27unsafe impl CopyingHelper for UIListContentConfiguration {
28 type Result = Self;
29}
30
31unsafe impl NSObjectProtocol for UIListContentConfiguration {}
32
33unsafe impl NSSecureCoding for UIListContentConfiguration {}
34
35#[cfg(feature = "UIContentConfiguration")]
36unsafe impl UIContentConfiguration for UIListContentConfiguration {}
37
38impl UIListContentConfiguration {
39 extern_methods!(
40 #[unsafe(method(cellConfiguration))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn cellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
47
48 #[unsafe(method(subtitleCellConfiguration))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn subtitleCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
55
56 #[unsafe(method(valueCellConfiguration))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn valueCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
63
64 #[unsafe(method(headerConfiguration))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn headerConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
70
71 #[unsafe(method(footerConfiguration))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn footerConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
77
78 #[unsafe(method(prominentInsetGroupedHeaderConfiguration))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn prominentInsetGroupedHeaderConfiguration(
82 mtm: MainThreadMarker,
83 ) -> Retained<Self>;
84
85 #[unsafe(method(extraProminentInsetGroupedHeaderConfiguration))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn extraProminentInsetGroupedHeaderConfiguration(
89 mtm: MainThreadMarker,
90 ) -> Retained<Self>;
91
92 #[unsafe(method(accompaniedSidebarCellConfiguration))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn accompaniedSidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
96
97 #[unsafe(method(accompaniedSidebarSubtitleCellConfiguration))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn accompaniedSidebarSubtitleCellConfiguration(
101 mtm: MainThreadMarker,
102 ) -> Retained<Self>;
103
104 #[unsafe(method(new))]
105 #[unsafe(method_family = new)]
106 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
107
108 #[unsafe(method(init))]
109 #[unsafe(method_family = init)]
110 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
111
112 #[cfg(feature = "UIImage")]
113 #[unsafe(method(image))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn image(&self) -> Option<Retained<UIImage>>;
117
118 #[cfg(feature = "UIImage")]
119 #[unsafe(method(setImage:))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn setImage(&self, image: Option<&UIImage>);
123
124 #[cfg(feature = "UIListContentImageProperties")]
125 #[unsafe(method(imageProperties))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn imageProperties(&self) -> Retained<UIListContentImageProperties>;
129
130 #[unsafe(method(text))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn text(&self) -> Option<Retained<NSString>>;
134
135 #[unsafe(method(setText:))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn setText(&self, text: Option<&NSString>);
139
140 #[unsafe(method(attributedText))]
142 #[unsafe(method_family = none)]
143 pub unsafe fn attributedText(&self) -> Option<Retained<NSAttributedString>>;
144
145 #[unsafe(method(setAttributedText:))]
147 #[unsafe(method_family = none)]
148 pub unsafe fn setAttributedText(&self, attributed_text: Option<&NSAttributedString>);
149
150 #[cfg(feature = "UIListContentTextProperties")]
151 #[unsafe(method(textProperties))]
153 #[unsafe(method_family = none)]
154 pub unsafe fn textProperties(&self) -> Retained<UIListContentTextProperties>;
155
156 #[unsafe(method(secondaryText))]
158 #[unsafe(method_family = none)]
159 pub unsafe fn secondaryText(&self) -> Option<Retained<NSString>>;
160
161 #[unsafe(method(setSecondaryText:))]
163 #[unsafe(method_family = none)]
164 pub unsafe fn setSecondaryText(&self, secondary_text: Option<&NSString>);
165
166 #[unsafe(method(secondaryAttributedText))]
168 #[unsafe(method_family = none)]
169 pub unsafe fn secondaryAttributedText(&self) -> Option<Retained<NSAttributedString>>;
170
171 #[unsafe(method(setSecondaryAttributedText:))]
173 #[unsafe(method_family = none)]
174 pub unsafe fn setSecondaryAttributedText(
175 &self,
176 secondary_attributed_text: Option<&NSAttributedString>,
177 );
178
179 #[cfg(feature = "UIListContentTextProperties")]
180 #[unsafe(method(secondaryTextProperties))]
182 #[unsafe(method_family = none)]
183 pub unsafe fn secondaryTextProperties(&self) -> Retained<UIListContentTextProperties>;
184
185 #[cfg(feature = "UIGeometry")]
186 #[unsafe(method(axesPreservingSuperviewLayoutMargins))]
188 #[unsafe(method_family = none)]
189 pub unsafe fn axesPreservingSuperviewLayoutMargins(&self) -> UIAxis;
190
191 #[cfg(feature = "UIGeometry")]
192 #[unsafe(method(setAxesPreservingSuperviewLayoutMargins:))]
194 #[unsafe(method_family = none)]
195 pub unsafe fn setAxesPreservingSuperviewLayoutMargins(
196 &self,
197 axes_preserving_superview_layout_margins: UIAxis,
198 );
199
200 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
201 #[unsafe(method(directionalLayoutMargins))]
203 #[unsafe(method_family = none)]
204 pub unsafe fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets;
205
206 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
207 #[unsafe(method(setDirectionalLayoutMargins:))]
209 #[unsafe(method_family = none)]
210 pub unsafe fn setDirectionalLayoutMargins(
211 &self,
212 directional_layout_margins: NSDirectionalEdgeInsets,
213 );
214
215 #[unsafe(method(prefersSideBySideTextAndSecondaryText))]
217 #[unsafe(method_family = none)]
218 pub unsafe fn prefersSideBySideTextAndSecondaryText(&self) -> bool;
219
220 #[unsafe(method(setPrefersSideBySideTextAndSecondaryText:))]
222 #[unsafe(method_family = none)]
223 pub unsafe fn setPrefersSideBySideTextAndSecondaryText(
224 &self,
225 prefers_side_by_side_text_and_secondary_text: bool,
226 );
227
228 #[cfg(feature = "objc2-core-foundation")]
229 #[unsafe(method(imageToTextPadding))]
231 #[unsafe(method_family = none)]
232 pub unsafe fn imageToTextPadding(&self) -> CGFloat;
233
234 #[cfg(feature = "objc2-core-foundation")]
235 #[unsafe(method(setImageToTextPadding:))]
237 #[unsafe(method_family = none)]
238 pub unsafe fn setImageToTextPadding(&self, image_to_text_padding: CGFloat);
239
240 #[cfg(feature = "objc2-core-foundation")]
241 #[unsafe(method(textToSecondaryTextHorizontalPadding))]
243 #[unsafe(method_family = none)]
244 pub unsafe fn textToSecondaryTextHorizontalPadding(&self) -> CGFloat;
245
246 #[cfg(feature = "objc2-core-foundation")]
247 #[unsafe(method(setTextToSecondaryTextHorizontalPadding:))]
249 #[unsafe(method_family = none)]
250 pub unsafe fn setTextToSecondaryTextHorizontalPadding(
251 &self,
252 text_to_secondary_text_horizontal_padding: CGFloat,
253 );
254
255 #[cfg(feature = "objc2-core-foundation")]
256 #[unsafe(method(textToSecondaryTextVerticalPadding))]
258 #[unsafe(method_family = none)]
259 pub unsafe fn textToSecondaryTextVerticalPadding(&self) -> CGFloat;
260
261 #[cfg(feature = "objc2-core-foundation")]
262 #[unsafe(method(setTextToSecondaryTextVerticalPadding:))]
264 #[unsafe(method_family = none)]
265 pub unsafe fn setTextToSecondaryTextVerticalPadding(
266 &self,
267 text_to_secondary_text_vertical_padding: CGFloat,
268 );
269
270 #[cfg(feature = "objc2-core-foundation")]
271 #[unsafe(method(alpha))]
273 #[unsafe(method_family = none)]
274 pub unsafe fn alpha(&self) -> CGFloat;
275
276 #[cfg(feature = "objc2-core-foundation")]
277 #[unsafe(method(setAlpha:))]
279 #[unsafe(method_family = none)]
280 pub unsafe fn setAlpha(&self, alpha: CGFloat);
281
282 #[deprecated]
284 #[unsafe(method(sidebarCellConfiguration))]
285 #[unsafe(method_family = none)]
286 pub unsafe fn sidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
287
288 #[deprecated]
290 #[unsafe(method(sidebarSubtitleCellConfiguration))]
291 #[unsafe(method_family = none)]
292 pub unsafe fn sidebarSubtitleCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
293
294 #[deprecated]
296 #[unsafe(method(plainHeaderConfiguration))]
297 #[unsafe(method_family = none)]
298 pub unsafe fn plainHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
299
300 #[deprecated]
302 #[unsafe(method(plainFooterConfiguration))]
303 #[unsafe(method_family = none)]
304 pub unsafe fn plainFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
305
306 #[deprecated]
308 #[unsafe(method(groupedHeaderConfiguration))]
309 #[unsafe(method_family = none)]
310 pub unsafe fn groupedHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
311
312 #[deprecated]
314 #[unsafe(method(groupedFooterConfiguration))]
315 #[unsafe(method_family = none)]
316 pub unsafe fn groupedFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
317
318 #[deprecated]
320 #[unsafe(method(sidebarHeaderConfiguration))]
321 #[unsafe(method_family = none)]
322 pub unsafe fn sidebarHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
323 );
324}
325
326extern_class!(
327 #[unsafe(super(UIView, UIResponder, NSObject))]
329 #[thread_kind = MainThreadOnly]
330 #[derive(Debug, PartialEq, Eq, Hash)]
331 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
332 pub struct UIListContentView;
333);
334
335#[cfg(all(
336 feature = "UIResponder",
337 feature = "UIView",
338 feature = "objc2-quartz-core"
339))]
340#[cfg(not(target_os = "watchos"))]
341unsafe impl CALayerDelegate for UIListContentView {}
342
343#[cfg(all(feature = "UIResponder", feature = "UIView"))]
344unsafe impl NSCoding for UIListContentView {}
345
346#[cfg(all(feature = "UIResponder", feature = "UIView"))]
347unsafe impl NSObjectProtocol for UIListContentView {}
348
349#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
350unsafe impl UIAppearance for UIListContentView {}
351
352#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
353unsafe impl UIAppearanceContainer for UIListContentView {}
354
355#[cfg(all(
356 feature = "UIContentConfiguration",
357 feature = "UIResponder",
358 feature = "UIView"
359))]
360unsafe impl UIContentView for UIListContentView {}
361
362#[cfg(all(feature = "UIResponder", feature = "UIView"))]
363unsafe impl UICoordinateSpace for UIListContentView {}
364
365#[cfg(all(
366 feature = "UIDynamicBehavior",
367 feature = "UIResponder",
368 feature = "UIView"
369))]
370unsafe impl UIDynamicItem for UIListContentView {}
371
372#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
373unsafe impl UIFocusEnvironment for UIListContentView {}
374
375#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
376unsafe impl UIFocusItem for UIListContentView {}
377
378#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
379unsafe impl UIFocusItemContainer for UIListContentView {}
380
381#[cfg(all(feature = "UIResponder", feature = "UIView"))]
382unsafe impl UIResponderStandardEditActions for UIListContentView {}
383
384#[cfg(all(
385 feature = "UIResponder",
386 feature = "UITraitCollection",
387 feature = "UIView"
388))]
389unsafe impl UITraitEnvironment for UIListContentView {}
390
391#[cfg(all(feature = "UIResponder", feature = "UIView"))]
392impl UIListContentView {
393 extern_methods!(
394 #[unsafe(method(initWithConfiguration:))]
395 #[unsafe(method_family = init)]
396 pub unsafe fn initWithConfiguration(
397 this: Allocated<Self>,
398 configuration: &UIListContentConfiguration,
399 ) -> Retained<Self>;
400
401 #[unsafe(method(initWithCoder:))]
402 #[unsafe(method_family = init)]
403 pub unsafe fn initWithCoder(
404 this: Allocated<Self>,
405 coder: &NSCoder,
406 ) -> Option<Retained<Self>>;
407
408 #[cfg(feature = "objc2-core-foundation")]
409 #[unsafe(method(initWithFrame:))]
410 #[unsafe(method_family = init)]
411 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
412
413 #[unsafe(method(init))]
414 #[unsafe(method_family = init)]
415 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
416
417 #[unsafe(method(new))]
418 #[unsafe(method_family = new)]
419 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
420
421 #[unsafe(method(configuration))]
422 #[unsafe(method_family = none)]
423 pub unsafe fn configuration(&self) -> Retained<UIListContentConfiguration>;
424
425 #[unsafe(method(setConfiguration:))]
427 #[unsafe(method_family = none)]
428 pub unsafe fn setConfiguration(&self, configuration: &UIListContentConfiguration);
429
430 #[cfg(feature = "UILayoutGuide")]
431 #[unsafe(method(textLayoutGuide))]
436 #[unsafe(method_family = none)]
437 pub unsafe fn textLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
438
439 #[cfg(feature = "UILayoutGuide")]
440 #[unsafe(method(secondaryTextLayoutGuide))]
445 #[unsafe(method_family = none)]
446 pub unsafe fn secondaryTextLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
447
448 #[cfg(feature = "UILayoutGuide")]
449 #[unsafe(method(imageLayoutGuide))]
454 #[unsafe(method_family = none)]
455 pub unsafe fn imageLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
456 );
457}