objc2_messages/generated/
MSMessageTemplateLayout.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7#[cfg(feature = "objc2-ui-kit")]
8use objc2_ui_kit::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(MSMessageLayout, NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 #[cfg(feature = "MSMessageLayout")]
20 pub struct MSMessageTemplateLayout;
21);
22
23#[cfg(feature = "MSMessageLayout")]
24extern_conformance!(
25 unsafe impl NSCopying for MSMessageTemplateLayout {}
26);
27
28#[cfg(feature = "MSMessageLayout")]
29unsafe impl CopyingHelper for MSMessageTemplateLayout {
30 type Result = Self;
31}
32
33#[cfg(feature = "MSMessageLayout")]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for MSMessageTemplateLayout {}
36);
37
38#[cfg(feature = "MSMessageLayout")]
39impl MSMessageTemplateLayout {
40 extern_methods!(
41 #[unsafe(method(caption))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn caption(&self) -> Option<Retained<NSString>>;
45
46 #[unsafe(method(setCaption:))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn setCaption(&self, caption: Option<&NSString>);
50
51 #[unsafe(method(subcaption))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn subcaption(&self) -> Option<Retained<NSString>>;
55
56 #[unsafe(method(setSubcaption:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn setSubcaption(&self, subcaption: Option<&NSString>);
60
61 #[unsafe(method(trailingCaption))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn trailingCaption(&self) -> Option<Retained<NSString>>;
65
66 #[unsafe(method(setTrailingCaption:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn setTrailingCaption(&self, trailing_caption: Option<&NSString>);
70
71 #[unsafe(method(trailingSubcaption))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn trailingSubcaption(&self) -> Option<Retained<NSString>>;
75
76 #[unsafe(method(setTrailingSubcaption:))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn setTrailingSubcaption(&self, trailing_subcaption: Option<&NSString>);
80
81 #[cfg(feature = "objc2-ui-kit")]
82 #[unsafe(method(image))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn image(&self) -> Option<Retained<UIImage>>;
89
90 #[cfg(feature = "objc2-ui-kit")]
91 #[unsafe(method(setImage:))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn setImage(&self, image: Option<&UIImage>);
95
96 #[unsafe(method(mediaFileURL))]
102 #[unsafe(method_family = none)]
103 pub unsafe fn mediaFileURL(&self) -> Option<Retained<NSURL>>;
104
105 #[unsafe(method(setMediaFileURL:))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn setMediaFileURL(&self, media_file_url: Option<&NSURL>);
109
110 #[unsafe(method(imageTitle))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn imageTitle(&self) -> Option<Retained<NSString>>;
114
115 #[unsafe(method(setImageTitle:))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn setImageTitle(&self, image_title: Option<&NSString>);
119
120 #[unsafe(method(imageSubtitle))]
122 #[unsafe(method_family = none)]
123 pub unsafe fn imageSubtitle(&self) -> Option<Retained<NSString>>;
124
125 #[unsafe(method(setImageSubtitle:))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn setImageSubtitle(&self, image_subtitle: Option<&NSString>);
129 );
130}
131
132#[cfg(feature = "MSMessageLayout")]
134impl MSMessageTemplateLayout {
135 extern_methods!(
136 #[unsafe(method(init))]
137 #[unsafe(method_family = init)]
138 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
139
140 #[unsafe(method(new))]
141 #[unsafe(method_family = new)]
142 pub unsafe fn new() -> Retained<Self>;
143 );
144}