//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uidragpreviewparameters?language=objc)
    #[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!();
}

/// Methods declared on superclass `UIPreviewParameters`.
#[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>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "UIPreviewParameters")]
impl UIDragPreviewParameters {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
    );
}
