objc2_ui_kit/generated/
UIImageConfiguration.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct UIImageConfiguration;
14);
15
16unsafe impl Send for UIImageConfiguration {}
17
18unsafe impl Sync for UIImageConfiguration {}
19
20extern_conformance!(
21 unsafe impl NSCoding for UIImageConfiguration {}
22);
23
24extern_conformance!(
25 unsafe impl NSCopying for UIImageConfiguration {}
26);
27
28unsafe impl CopyingHelper for UIImageConfiguration {
29 type Result = Self;
30}
31
32extern_conformance!(
33 unsafe impl NSObjectProtocol for UIImageConfiguration {}
34);
35
36extern_conformance!(
37 unsafe impl NSSecureCoding for UIImageConfiguration {}
38);
39
40impl UIImageConfiguration {
41 extern_methods!(
42 #[unsafe(method(new))]
43 #[unsafe(method_family = new)]
44 pub unsafe fn new() -> Retained<Self>;
45
46 #[unsafe(method(init))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49
50 #[cfg(feature = "UITraitCollection")]
51 #[unsafe(method(traitCollection))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn traitCollection(&self) -> Option<Retained<UITraitCollection>>;
54
55 #[cfg(feature = "UITraitCollection")]
56 #[unsafe(method(configurationWithTraitCollection:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn configurationWithTraitCollection(
59 &self,
60 trait_collection: Option<&UITraitCollection>,
61 ) -> Retained<Self>;
62
63 #[cfg(feature = "UITraitCollection")]
64 #[unsafe(method(configurationWithTraitCollection:))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn configurationWithTraitCollection_class(
67 trait_collection: Option<&UITraitCollection>,
68 ) -> Retained<Self>;
69
70 #[unsafe(method(locale))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn locale(&self) -> Option<Retained<NSLocale>>;
73
74 #[unsafe(method(configurationWithLocale:))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn configurationWithLocale(&self, locale: Option<&NSLocale>) -> Retained<Self>;
77
78 #[unsafe(method(configurationWithLocale:))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn configurationWithLocale_class(locale: Option<&NSLocale>) -> Retained<Self>;
81
82 #[unsafe(method(configurationByApplyingConfiguration:))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn configurationByApplyingConfiguration(
85 &self,
86 other_configuration: Option<&UIImageConfiguration>,
87 ) -> Retained<Self>;
88 );
89}