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