1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct UIImageAsset;

    unsafe impl ClassType for UIImageAsset {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

unsafe impl Send for UIImageAsset {}

unsafe impl Sync for UIImageAsset {}

unsafe impl NSCoding for UIImageAsset {}

unsafe impl NSObjectProtocol for UIImageAsset {}

unsafe impl NSSecureCoding for UIImageAsset {}

extern_methods!(
    unsafe impl UIImageAsset {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[method_id(@__retain_semantics Init initWithCoder:)]
        pub unsafe fn initWithCoder(
            this: Allocated<Self>,
            coder: &NSCoder,
        ) -> Option<Retained<Self>>;

        #[cfg(all(feature = "UIImage", feature = "UIImageConfiguration"))]
        #[method_id(@__retain_semantics Other imageWithConfiguration:)]
        pub unsafe fn imageWithConfiguration(
            &self,
            configuration: &UIImageConfiguration,
        ) -> Retained<UIImage>;

        #[cfg(all(feature = "UIImage", feature = "UIImageConfiguration"))]
        #[method(registerImage:withConfiguration:)]
        pub unsafe fn registerImage_withConfiguration(
            &self,
            image: &UIImage,
            configuration: &UIImageConfiguration,
        );

        #[cfg(feature = "UIImageConfiguration")]
        #[method(unregisterImageWithConfiguration:)]
        pub unsafe fn unregisterImageWithConfiguration(&self, configuration: &UIImageConfiguration);

        #[cfg(all(feature = "UIImage", feature = "UITraitCollection"))]
        #[method_id(@__retain_semantics Other imageWithTraitCollection:)]
        pub unsafe fn imageWithTraitCollection(
            &self,
            trait_collection: &UITraitCollection,
        ) -> Retained<UIImage>;

        #[cfg(all(feature = "UIImage", feature = "UITraitCollection"))]
        #[method(registerImage:withTraitCollection:)]
        pub unsafe fn registerImage_withTraitCollection(
            &self,
            image: &UIImage,
            trait_collection: &UITraitCollection,
        );

        #[cfg(feature = "UITraitCollection")]
        #[method(unregisterImageWithTraitCollection:)]
        pub unsafe fn unregisterImageWithTraitCollection(
            &self,
            trait_collection: &UITraitCollection,
        );
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    unsafe impl UIImageAsset {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Retained<Self>;
    }
);