objc2_ui_kit/generated/
NSAdaptiveImageGlyph.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6#[cfg(feature = "objc2-uniform-type-identifiers")]
7use objc2_uniform_type_identifiers::*;
8
9use crate::*;
10
11extern_class!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/nsadaptiveimageglyph?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct NSAdaptiveImageGlyph;
16);
17
18unsafe impl Send for NSAdaptiveImageGlyph {}
19
20unsafe impl Sync for NSAdaptiveImageGlyph {}
21
22extern_conformance!(
23    unsafe impl NSCoding for NSAdaptiveImageGlyph {}
24);
25
26extern_conformance!(
27    unsafe impl NSCopying for NSAdaptiveImageGlyph {}
28);
29
30unsafe impl CopyingHelper for NSAdaptiveImageGlyph {
31    type Result = Self;
32}
33
34extern_conformance!(
35    unsafe impl NSObjectProtocol for NSAdaptiveImageGlyph {}
36);
37
38extern_conformance!(
39    unsafe impl NSSecureCoding for NSAdaptiveImageGlyph {}
40);
41
42impl NSAdaptiveImageGlyph {
43    extern_methods!(
44        #[unsafe(method(initWithImageContent:))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn initWithImageContent(
47            this: Allocated<Self>,
48            image_content: &NSData,
49        ) -> Retained<Self>;
50
51        #[unsafe(method(initWithCoder:))]
52        #[unsafe(method_family = init)]
53        pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
54
55        #[unsafe(method(init))]
56        #[unsafe(method_family = init)]
57        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58
59        #[unsafe(method(imageContent))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn imageContent(&self) -> Retained<NSData>;
62
63        #[unsafe(method(contentIdentifier))]
64        #[unsafe(method_family = none)]
65        pub unsafe fn contentIdentifier(&self) -> Retained<NSString>;
66
67        #[unsafe(method(contentDescription))]
68        #[unsafe(method_family = none)]
69        pub unsafe fn contentDescription(&self) -> Retained<NSString>;
70
71        #[cfg(feature = "objc2-uniform-type-identifiers")]
72        #[unsafe(method(contentType))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn contentType() -> Retained<UTType>;
75    );
76}
77
78/// Methods declared on superclass `NSObject`.
79impl NSAdaptiveImageGlyph {
80    extern_methods!(
81        #[unsafe(method(new))]
82        #[unsafe(method_family = new)]
83        pub unsafe fn new() -> Retained<Self>;
84    );
85}
86
87mod private_NSAttributedStringAdaptiveImageGlyphConveniences {
88    pub trait Sealed {}
89}
90
91/// Category on [`NSAttributedString`].
92pub unsafe trait NSAttributedStringAdaptiveImageGlyphConveniences:
93    ClassType + Sized + private_NSAttributedStringAdaptiveImageGlyphConveniences::Sealed
94{
95    extern_methods!(
96        #[unsafe(method(attributedStringWithAdaptiveImageGlyph:attributes:))]
97        #[unsafe(method_family = none)]
98        unsafe fn attributedStringWithAdaptiveImageGlyph_attributes(
99            adaptive_image_glyph: &NSAdaptiveImageGlyph,
100            attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
101        ) -> Retained<Self>;
102    );
103}
104
105impl private_NSAttributedStringAdaptiveImageGlyphConveniences::Sealed for NSAttributedString {}
106unsafe impl NSAttributedStringAdaptiveImageGlyphConveniences for NSAttributedString {}