objc2_intents/generated/
INTextNoteContent.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(INNoteContent, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(feature = "INNoteContent")]
14 pub struct INTextNoteContent;
15);
16
17#[cfg(feature = "INNoteContent")]
18extern_conformance!(
19 unsafe impl NSCoding for INTextNoteContent {}
20);
21
22#[cfg(feature = "INNoteContent")]
23extern_conformance!(
24 unsafe impl NSCopying for INTextNoteContent {}
25);
26
27#[cfg(feature = "INNoteContent")]
28unsafe impl CopyingHelper for INTextNoteContent {
29 type Result = Self;
30}
31
32#[cfg(feature = "INNoteContent")]
33extern_conformance!(
34 unsafe impl NSObjectProtocol for INTextNoteContent {}
35);
36
37#[cfg(feature = "INNoteContent")]
38extern_conformance!(
39 unsafe impl NSSecureCoding for INTextNoteContent {}
40);
41
42#[cfg(feature = "INNoteContent")]
43impl INTextNoteContent {
44 extern_methods!(
45 #[unsafe(method(initWithText:))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn initWithText(this: Allocated<Self>, text: &NSString) -> Retained<Self>;
48
49 #[unsafe(method(text))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn text(&self) -> Option<Retained<NSString>>;
52 );
53}
54
55#[cfg(feature = "INNoteContent")]
57impl INTextNoteContent {
58 extern_methods!(
59 #[unsafe(method(init))]
60 #[unsafe(method_family = init)]
61 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
62
63 #[unsafe(method(new))]
64 #[unsafe(method_family = new)]
65 pub unsafe fn new() -> Retained<Self>;
66 );
67}