objc2_ui_kit/generated/
UIListContentImageProperties.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 UIListContentImageProperties;
18);
19
20unsafe impl NSCoding for UIListContentImageProperties {}
21
22unsafe impl NSCopying for UIListContentImageProperties {}
23
24unsafe impl CopyingHelper for UIListContentImageProperties {
25 type Result = Self;
26}
27
28unsafe impl NSObjectProtocol for UIListContentImageProperties {}
29
30unsafe impl NSSecureCoding for UIListContentImageProperties {}
31
32impl UIListContentImageProperties {
33 extern_methods!(
34 #[cfg(all(
35 feature = "UIImageConfiguration",
36 feature = "UIImageSymbolConfiguration"
37 ))]
38 #[unsafe(method(preferredSymbolConfiguration))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn preferredSymbolConfiguration(
42 &self,
43 ) -> Option<Retained<UIImageSymbolConfiguration>>;
44
45 #[cfg(all(
46 feature = "UIImageConfiguration",
47 feature = "UIImageSymbolConfiguration"
48 ))]
49 #[unsafe(method(setPreferredSymbolConfiguration:))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn setPreferredSymbolConfiguration(
53 &self,
54 preferred_symbol_configuration: Option<&UIImageSymbolConfiguration>,
55 );
56
57 #[cfg(feature = "UIColor")]
58 #[unsafe(method(tintColor))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn tintColor(&self) -> Option<Retained<UIColor>>;
62
63 #[cfg(feature = "UIColor")]
64 #[unsafe(method(setTintColor:))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn setTintColor(&self, tint_color: Option<&UIColor>);
68
69 #[cfg(all(
70 feature = "UIColor",
71 feature = "UIConfigurationColorTransformer",
72 feature = "block2"
73 ))]
74 #[unsafe(method(tintColorTransformer))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn tintColorTransformer(&self) -> UIConfigurationColorTransformer;
78
79 #[cfg(all(
80 feature = "UIColor",
81 feature = "UIConfigurationColorTransformer",
82 feature = "block2"
83 ))]
84 #[unsafe(method(setTintColorTransformer:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn setTintColorTransformer(
88 &self,
89 tint_color_transformer: UIConfigurationColorTransformer,
90 );
91
92 #[cfg(feature = "UIColor")]
93 #[unsafe(method(resolvedTintColorForTintColor:))]
95 #[unsafe(method_family = none)]
96 pub unsafe fn resolvedTintColorForTintColor(
97 &self,
98 tint_color: &UIColor,
99 ) -> Retained<UIColor>;
100
101 #[cfg(feature = "objc2-core-foundation")]
102 #[unsafe(method(cornerRadius))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn cornerRadius(&self) -> CGFloat;
108
109 #[cfg(feature = "objc2-core-foundation")]
110 #[unsafe(method(setCornerRadius:))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn setCornerRadius(&self, corner_radius: CGFloat);
114
115 #[cfg(feature = "objc2-core-foundation")]
116 #[unsafe(method(maximumSize))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn maximumSize(&self) -> CGSize;
122
123 #[cfg(feature = "objc2-core-foundation")]
124 #[unsafe(method(setMaximumSize:))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn setMaximumSize(&self, maximum_size: CGSize);
128
129 #[cfg(feature = "objc2-core-foundation")]
130 #[unsafe(method(reservedLayoutSize))]
150 #[unsafe(method_family = none)]
151 pub unsafe fn reservedLayoutSize(&self) -> CGSize;
152
153 #[cfg(feature = "objc2-core-foundation")]
154 #[unsafe(method(setReservedLayoutSize:))]
156 #[unsafe(method_family = none)]
157 pub unsafe fn setReservedLayoutSize(&self, reserved_layout_size: CGSize);
158
159 #[unsafe(method(accessibilityIgnoresInvertColors))]
161 #[unsafe(method_family = none)]
162 pub unsafe fn accessibilityIgnoresInvertColors(&self) -> bool;
163
164 #[unsafe(method(setAccessibilityIgnoresInvertColors:))]
166 #[unsafe(method_family = none)]
167 pub unsafe fn setAccessibilityIgnoresInvertColors(
168 &self,
169 accessibility_ignores_invert_colors: bool,
170 );
171
172 #[cfg(feature = "objc2-core-foundation")]
173 #[unsafe(method(strokeWidth))]
175 #[unsafe(method_family = none)]
176 pub unsafe fn strokeWidth(&self) -> CGFloat;
177
178 #[cfg(feature = "objc2-core-foundation")]
179 #[unsafe(method(setStrokeWidth:))]
181 #[unsafe(method_family = none)]
182 pub unsafe fn setStrokeWidth(&self, stroke_width: CGFloat);
183
184 #[cfg(feature = "UIColor")]
185 #[unsafe(method(strokeColor))]
187 #[unsafe(method_family = none)]
188 pub unsafe fn strokeColor(&self) -> Option<Retained<UIColor>>;
189
190 #[cfg(feature = "UIColor")]
191 #[unsafe(method(setStrokeColor:))]
193 #[unsafe(method_family = none)]
194 pub unsafe fn setStrokeColor(&self, stroke_color: Option<&UIColor>);
195
196 #[cfg(all(
197 feature = "UIColor",
198 feature = "UIConfigurationColorTransformer",
199 feature = "block2"
200 ))]
201 #[unsafe(method(strokeColorTransformer))]
203 #[unsafe(method_family = none)]
204 pub unsafe fn strokeColorTransformer(&self) -> UIConfigurationColorTransformer;
205
206 #[cfg(all(
207 feature = "UIColor",
208 feature = "UIConfigurationColorTransformer",
209 feature = "block2"
210 ))]
211 #[unsafe(method(setStrokeColorTransformer:))]
213 #[unsafe(method_family = none)]
214 pub unsafe fn setStrokeColorTransformer(
215 &self,
216 stroke_color_transformer: UIConfigurationColorTransformer,
217 );
218
219 #[cfg(feature = "UIColor")]
220 #[unsafe(method(resolvedStrokeColorForTintColor:))]
222 #[unsafe(method_family = none)]
223 pub unsafe fn resolvedStrokeColorForTintColor(
224 &self,
225 tint_color: &UIColor,
226 ) -> Retained<UIColor>;
227 );
228}
229
230impl UIListContentImageProperties {
232 extern_methods!(
233 #[unsafe(method(init))]
234 #[unsafe(method_family = init)]
235 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
236
237 #[unsafe(method(new))]
238 #[unsafe(method_family = new)]
239 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
240 );
241}
242
243extern "C" {
244 #[cfg(feature = "objc2-core-foundation")]
250 pub static UIListContentImageStandardDimension: CGFloat;
251}