objc2_pdf_kit/generated/
PDFActionURL.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfactionurl?language=objc)
12    #[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        /// Setter for [`URL`][Self::URL].
45        ///
46        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
47        #[unsafe(method(setURL:))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn setURL(&self, url: Option<&NSURL>);
50    );
51}
52
53/// Methods declared on superclass `NSObject`.
54#[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}