objc2_ui_kit/generated/
UIBackgroundConfiguration.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
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(NSObject))]
15 #[thread_kind = MainThreadOnly]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 pub struct UIBackgroundConfiguration;
18);
19
20extern_conformance!(
21 unsafe impl NSCoding for UIBackgroundConfiguration {}
22);
23
24extern_conformance!(
25 unsafe impl NSCopying for UIBackgroundConfiguration {}
26);
27
28unsafe impl CopyingHelper for UIBackgroundConfiguration {
29 type Result = Self;
30}
31
32extern_conformance!(
33 unsafe impl NSObjectProtocol for UIBackgroundConfiguration {}
34);
35
36extern_conformance!(
37 unsafe impl NSSecureCoding for UIBackgroundConfiguration {}
38);
39
40impl UIBackgroundConfiguration {
41 extern_methods!(
42 #[unsafe(method(clearConfiguration))]
44 #[unsafe(method_family = none)]
45 pub fn clearConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
46
47 #[unsafe(method(listCellConfiguration))]
51 #[unsafe(method_family = none)]
52 pub fn listCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
53
54 #[unsafe(method(listHeaderConfiguration))]
58 #[unsafe(method_family = none)]
59 pub fn listHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
60
61 #[unsafe(method(listFooterConfiguration))]
65 #[unsafe(method_family = none)]
66 pub fn listFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
67
68 #[unsafe(method(listAccompaniedSidebarCellConfiguration))]
70 #[unsafe(method_family = none)]
71 pub fn listAccompaniedSidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
72
73 #[unsafe(method(new))]
74 #[unsafe(method_family = new)]
75 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
76
77 #[unsafe(method(init))]
78 #[unsafe(method_family = init)]
79 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
80
81 #[cfg(feature = "UIConfigurationState")]
82 #[unsafe(method(updatedConfigurationForState:))]
84 #[unsafe(method_family = none)]
85 pub fn updatedConfigurationForState(
86 &self,
87 state: &ProtocolObject<dyn UIConfigurationState>,
88 ) -> Retained<Self>;
89
90 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
91 #[unsafe(method(customView))]
94 #[unsafe(method_family = none)]
95 pub fn customView(&self) -> Option<Retained<UIView>>;
96
97 #[cfg(all(feature = "UIResponder", feature = "UIView"))]
98 #[unsafe(method(setCustomView:))]
100 #[unsafe(method_family = none)]
101 pub fn setCustomView(&self, custom_view: Option<&UIView>);
102
103 #[cfg(feature = "objc2-core-foundation")]
104 #[unsafe(method(cornerRadius))]
107 #[unsafe(method_family = none)]
108 pub fn cornerRadius(&self) -> CGFloat;
109
110 #[cfg(feature = "objc2-core-foundation")]
111 #[unsafe(method(setCornerRadius:))]
113 #[unsafe(method_family = none)]
114 pub fn setCornerRadius(&self, corner_radius: CGFloat);
115
116 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
117 #[unsafe(method(backgroundInsets))]
119 #[unsafe(method_family = none)]
120 pub fn backgroundInsets(&self) -> NSDirectionalEdgeInsets;
121
122 #[cfg(all(feature = "UIGeometry", feature = "objc2-core-foundation"))]
123 #[unsafe(method(setBackgroundInsets:))]
125 #[unsafe(method_family = none)]
126 pub fn setBackgroundInsets(&self, background_insets: NSDirectionalEdgeInsets);
127
128 #[cfg(feature = "UIGeometry")]
129 #[unsafe(method(edgesAddingLayoutMarginsToBackgroundInsets))]
132 #[unsafe(method_family = none)]
133 pub fn edgesAddingLayoutMarginsToBackgroundInsets(&self) -> NSDirectionalRectEdge;
134
135 #[cfg(feature = "UIGeometry")]
136 #[unsafe(method(setEdgesAddingLayoutMarginsToBackgroundInsets:))]
138 #[unsafe(method_family = none)]
139 pub fn setEdgesAddingLayoutMarginsToBackgroundInsets(
140 &self,
141 edges_adding_layout_margins_to_background_insets: NSDirectionalRectEdge,
142 );
143
144 #[cfg(feature = "UIColor")]
145 #[unsafe(method(backgroundColor))]
147 #[unsafe(method_family = none)]
148 pub fn backgroundColor(&self) -> Option<Retained<UIColor>>;
149
150 #[cfg(feature = "UIColor")]
151 #[unsafe(method(setBackgroundColor:))]
153 #[unsafe(method_family = none)]
154 pub fn setBackgroundColor(&self, background_color: Option<&UIColor>);
155
156 #[cfg(all(
157 feature = "UIColor",
158 feature = "UIConfigurationColorTransformer",
159 feature = "block2"
160 ))]
161 #[unsafe(method(backgroundColorTransformer))]
167 #[unsafe(method_family = none)]
168 pub unsafe fn backgroundColorTransformer(&self) -> UIConfigurationColorTransformer;
169
170 #[cfg(all(
171 feature = "UIColor",
172 feature = "UIConfigurationColorTransformer",
173 feature = "block2"
174 ))]
175 #[unsafe(method(setBackgroundColorTransformer:))]
183 #[unsafe(method_family = none)]
184 pub unsafe fn setBackgroundColorTransformer(
185 &self,
186 background_color_transformer: UIConfigurationColorTransformer,
187 );
188
189 #[cfg(feature = "UIColor")]
190 #[unsafe(method(resolvedBackgroundColorForTintColor:))]
192 #[unsafe(method_family = none)]
193 pub fn resolvedBackgroundColorForTintColor(
194 &self,
195 tint_color: &UIColor,
196 ) -> Retained<UIColor>;
197
198 #[cfg(feature = "UIVisualEffect")]
199 #[unsafe(method(visualEffect))]
201 #[unsafe(method_family = none)]
202 pub fn visualEffect(&self) -> Option<Retained<UIVisualEffect>>;
203
204 #[cfg(feature = "UIVisualEffect")]
205 #[unsafe(method(setVisualEffect:))]
209 #[unsafe(method_family = none)]
210 pub fn setVisualEffect(&self, visual_effect: Option<&UIVisualEffect>);
211
212 #[cfg(feature = "UIImage")]
213 #[unsafe(method(image))]
215 #[unsafe(method_family = none)]
216 pub fn image(&self) -> Option<Retained<UIImage>>;
217
218 #[cfg(feature = "UIImage")]
219 #[unsafe(method(setImage:))]
221 #[unsafe(method_family = none)]
222 pub fn setImage(&self, image: Option<&UIImage>);
223
224 #[cfg(feature = "UIView")]
225 #[unsafe(method(imageContentMode))]
227 #[unsafe(method_family = none)]
228 pub fn imageContentMode(&self) -> UIViewContentMode;
229
230 #[cfg(feature = "UIView")]
231 #[unsafe(method(setImageContentMode:))]
233 #[unsafe(method_family = none)]
234 pub fn setImageContentMode(&self, image_content_mode: UIViewContentMode);
235
236 #[cfg(feature = "UIColor")]
237 #[unsafe(method(strokeColor))]
239 #[unsafe(method_family = none)]
240 pub fn strokeColor(&self) -> Option<Retained<UIColor>>;
241
242 #[cfg(feature = "UIColor")]
243 #[unsafe(method(setStrokeColor:))]
245 #[unsafe(method_family = none)]
246 pub fn setStrokeColor(&self, stroke_color: Option<&UIColor>);
247
248 #[cfg(all(
249 feature = "UIColor",
250 feature = "UIConfigurationColorTransformer",
251 feature = "block2"
252 ))]
253 #[unsafe(method(strokeColorTransformer))]
259 #[unsafe(method_family = none)]
260 pub unsafe fn strokeColorTransformer(&self) -> UIConfigurationColorTransformer;
261
262 #[cfg(all(
263 feature = "UIColor",
264 feature = "UIConfigurationColorTransformer",
265 feature = "block2"
266 ))]
267 #[unsafe(method(setStrokeColorTransformer:))]
275 #[unsafe(method_family = none)]
276 pub unsafe fn setStrokeColorTransformer(
277 &self,
278 stroke_color_transformer: UIConfigurationColorTransformer,
279 );
280
281 #[cfg(feature = "UIColor")]
282 #[unsafe(method(resolvedStrokeColorForTintColor:))]
284 #[unsafe(method_family = none)]
285 pub fn resolvedStrokeColorForTintColor(&self, tint_color: &UIColor) -> Retained<UIColor>;
286
287 #[cfg(feature = "objc2-core-foundation")]
288 #[unsafe(method(strokeWidth))]
290 #[unsafe(method_family = none)]
291 pub fn strokeWidth(&self) -> CGFloat;
292
293 #[cfg(feature = "objc2-core-foundation")]
294 #[unsafe(method(setStrokeWidth:))]
296 #[unsafe(method_family = none)]
297 pub fn setStrokeWidth(&self, stroke_width: CGFloat);
298
299 #[cfg(feature = "objc2-core-foundation")]
300 #[unsafe(method(strokeOutset))]
303 #[unsafe(method_family = none)]
304 pub fn strokeOutset(&self) -> CGFloat;
305
306 #[cfg(feature = "objc2-core-foundation")]
307 #[unsafe(method(setStrokeOutset:))]
309 #[unsafe(method_family = none)]
310 pub fn setStrokeOutset(&self, stroke_outset: CGFloat);
311
312 #[cfg(feature = "UIShadowProperties")]
313 #[unsafe(method(shadowProperties))]
316 #[unsafe(method_family = none)]
317 pub fn shadowProperties(&self) -> Retained<UIShadowProperties>;
318
319 #[deprecated]
321 #[unsafe(method(listPlainCellConfiguration))]
322 #[unsafe(method_family = none)]
323 pub fn listPlainCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
324
325 #[deprecated]
327 #[unsafe(method(listGroupedCellConfiguration))]
328 #[unsafe(method_family = none)]
329 pub fn listGroupedCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
330
331 #[deprecated]
333 #[unsafe(method(listSidebarCellConfiguration))]
334 #[unsafe(method_family = none)]
335 pub fn listSidebarCellConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
336
337 #[deprecated = "Use +listHeaderConfiguration or +listFooterConfiguration"]
339 #[unsafe(method(listPlainHeaderFooterConfiguration))]
340 #[unsafe(method_family = none)]
341 pub fn listPlainHeaderFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
342
343 #[deprecated = "Use +listHeaderConfiguration or +listFooterConfiguration"]
345 #[unsafe(method(listGroupedHeaderFooterConfiguration))]
346 #[unsafe(method_family = none)]
347 pub fn listGroupedHeaderFooterConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
348
349 #[deprecated = "Use +listHeaderConfiguration or +listFooterConfiguration"]
351 #[unsafe(method(listSidebarHeaderConfiguration))]
352 #[unsafe(method_family = none)]
353 pub fn listSidebarHeaderConfiguration(mtm: MainThreadMarker) -> Retained<Self>;
354 );
355}