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