objc2_ui_kit/generated/
UIContentUnavailableImageProperties.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 UIContentUnavailableImageProperties;
18);
19
20extern_conformance!(
21 unsafe impl NSCoding for UIContentUnavailableImageProperties {}
22);
23
24extern_conformance!(
25 unsafe impl NSCopying for UIContentUnavailableImageProperties {}
26);
27
28unsafe impl CopyingHelper for UIContentUnavailableImageProperties {
29 type Result = Self;
30}
31
32extern_conformance!(
33 unsafe impl NSObjectProtocol for UIContentUnavailableImageProperties {}
34);
35
36extern_conformance!(
37 unsafe impl NSSecureCoding for UIContentUnavailableImageProperties {}
38);
39
40impl UIContentUnavailableImageProperties {
41 extern_methods!(
42 #[cfg(all(
43 feature = "UIImageConfiguration",
44 feature = "UIImageSymbolConfiguration"
45 ))]
46 #[unsafe(method(preferredSymbolConfiguration))]
48 #[unsafe(method_family = none)]
49 pub fn preferredSymbolConfiguration(&self) -> Option<Retained<UIImageSymbolConfiguration>>;
50
51 #[cfg(all(
52 feature = "UIImageConfiguration",
53 feature = "UIImageSymbolConfiguration"
54 ))]
55 #[unsafe(method(setPreferredSymbolConfiguration:))]
59 #[unsafe(method_family = none)]
60 pub fn setPreferredSymbolConfiguration(
61 &self,
62 preferred_symbol_configuration: Option<&UIImageSymbolConfiguration>,
63 );
64
65 #[cfg(feature = "UIColor")]
66 #[unsafe(method(tintColor))]
68 #[unsafe(method_family = none)]
69 pub fn tintColor(&self) -> Option<Retained<UIColor>>;
70
71 #[cfg(feature = "UIColor")]
72 #[unsafe(method(setTintColor:))]
74 #[unsafe(method_family = none)]
75 pub fn setTintColor(&self, tint_color: Option<&UIColor>);
76
77 #[cfg(feature = "objc2-core-foundation")]
78 #[unsafe(method(cornerRadius))]
82 #[unsafe(method_family = none)]
83 pub fn cornerRadius(&self) -> CGFloat;
84
85 #[cfg(feature = "objc2-core-foundation")]
86 #[unsafe(method(setCornerRadius:))]
88 #[unsafe(method_family = none)]
89 pub fn setCornerRadius(&self, corner_radius: CGFloat);
90
91 #[cfg(feature = "objc2-core-foundation")]
92 #[unsafe(method(maximumSize))]
96 #[unsafe(method_family = none)]
97 pub fn maximumSize(&self) -> CGSize;
98
99 #[cfg(feature = "objc2-core-foundation")]
100 #[unsafe(method(setMaximumSize:))]
102 #[unsafe(method_family = none)]
103 pub fn setMaximumSize(&self, maximum_size: CGSize);
104
105 #[unsafe(method(accessibilityIgnoresInvertColors))]
107 #[unsafe(method_family = none)]
108 pub fn accessibilityIgnoresInvertColors(&self) -> bool;
109
110 #[unsafe(method(setAccessibilityIgnoresInvertColors:))]
112 #[unsafe(method_family = none)]
113 pub fn setAccessibilityIgnoresInvertColors(
114 &self,
115 accessibility_ignores_invert_colors: bool,
116 );
117 );
118}
119
120impl UIContentUnavailableImageProperties {
122 extern_methods!(
123 #[unsafe(method(init))]
124 #[unsafe(method_family = init)]
125 pub fn init(this: Allocated<Self>) -> Retained<Self>;
126
127 #[unsafe(method(new))]
128 #[unsafe(method_family = new)]
129 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
130 );
131}