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 PDFActionURL;
);
#[cfg(feature = "PDFAction")]
extern_conformance!(
unsafe impl NSCopying for PDFActionURL {}
);
#[cfg(feature = "PDFAction")]
unsafe impl CopyingHelper for PDFActionURL {
type Result = Self;
}
#[cfg(feature = "PDFAction")]
extern_conformance!(
unsafe impl NSObjectProtocol for PDFActionURL {}
);
#[cfg(feature = "PDFAction")]
impl PDFActionURL {
extern_methods!(
#[unsafe(method(initWithURL:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithURL(this: Allocated<Self>, url: &NSURL) -> Retained<Self>;
#[unsafe(method(URL))]
#[unsafe(method_family = none)]
pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
#[unsafe(method(setURL:))]
#[unsafe(method_family = none)]
pub unsafe fn setURL(&self, url: Option<&NSURL>);
);
}
#[cfg(feature = "PDFAction")]
impl PDFActionURL {
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>;
);
}