objc2_intents/generated/
INImageNoteContent.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 INImageNoteContent;
15);
16
17#[cfg(feature = "INNoteContent")]
18extern_conformance!(
19 unsafe impl NSCoding for INImageNoteContent {}
20);
21
22#[cfg(feature = "INNoteContent")]
23extern_conformance!(
24 unsafe impl NSCopying for INImageNoteContent {}
25);
26
27#[cfg(feature = "INNoteContent")]
28unsafe impl CopyingHelper for INImageNoteContent {
29 type Result = Self;
30}
31
32#[cfg(feature = "INNoteContent")]
33extern_conformance!(
34 unsafe impl NSObjectProtocol for INImageNoteContent {}
35);
36
37#[cfg(feature = "INNoteContent")]
38extern_conformance!(
39 unsafe impl NSSecureCoding for INImageNoteContent {}
40);
41
42#[cfg(feature = "INNoteContent")]
43impl INImageNoteContent {
44 extern_methods!(
45 #[cfg(feature = "INImage")]
46 #[unsafe(method(initWithImage:))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn initWithImage(this: Allocated<Self>, image: &INImage) -> Retained<Self>;
49
50 #[cfg(feature = "INImage")]
51 #[unsafe(method(image))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn image(&self) -> Option<Retained<INImage>>;
54 );
55}
56
57#[cfg(feature = "INNoteContent")]
59impl INImageNoteContent {
60 extern_methods!(
61 #[unsafe(method(init))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64
65 #[unsafe(method(new))]
66 #[unsafe(method_family = new)]
67 pub unsafe fn new() -> Retained<Self>;
68 );
69}