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 unsafe fn cellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
57
58 #[unsafe(method(subtitleCellConfiguration))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn subtitleCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
65
66 #[unsafe(method(valueCellConfiguration))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn valueCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
73
74 #[unsafe(method(headerConfiguration))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn headerConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
80
81 #[unsafe(method(footerConfiguration))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn footerConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
87
88 #[unsafe(method(prominentInsetGroupedHeaderConfiguration))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn prominentInsetGroupedHeaderConfiguration(
92 mtm: MainThreadMarker,
93 ) -> Retained<Self>;
94
95 #[unsafe(method(extraProminentInsetGroupedHeaderConfiguration))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn extraProminentInsetGroupedHeaderConfiguration(
99 mtm: MainThreadMarker,
100 ) -> Retained<Self>;
101
102 #[unsafe(method(accompaniedSidebarCellConfiguration))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn accompaniedSidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
106
107 #[unsafe(method(accompaniedSidebarSubtitleCellConfiguration))]
109 #[unsafe(method_family = none)]
110 pub unsafe fn accompaniedSidebarSubtitleCellConfiguration(
111 mtm: MainThreadMarker,
112 ) -> Retained<Self>;
113
114 #[unsafe(method(new))]
115 #[unsafe(method_family = new)]
116 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
117
118 #[unsafe(method(init))]
119 #[unsafe(method_family = init)]
120 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
121
122 #[cfg(feature = "UIImage")]
123 #[unsafe(method(image))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn image(&self) -> Option<Retained<UIImage>>;
127
128 #[cfg(feature = "UIImage")]
129 #[unsafe(method(setImage:))]
131 #[unsafe(method_family = none)]
132 pub unsafe fn setImage(&self, image: Option<&UIImage>);
133
134 #[cfg(feature = "UIListContentImageProperties")]
135 #[unsafe(method(imageProperties))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn imageProperties(&self) -> Retained<UIListContentImageProperties>;
139
140 #[unsafe(method(text))]
142 #[unsafe(method_family = none)]
143 pub unsafe fn text(&self) -> Option<Retained<NSString>>;
144
145 #[unsafe(method(setText:))]
147 #[unsafe(method_family = none)]
148 pub unsafe fn setText(&self, text: Option<&NSString>);
149
150 #[unsafe(method(attributedText))]
152 #[unsafe(method_family = none)]
153 pub unsafe fn attributedText(&self) -> Option<Retained<NSAttributedString>>;
154
155 #[unsafe(method(setAttributedText:))]
157 #[unsafe(method_family = none)]
158 pub unsafe fn setAttributedText(&self, attributed_text: Option<&NSAttributedString>);
159
160 #[cfg(feature = "UIListContentTextProperties")]
161 #[unsafe(method(textProperties))]
163 #[unsafe(method_family = none)]
164 pub unsafe fn textProperties(&self) -> Retained<UIListContentTextProperties>;
165
166 #[unsafe(method(secondaryText))]
168 #[unsafe(method_family = none)]
169 pub unsafe fn secondaryText(&self) -> Option<Retained<NSString>>;
170
171 #[unsafe(method(setSecondaryText:))]
173 #[unsafe(method_family = none)]
174 pub unsafe fn setSecondaryText(&self, secondary_text: Option<&NSString>);
175
176 #[unsafe(method(secondaryAttributedText))]
178 #[unsafe(method_family = none)]
179 pub unsafe fn secondaryAttributedText(&self) -> Option<Retained<NSAttributedString>>;
180
181 #[unsafe(method(setSecondaryAttributedText:))]
183 #[unsafe(method_family = none)]
184 pub unsafe fn setSecondaryAttributedText(
185 &self,
186 secondary_attributed_text: Option<&NSAttributedString>,
187 );
188
189 #[cfg(feature = "UIListContentTextProperties")]
190 #[unsafe(method(secondaryTextProperties))]
192 #[unsafe(method_family = none)]
193 pub unsafe fn secondaryTextProperties(&self) -> Retained<UIListContentTextProperties>;
194
195 #[cfg(feature = "UIGeometry")]
196 #[unsafe(method(axesPreservingSuperviewLayoutMargins))]
198 #[unsafe(method_family = none)]
199 pub unsafe fn axesPreservingSuperviewLayoutMargins(&self) -> UIAxis;
200
201 #[cfg(feature = "UIGeometry")]
202 #[unsafe(method(setAxesPreservingSuperviewLayoutMargins:))]
204 #[unsafe(method_family = none)]
205 pub unsafe fn setAxesPreservingSuperviewLayoutMargins(
206 &self,
207 axes_preserving_superview_layout_margins: UIAxis,
208 );
209
210 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
211 #[unsafe(method(directionalLayoutMargins))]
213 #[unsafe(method_family = none)]
214 pub unsafe fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets;
215
216 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
217 #[unsafe(method(setDirectionalLayoutMargins:))]
219 #[unsafe(method_family = none)]
220 pub unsafe fn setDirectionalLayoutMargins(
221 &self,
222 directional_layout_margins: NSDirectionalEdgeInsets,
223 );
224
225 #[unsafe(method(prefersSideBySideTextAndSecondaryText))]
227 #[unsafe(method_family = none)]
228 pub unsafe fn prefersSideBySideTextAndSecondaryText(&self) -> bool;
229
230 #[unsafe(method(setPrefersSideBySideTextAndSecondaryText:))]
232 #[unsafe(method_family = none)]
233 pub unsafe fn setPrefersSideBySideTextAndSecondaryText(
234 &self,
235 prefers_side_by_side_text_and_secondary_text: bool,
236 );
237
238 #[cfg(feature = "objc2-core-foundation")]
239 #[unsafe(method(imageToTextPadding))]
241 #[unsafe(method_family = none)]
242 pub unsafe fn imageToTextPadding(&self) -> CGFloat;
243
244 #[cfg(feature = "objc2-core-foundation")]
245 #[unsafe(method(setImageToTextPadding:))]
247 #[unsafe(method_family = none)]
248 pub unsafe fn setImageToTextPadding(&self, image_to_text_padding: CGFloat);
249
250 #[cfg(feature = "objc2-core-foundation")]
251 #[unsafe(method(textToSecondaryTextHorizontalPadding))]
253 #[unsafe(method_family = none)]
254 pub unsafe fn textToSecondaryTextHorizontalPadding(&self) -> CGFloat;
255
256 #[cfg(feature = "objc2-core-foundation")]
257 #[unsafe(method(setTextToSecondaryTextHorizontalPadding:))]
259 #[unsafe(method_family = none)]
260 pub unsafe fn setTextToSecondaryTextHorizontalPadding(
261 &self,
262 text_to_secondary_text_horizontal_padding: CGFloat,
263 );
264
265 #[cfg(feature = "objc2-core-foundation")]
266 #[unsafe(method(textToSecondaryTextVerticalPadding))]
268 #[unsafe(method_family = none)]
269 pub unsafe fn textToSecondaryTextVerticalPadding(&self) -> CGFloat;
270
271 #[cfg(feature = "objc2-core-foundation")]
272 #[unsafe(method(setTextToSecondaryTextVerticalPadding:))]
274 #[unsafe(method_family = none)]
275 pub unsafe fn setTextToSecondaryTextVerticalPadding(
276 &self,
277 text_to_secondary_text_vertical_padding: CGFloat,
278 );
279
280 #[cfg(feature = "objc2-core-foundation")]
281 #[unsafe(method(alpha))]
283 #[unsafe(method_family = none)]
284 pub unsafe fn alpha(&self) -> CGFloat;
285
286 #[cfg(feature = "objc2-core-foundation")]
287 #[unsafe(method(setAlpha:))]
289 #[unsafe(method_family = none)]
290 pub unsafe fn setAlpha(&self, alpha: CGFloat);
291
292 #[deprecated]
294 #[unsafe(method(sidebarCellConfiguration))]
295 #[unsafe(method_family = none)]
296 pub unsafe fn sidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
297
298 #[deprecated]
300 #[unsafe(method(sidebarSubtitleCellConfiguration))]
301 #[unsafe(method_family = none)]
302 pub unsafe fn sidebarSubtitleCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
303
304 #[deprecated]
306 #[unsafe(method(plainHeaderConfiguration))]
307 #[unsafe(method_family = none)]
308 pub unsafe fn plainHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
309
310 #[deprecated]
312 #[unsafe(method(plainFooterConfiguration))]
313 #[unsafe(method_family = none)]
314 pub unsafe fn plainFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
315
316 #[deprecated]
318 #[unsafe(method(groupedHeaderConfiguration))]
319 #[unsafe(method_family = none)]
320 pub unsafe fn groupedHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
321
322 #[deprecated]
324 #[unsafe(method(groupedFooterConfiguration))]
325 #[unsafe(method_family = none)]
326 pub unsafe fn groupedFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
327
328 #[deprecated]
330 #[unsafe(method(sidebarHeaderConfiguration))]
331 #[unsafe(method_family = none)]
332 pub unsafe fn sidebarHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
333 );
334}
335
336extern_class!(
337 #[unsafe(super(UIView, UIResponder, NSObject))]
339 #[thread_kind = MainThreadOnly]
340 #[derive(Debug, PartialEq, Eq, Hash)]
341 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
342 pub struct UIListContentView;
343);
344
345#[cfg(all(
346 feature = "UIResponder",
347 feature = "UIView",
348 feature = "objc2-quartz-core"
349))]
350#[cfg(not(target_os = "watchos"))]
351extern_conformance!(
352 unsafe impl CALayerDelegate for UIListContentView {}
353);
354
355#[cfg(all(feature = "UIResponder", feature = "UIView"))]
356extern_conformance!(
357 unsafe impl NSCoding for UIListContentView {}
358);
359
360#[cfg(all(feature = "UIResponder", feature = "UIView"))]
361extern_conformance!(
362 unsafe impl NSObjectProtocol for UIListContentView {}
363);
364
365#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
366extern_conformance!(
367 unsafe impl UIAppearance for UIListContentView {}
368);
369
370#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
371extern_conformance!(
372 unsafe impl UIAppearanceContainer for UIListContentView {}
373);
374
375#[cfg(all(
376 feature = "UIContentConfiguration",
377 feature = "UIResponder",
378 feature = "UIView"
379))]
380extern_conformance!(
381 unsafe impl UIContentView for UIListContentView {}
382);
383
384#[cfg(all(feature = "UIResponder", feature = "UIView"))]
385extern_conformance!(
386 unsafe impl UICoordinateSpace for UIListContentView {}
387);
388
389#[cfg(all(
390 feature = "UIDynamicBehavior",
391 feature = "UIResponder",
392 feature = "UIView"
393))]
394extern_conformance!(
395 unsafe impl UIDynamicItem for UIListContentView {}
396);
397
398#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
399extern_conformance!(
400 unsafe impl UIFocusEnvironment for UIListContentView {}
401);
402
403#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
404extern_conformance!(
405 unsafe impl UIFocusItem for UIListContentView {}
406);
407
408#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
409extern_conformance!(
410 unsafe impl UIFocusItemContainer for UIListContentView {}
411);
412
413#[cfg(all(feature = "UIResponder", feature = "UIView"))]
414extern_conformance!(
415 unsafe impl UIResponderStandardEditActions for UIListContentView {}
416);
417
418#[cfg(all(
419 feature = "UIResponder",
420 feature = "UITraitCollection",
421 feature = "UIView"
422))]
423extern_conformance!(
424 unsafe impl UITraitEnvironment for UIListContentView {}
425);
426
427#[cfg(all(feature = "UIResponder", feature = "UIView"))]
428impl UIListContentView {
429 extern_methods!(
430 #[unsafe(method(initWithConfiguration:))]
431 #[unsafe(method_family = init)]
432 pub unsafe fn initWithConfiguration(
433 this: Allocated<Self>,
434 configuration: &UIListContentConfiguration,
435 ) -> Retained<Self>;
436
437 #[unsafe(method(initWithCoder:))]
438 #[unsafe(method_family = init)]
439 pub unsafe fn initWithCoder(
440 this: Allocated<Self>,
441 coder: &NSCoder,
442 ) -> Option<Retained<Self>>;
443
444 #[cfg(feature = "objc2-core-foundation")]
445 #[unsafe(method(initWithFrame:))]
446 #[unsafe(method_family = init)]
447 pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
448
449 #[unsafe(method(init))]
450 #[unsafe(method_family = init)]
451 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
452
453 #[unsafe(method(new))]
454 #[unsafe(method_family = new)]
455 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
456
457 #[unsafe(method(configuration))]
458 #[unsafe(method_family = none)]
459 pub unsafe fn configuration(&self) -> Retained<UIListContentConfiguration>;
460
461 #[unsafe(method(setConfiguration:))]
463 #[unsafe(method_family = none)]
464 pub unsafe fn setConfiguration(&self, configuration: &UIListContentConfiguration);
465
466 #[cfg(feature = "UILayoutGuide")]
467 #[unsafe(method(textLayoutGuide))]
472 #[unsafe(method_family = none)]
473 pub unsafe fn textLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
474
475 #[cfg(feature = "UILayoutGuide")]
476 #[unsafe(method(secondaryTextLayoutGuide))]
481 #[unsafe(method_family = none)]
482 pub unsafe fn secondaryTextLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
483
484 #[cfg(feature = "UILayoutGuide")]
485 #[unsafe(method(imageLayoutGuide))]
490 #[unsafe(method_family = none)]
491 pub unsafe fn imageLayoutGuide(&self) -> Option<Retained<UILayoutGuide>>;
492 );
493}