use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INNoteContent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INNoteContent")]
pub struct INTextNoteContent;
);
#[cfg(feature = "INNoteContent")]
extern_conformance!(
unsafe impl NSCoding for INTextNoteContent {}
);
#[cfg(feature = "INNoteContent")]
extern_conformance!(
unsafe impl NSCopying for INTextNoteContent {}
);
#[cfg(feature = "INNoteContent")]
unsafe impl CopyingHelper for INTextNoteContent {
type Result = Self;
}
#[cfg(feature = "INNoteContent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INTextNoteContent {}
);
#[cfg(feature = "INNoteContent")]
extern_conformance!(
unsafe impl NSSecureCoding for INTextNoteContent {}
);
#[cfg(feature = "INNoteContent")]
impl INTextNoteContent {
extern_methods!(
#[unsafe(method(initWithText:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithText(this: Allocated<Self>, text: &NSString) -> Retained<Self>;
#[unsafe(method(text))]
#[unsafe(method_family = none)]
pub unsafe fn text(&self) -> Option<Retained<NSString>>;
);
}
#[cfg(feature = "INNoteContent")]
impl INTextNoteContent {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}