objc2_ui_kit/generated/
NSAdaptiveImageGlyph.rs1use 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 #[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
22unsafe impl NSCoding for NSAdaptiveImageGlyph {}
23
24unsafe impl NSCopying for NSAdaptiveImageGlyph {}
25
26unsafe impl CopyingHelper for NSAdaptiveImageGlyph {
27 type Result = Self;
28}
29
30unsafe impl NSObjectProtocol for NSAdaptiveImageGlyph {}
31
32unsafe impl NSSecureCoding for NSAdaptiveImageGlyph {}
33
34impl NSAdaptiveImageGlyph {
35 extern_methods!(
36 #[unsafe(method(initWithImageContent:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithImageContent(
39 this: Allocated<Self>,
40 image_content: &NSData,
41 ) -> Retained<Self>;
42
43 #[unsafe(method(initWithCoder:))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
46
47 #[unsafe(method(init))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51 #[unsafe(method(imageContent))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn imageContent(&self) -> Retained<NSData>;
54
55 #[unsafe(method(contentIdentifier))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn contentIdentifier(&self) -> Retained<NSString>;
58
59 #[unsafe(method(contentDescription))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn contentDescription(&self) -> Retained<NSString>;
62
63 #[cfg(feature = "objc2-uniform-type-identifiers")]
64 #[unsafe(method(contentType))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn contentType() -> Retained<UTType>;
67 );
68}
69
70impl NSAdaptiveImageGlyph {
72 extern_methods!(
73 #[unsafe(method(new))]
74 #[unsafe(method_family = new)]
75 pub unsafe fn new() -> Retained<Self>;
76 );
77}
78
79mod private_NSAttributedStringAdaptiveImageGlyphConveniences {
80 pub trait Sealed {}
81}
82
83pub unsafe trait NSAttributedStringAdaptiveImageGlyphConveniences:
85 ClassType + Sized + private_NSAttributedStringAdaptiveImageGlyphConveniences::Sealed
86{
87 extern_methods!(
88 #[unsafe(method(attributedStringWithAdaptiveImageGlyph:attributes:))]
89 #[unsafe(method_family = none)]
90 unsafe fn attributedStringWithAdaptiveImageGlyph_attributes(
91 adaptive_image_glyph: &NSAdaptiveImageGlyph,
92 attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
93 ) -> Retained<Self>;
94 );
95}
96
97impl private_NSAttributedStringAdaptiveImageGlyphConveniences::Sealed for NSAttributedString {}
98unsafe impl NSAttributedStringAdaptiveImageGlyphConveniences for NSAttributedString {}