use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-uniform-type-identifiers")]
#[cfg(target_vendor = "apple")]
use objc2_uniform_type_identifiers::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSAdaptiveImageGlyph;
);
unsafe impl Send for NSAdaptiveImageGlyph {}
unsafe impl Sync for NSAdaptiveImageGlyph {}
extern_conformance!(
unsafe impl NSCoding for NSAdaptiveImageGlyph {}
);
extern_conformance!(
unsafe impl NSCopying for NSAdaptiveImageGlyph {}
);
unsafe impl CopyingHelper for NSAdaptiveImageGlyph {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for NSAdaptiveImageGlyph {}
);
extern_conformance!(
unsafe impl NSSecureCoding for NSAdaptiveImageGlyph {}
);
impl NSAdaptiveImageGlyph {
extern_methods!(
#[unsafe(method(initWithImageContent:))]
#[unsafe(method_family = init)]
pub fn initWithImageContent(
this: Allocated<Self>,
image_content: &NSData,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(imageContent))]
#[unsafe(method_family = none)]
pub fn imageContent(&self) -> Retained<NSData>;
#[unsafe(method(contentIdentifier))]
#[unsafe(method_family = none)]
pub fn contentIdentifier(&self) -> Retained<NSString>;
#[unsafe(method(contentDescription))]
#[unsafe(method_family = none)]
pub fn contentDescription(&self) -> Retained<NSString>;
#[cfg(feature = "objc2-uniform-type-identifiers")]
#[cfg(target_vendor = "apple")]
#[unsafe(method(contentType))]
#[unsafe(method_family = none)]
pub fn contentType() -> Retained<UTType>;
);
}
impl NSAdaptiveImageGlyph {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
mod private_NSAttributedStringAdaptiveImageGlyphConveniences {
pub trait Sealed {}
}
pub unsafe trait NSAttributedStringAdaptiveImageGlyphConveniences:
ClassType + Sized + private_NSAttributedStringAdaptiveImageGlyphConveniences::Sealed
{
extern_methods!(
#[unsafe(method(attributedStringWithAdaptiveImageGlyph:attributes:))]
#[unsafe(method_family = none)]
unsafe fn attributedStringWithAdaptiveImageGlyph_attributes(
adaptive_image_glyph: &NSAdaptiveImageGlyph,
attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
) -> Retained<Self>;
);
}
impl private_NSAttributedStringAdaptiveImageGlyphConveniences::Sealed for NSAttributedString {}
unsafe impl NSAttributedStringAdaptiveImageGlyphConveniences for NSAttributedString {}