use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(UIPreviewParameters, NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "UIPreviewParameters")]
pub struct UIDragPreviewParameters;
);
#[cfg(feature = "UIPreviewParameters")]
extern_conformance!(
unsafe impl NSCopying for UIDragPreviewParameters {}
);
#[cfg(feature = "UIPreviewParameters")]
unsafe impl CopyingHelper for UIDragPreviewParameters {
type Result = Self;
}
#[cfg(feature = "UIPreviewParameters")]
extern_conformance!(
unsafe impl NSObjectProtocol for UIDragPreviewParameters {}
);
#[cfg(feature = "UIPreviewParameters")]
impl UIDragPreviewParameters {
extern_methods!();
}
#[cfg(feature = "UIPreviewParameters")]
impl UIDragPreviewParameters {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithTextLineRects:))]
#[unsafe(method_family = init)]
pub fn initWithTextLineRects(
this: Allocated<Self>,
text_line_rects: &NSArray<NSValue>,
) -> Retained<Self>;
);
}
#[cfg(feature = "UIPreviewParameters")]
impl UIDragPreviewParameters {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}