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
20unsafe impl NSCoding for UIImageConfiguration {}
21
22unsafe impl NSCopying for UIImageConfiguration {}
23
24unsafe impl CopyingHelper for UIImageConfiguration {
25 type Result = Self;
26}
27
28unsafe impl NSObjectProtocol for UIImageConfiguration {}
29
30unsafe impl NSSecureCoding for UIImageConfiguration {}
31
32impl UIImageConfiguration {
33 extern_methods!(
34 #[unsafe(method(new))]
35 #[unsafe(method_family = new)]
36 pub unsafe fn new() -> Retained<Self>;
37
38 #[unsafe(method(init))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41
42 #[cfg(feature = "UITraitCollection")]
43 #[unsafe(method(traitCollection))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn traitCollection(&self) -> Option<Retained<UITraitCollection>>;
46
47 #[cfg(feature = "UITraitCollection")]
48 #[unsafe(method(configurationWithTraitCollection:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn configurationWithTraitCollection(
51 &self,
52 trait_collection: Option<&UITraitCollection>,
53 ) -> Retained<Self>;
54
55 #[cfg(feature = "UITraitCollection")]
56 #[unsafe(method(configurationWithTraitCollection:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn configurationWithTraitCollection_class(
59 trait_collection: Option<&UITraitCollection>,
60 ) -> Retained<Self>;
61
62 #[unsafe(method(locale))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn locale(&self) -> Option<Retained<NSLocale>>;
65
66 #[unsafe(method(configurationWithLocale:))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn configurationWithLocale(&self, locale: Option<&NSLocale>) -> Retained<Self>;
69
70 #[unsafe(method(configurationWithLocale:))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn configurationWithLocale_class(locale: Option<&NSLocale>) -> Retained<Self>;
73
74 #[unsafe(method(configurationByApplyingConfiguration:))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn configurationByApplyingConfiguration(
77 &self,
78 other_configuration: Option<&UIImageConfiguration>,
79 ) -> Retained<Self>;
80 );
81}