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:))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn setCaption(&self, caption: Option<&NSString>);
52
53 #[unsafe(method(subcaption))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn subcaption(&self) -> Option<Retained<NSString>>;
57
58 #[unsafe(method(setSubcaption:))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn setSubcaption(&self, subcaption: Option<&NSString>);
64
65 #[unsafe(method(trailingCaption))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn trailingCaption(&self) -> Option<Retained<NSString>>;
69
70 #[unsafe(method(setTrailingCaption:))]
74 #[unsafe(method_family = none)]
75 pub unsafe fn setTrailingCaption(&self, trailing_caption: Option<&NSString>);
76
77 #[unsafe(method(trailingSubcaption))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn trailingSubcaption(&self) -> Option<Retained<NSString>>;
81
82 #[unsafe(method(setTrailingSubcaption:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn setTrailingSubcaption(&self, trailing_subcaption: Option<&NSString>);
88
89 #[cfg(feature = "objc2-ui-kit")]
90 #[unsafe(method(image))]
95 #[unsafe(method_family = none)]
96 pub unsafe fn image(&self) -> Option<Retained<UIImage>>;
97
98 #[cfg(feature = "objc2-ui-kit")]
99 #[unsafe(method(setImage:))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn setImage(&self, image: Option<&UIImage>);
103
104 #[unsafe(method(mediaFileURL))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn mediaFileURL(&self) -> Option<Retained<NSURL>>;
112
113 #[unsafe(method(setMediaFileURL:))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn setMediaFileURL(&self, media_file_url: Option<&NSURL>);
119
120 #[unsafe(method(imageTitle))]
122 #[unsafe(method_family = none)]
123 pub unsafe fn imageTitle(&self) -> Option<Retained<NSString>>;
124
125 #[unsafe(method(setImageTitle:))]
129 #[unsafe(method_family = none)]
130 pub unsafe fn setImageTitle(&self, image_title: Option<&NSString>);
131
132 #[unsafe(method(imageSubtitle))]
134 #[unsafe(method_family = none)]
135 pub unsafe fn imageSubtitle(&self) -> Option<Retained<NSString>>;
136
137 #[unsafe(method(setImageSubtitle:))]
141 #[unsafe(method_family = none)]
142 pub unsafe fn setImageSubtitle(&self, image_subtitle: Option<&NSString>);
143 );
144}
145
146#[cfg(feature = "MSMessageLayout")]
148impl MSMessageTemplateLayout {
149 extern_methods!(
150 #[unsafe(method(init))]
151 #[unsafe(method_family = init)]
152 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
153
154 #[unsafe(method(new))]
155 #[unsafe(method_family = new)]
156 pub unsafe fn new() -> Retained<Self>;
157 );
158}