objc2_pdf_kit/generated/
PDFActionURL.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(PDFAction, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "PDFAction")]
15 pub struct PDFActionURL;
16);
17
18#[cfg(feature = "PDFAction")]
19extern_conformance!(
20 unsafe impl NSCopying for PDFActionURL {}
21);
22
23#[cfg(feature = "PDFAction")]
24unsafe impl CopyingHelper for PDFActionURL {
25 type Result = Self;
26}
27
28#[cfg(feature = "PDFAction")]
29extern_conformance!(
30 unsafe impl NSObjectProtocol for PDFActionURL {}
31);
32
33#[cfg(feature = "PDFAction")]
34impl PDFActionURL {
35 extern_methods!(
36 #[unsafe(method(initWithURL:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithURL(this: Allocated<Self>, url: &NSURL) -> Retained<Self>;
39
40 #[unsafe(method(URL))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
43
44 #[unsafe(method(setURL:))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn setURL(&self, url: Option<&NSURL>);
50 );
51}
52
53#[cfg(feature = "PDFAction")]
55impl PDFActionURL {
56 extern_methods!(
57 #[unsafe(method(init))]
58 #[unsafe(method_family = init)]
59 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
60
61 #[unsafe(method(new))]
62 #[unsafe(method_family = new)]
63 pub unsafe fn new() -> Retained<Self>;
64 );
65}