use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(MSMessageLayout, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MSMessageLayout")]
pub struct MSMessageLiveLayout;
);
#[cfg(feature = "MSMessageLayout")]
extern_conformance!(
unsafe impl NSCopying for MSMessageLiveLayout {}
);
#[cfg(feature = "MSMessageLayout")]
unsafe impl CopyingHelper for MSMessageLiveLayout {
type Result = Self;
}
#[cfg(feature = "MSMessageLayout")]
extern_conformance!(
unsafe impl NSObjectProtocol for MSMessageLiveLayout {}
);
#[cfg(feature = "MSMessageLayout")]
impl MSMessageLiveLayout {
extern_methods!(
#[cfg(feature = "MSMessageTemplateLayout")]
#[unsafe(method(initWithAlternateLayout:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithAlternateLayout(
this: Allocated<Self>,
alternate_layout: &MSMessageTemplateLayout,
) -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "MSMessageTemplateLayout")]
#[unsafe(method(alternateLayout))]
#[unsafe(method_family = none)]
pub unsafe fn alternateLayout(&self) -> Retained<MSMessageTemplateLayout>;
);
}
#[cfg(feature = "MSMessageLayout")]
impl MSMessageLiveLayout {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}