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
23extern_conformance!(
24 unsafe impl NSCoding for UIListContentConfiguration {}
25);
26
27extern_conformance!(
28 unsafe impl NSCopying for UIListContentConfiguration {}
29);
30
31unsafe impl CopyingHelper for UIListContentConfiguration {
32 type Result = Self;
33}
34
35extern_conformance!(
36 unsafe impl NSObjectProtocol for UIListContentConfiguration {}
37);
38
39extern_conformance!(
40 unsafe impl NSSecureCoding for UIListContentConfiguration {}
41);
42
43#[cfg(feature = "UIContentConfiguration")]
44extern_conformance!(
45 unsafe impl UIContentConfiguration for UIListContentConfiguration {}
46);
47
48impl UIListContentConfiguration {
49 extern_methods!(
50 #[unsafe(method(cellConfiguration))]
55 #[unsafe(method_family = none)]
56 pub fn cellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
57
58 #[unsafe(method(subtitleCellConfiguration))]
63 #[unsafe(method_family = none)]
64 pub fn subtitleCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
65
66 #[unsafe(method(valueCellConfiguration))]
71 #[unsafe(method_family = none)]
72 pub fn valueCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
73
74 #[unsafe(method(headerConfiguration))]
78 #[unsafe(method_family = none)]
79 pub fn headerConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
80
81 #[unsafe(method(footerConfiguration))]
85 #[unsafe(method_family = none)]
86 pub fn footerConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
87
88 #[unsafe(method(prominentInsetGroupedHeaderConfiguration))]
90 #[unsafe(method_family = none)]
91 pub fn prominentInsetGroupedHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
92
93 #[unsafe(method(extraProminentInsetGroupedHeaderConfiguration))]
95 #[unsafe(method_family = none)]
96 pub fn extraProminentInsetGroupedHeaderConfiguration(
97 mtm: MainThreadMarker,
98 ) -> Retained<Self>;
99
100 #[unsafe(method(accompaniedSidebarCellConfiguration))]
102 #[unsafe(method_family = none)]
103 pub fn accompaniedSidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
104
105 #[unsafe(method(accompaniedSidebarSubtitleCellConfiguration))]
107 #[unsafe(method_family = none)]
108 pub fn accompaniedSidebarSubtitleCellConfiguration(mtm: MainThreadMarker)
109 -> Retained<Self>;
110
111 #[unsafe(method(new))]
112 #[unsafe(method_family = new)]
113 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
114
115 #[unsafe(method(init))]
116 #[unsafe(method_family = init)]
117 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
118
119 #[cfg(feature = "UIImage")]
120 #[unsafe(method(image))]
122 #[unsafe(method_family = none)]
123 pub fn image(&self) -> Option<Retained<UIImage>>;
124
125 #[cfg(feature = "UIImage")]
126 #[unsafe(method(setImage:))]
128 #[unsafe(method_family = none)]
129 pub fn setImage(&self, image: Option<&UIImage>);
130
131 #[cfg(feature = "UIListContentImageProperties")]
132 #[unsafe(method(imageProperties))]
134 #[unsafe(method_family = none)]
135 pub fn imageProperties(&self) -> Retained<UIListContentImageProperties>;
136
137 #[unsafe(method(text))]
139 #[unsafe(method_family = none)]
140 pub fn text(&self) -> Option<Retained<NSString>>;
141
142 #[unsafe(method(setText:))]
146 #[unsafe(method_family = none)]
147 pub fn setText(&self, text: Option<&NSString>);
148
149 #[unsafe(method(attributedText))]
151 #[unsafe(method_family = none)]
152 pub fn attributedText(&self) -> Option<Retained<NSAttributedString>>;
153
154 #[unsafe(method(setAttributedText:))]
158 #[unsafe(method_family = none)]
159 pub fn setAttributedText(&self, attributed_text: Option<&NSAttributedString>);
160
161 #[cfg(feature = "UIListContentTextProperties")]
162 #[unsafe(method(textProperties))]
164 #[unsafe(method_family = none)]
165 pub fn textProperties(&self) -> Retained<UIListContentTextProperties>;
166
167 #[unsafe(method(secondaryText))]
169 #[unsafe(method_family = none)]
170 pub fn secondaryText(&self) -> Option<Retained<NSString>>;
171
172 #[unsafe(method(setSecondaryText:))]
176 #[unsafe(method_family = none)]
177 pub fn setSecondaryText(&self, secondary_text: Option<&NSString>);
178
179 #[unsafe(method(secondaryAttributedText))]
181 #[unsafe(method_family = none)]
182 pub fn secondaryAttributedText(&self) -> Option<Retained<NSAttributedString>>;
183
184 #[unsafe(method(setSecondaryAttributedText:))]
188 #[unsafe(method_family = none)]
189 pub fn setSecondaryAttributedText(
190 &self,
191 secondary_attributed_text: Option<&NSAttributedString>,
192 );
193
194 #[cfg(feature = "UIListContentTextProperties")]
195 #[unsafe(method(secondaryTextProperties))]
197 #[unsafe(method_family = none)]
198 pub fn secondaryTextProperties(&self) -> Retained<UIListContentTextProperties>;
199
200 #[cfg(feature = "UIGeometry")]
201 #[unsafe(method(axesPreservingSuperviewLayoutMargins))]
203 #[unsafe(method_family = none)]
204 pub fn axesPreservingSuperviewLayoutMargins(&self) -> UIAxis;
205
206 #[cfg(feature = "UIGeometry")]
207 #[unsafe(method(setAxesPreservingSuperviewLayoutMargins:))]
209 #[unsafe(method_family = none)]
210 pub fn setAxesPreservingSuperviewLayoutMargins(
211 &self,
212 axes_preserving_superview_layout_margins: UIAxis,
213 );
214
215 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
216 #[unsafe(method(directionalLayoutMargins))]
218 #[unsafe(method_family = none)]
219 pub fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets;
220
221 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
222 #[unsafe(method(setDirectionalLayoutMargins:))]
224 #[unsafe(method_family = none)]
225 pub fn setDirectionalLayoutMargins(
226 &self,
227 directional_layout_margins: NSDirectionalEdgeInsets,
228 );
229
230 #[unsafe(method(prefersSideBySideTextAndSecondaryText))]
232 #[unsafe(method_family = none)]
233 pub fn prefersSideBySideTextAndSecondaryText(&self) -> bool;
234
235 #[unsafe(method(setPrefersSideBySideTextAndSecondaryText:))]
237 #[unsafe(method_family = none)]
238 pub fn setPrefersSideBySideTextAndSecondaryText(
239 &self,
240 prefers_side_by_side_text_and_secondary_text: bool,
241 );
242
243 #[cfg(feature = "objc2-core-foundation")]
244 #[unsafe(method(imageToTextPadding))]
246 #[unsafe(method_family = none)]
247 pub fn imageToTextPadding(&self) -> CGFloat;
248
249 #[cfg(feature = "objc2-core-foundation")]
250 #[unsafe(method(setImageToTextPadding:))]
252 #[unsafe(method_family = none)]
253 pub fn setImageToTextPadding(&self, image_to_text_padding: CGFloat);
254
255 #[cfg(feature = "objc2-core-foundation")]
256 #[unsafe(method(textToSecondaryTextHorizontalPadding))]
258 #[unsafe(method_family = none)]
259 pub fn textToSecondaryTextHorizontalPadding(&self) -> CGFloat;
260
261 #[cfg(feature = "objc2-core-foundation")]
262 #[unsafe(method(setTextToSecondaryTextHorizontalPadding:))]
264 #[unsafe(method_family = none)]
265 pub fn setTextToSecondaryTextHorizontalPadding(
266 &self,
267 text_to_secondary_text_horizontal_padding: CGFloat,
268 );
269
270 #[cfg(feature = "objc2-core-foundation")]
271 #[unsafe(method(textToSecondaryTextVerticalPadding))]
273 #[unsafe(method_family = none)]
274 pub fn textToSecondaryTextVerticalPadding(&self) -> CGFloat;
275
276 #[cfg(feature = "objc2-core-foundation")]
277 #[unsafe(method(setTextToSecondaryTextVerticalPadding:))]
279 #[unsafe(method_family = none)]
280 pub fn setTextToSecondaryTextVerticalPadding(
281 &self,
282 text_to_secondary_text_vertical_padding: CGFloat,
283 );
284
285 #[cfg(feature = "objc2-core-foundation")]
286 #[unsafe(method(alpha))]
288 #[unsafe(method_family = none)]
289 pub fn alpha(&self) -> CGFloat;
290
291 #[cfg(feature = "objc2-core-foundation")]
292 #[unsafe(method(setAlpha:))]
294 #[unsafe(method_family = none)]
295 pub fn setAlpha(&self, alpha: CGFloat);
296
297 #[deprecated]
299 #[unsafe(method(sidebarCellConfiguration))]
300 #[unsafe(method_family = none)]
301 pub fn sidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
302
303 #[deprecated]
305 #[unsafe(method(sidebarSubtitleCellConfiguration))]
306 #[unsafe(method_family = none)]
307 pub fn sidebarSubtitleCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
308
309 #[deprecated]
311 #[unsafe(method(plainHeaderConfiguration))]
312 #[unsafe(method_family = none)]
313 pub fn plainHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
314
315 #[deprecated]
317 #[unsafe(method(plainFooterConfiguration))]
318 #[unsafe(method_family = none)]
319 pub fn plainFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
320
321 #[deprecated]
323 #[unsafe(method(groupedHeaderConfiguration))]
324 #[unsafe(method_family = none)]
325 pub fn groupedHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
326
327 #[deprecated]
329 #[unsafe(method(groupedFooterConfiguration))]
330 #[unsafe(method_family = none)]
331 pub fn groupedFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
332
333 #[deprecated]
335 #[unsafe(method(sidebarHeaderConfiguration))]
336 #[unsafe(method_family = none)]
337 pub fn sidebarHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
338 );
339}
340
341extern_class!(
342 #[unsafe(super(UIView, UIResponder, NSObject))]
344 #[thread_kind = MainThreadOnly]
345 #[derive(Debug, PartialEq, Eq, Hash)]
346 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
347 pub struct UIListContentView;
348);
349
350#[cfg(all(
351 feature = "UIResponder",
352 feature = "UIView",
353 feature = "objc2-quartz-core"
354))]
355#[cfg(not(target_os = "watchos"))]
356extern_conformance!(
357 unsafe impl CALayerDelegate for UIListContentView {}
358);
359
360#[cfg(all(feature = "UIResponder", feature = "UIView"))]
361extern_conformance!(
362 unsafe impl NSCoding for UIListContentView {}
363);
364
365#[cfg(all(feature = "UIResponder", feature = "UIView"))]
366extern_conformance!(
367 unsafe impl NSObjectProtocol for UIListContentView {}
368);
369
370#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
371extern_conformance!(
372 unsafe impl UIAppearance for UIListContentView {}
373);
374
375#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
376extern_conformance!(
377 unsafe impl UIAppearanceContainer for UIListContentView {}
378);
379
380#[cfg(all(
381 feature = "UIContentConfiguration",
382 feature = "UIResponder",
383 feature = "UIView"
384))]
385extern_conformance!(
386 unsafe impl UIContentView for UIListContentView {}
387);
388
389#[cfg(all(feature = "UIResponder", feature = "UIView"))]
390extern_conformance!(
391 unsafe impl UICoordinateSpace for UIListContentView {}
392);
393
394#[cfg(all(
395 feature = "UIDynamicBehavior",
396 feature = "UIResponder",
397 feature = "UIView"
398))]
399extern_conformance!(
400 unsafe impl UIDynamicItem for UIListContentView {}
401);
402
403#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
404extern_conformance!(
405 unsafe impl UIFocusEnvironment for UIListContentView {}
406);
407
408#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
409extern_conformance!(
410 unsafe impl UIFocusItem for UIListContentView {}
411);
412
413#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
414extern_conformance!(
415 unsafe impl UIFocusItemContainer for UIListContentView {}
416);
417
418#[cfg(all(feature = "UIResponder", feature = "UIView"))]
419extern_conformance!(
420 unsafe impl UIResponderStandardEditActions for UIListContentView {}
421);
422
423#[cfg(all(
424 feature = "UIResponder",
425 feature = "UITraitCollection",
426 feature = "UIView"
427))]
428extern_conformance!(
429 unsafe impl UITraitEnvironment for UIListContentView {}
430);
431
432#[cfg(all(feature = "UIResponder", feature = "UIView"))]
433impl UIListContentView {
434 extern_methods!(
435 #[unsafe(method(initWithConfiguration:))]
436 #[unsafe(method_family = init)]
437 pub fn initWithConfiguration(
438 this: Allocated<Self>,
439 configuration: &UIListContentConfiguration,
440 ) -> Retained<Self>;
441
442 #[unsafe(method(initWithCoder:))]
446 #[unsafe(method_family = init)]
447 pub unsafe fn initWithCoder(
448 this: Allocated<Self>,
449 coder: &NSCoder,
450 ) -> Option<Retained<Self>>;
451
452 #[cfg(feature = "objc2-core-foundation")]
453 #[unsafe(method(initWithFrame:))]
454 #[unsafe(method_family = init)]
455 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
456
457 #[unsafe(method(init))]
458 #[unsafe(method_family = init)]
459 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
460
461 #[unsafe(method(new))]
462 #[unsafe(method_family = new)]
463 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
464
465 #[unsafe(method(configuration))]
466 #[unsafe(method_family = none)]
467 pub fn configuration(&self) -> Retained<UIListContentConfiguration>;
468
469 #[unsafe(method(setConfiguration:))]
473 #[unsafe(method_family = none)]
474 pub fn setConfiguration(&self, configuration: &UIListContentConfiguration);
475
476 #[cfg(feature = "UILayoutGuide")]
477 #[unsafe(method(textLayoutGuide))]
482 #[unsafe(method_family = none)]
483 pub fn textLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
484
485 #[cfg(feature = "UILayoutGuide")]
486 #[unsafe(method(secondaryTextLayoutGuide))]
491 #[unsafe(method_family = none)]
492 pub fn secondaryTextLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
493
494 #[cfg(feature = "UILayoutGuide")]
495 #[unsafe(method(imageLayoutGuide))]
500 #[unsafe(method_family = none)]
501 pub fn imageLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
502 );
503}