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