objc2_pdf_kit/generated/
PDFActionGoTo.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/pdfactiongoto?language=objc)
12    #[unsafe(super(PDFAction, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "PDFAction")]
15    pub struct PDFActionGoTo;
16);
17
18#[cfg(feature = "PDFAction")]
19extern_conformance!(
20    unsafe impl NSCopying for PDFActionGoTo {}
21);
22
23#[cfg(feature = "PDFAction")]
24unsafe impl CopyingHelper for PDFActionGoTo {
25    type Result = Self;
26}
27
28#[cfg(feature = "PDFAction")]
29extern_conformance!(
30    unsafe impl NSObjectProtocol for PDFActionGoTo {}
31);
32
33#[cfg(feature = "PDFAction")]
34impl PDFActionGoTo {
35    extern_methods!(
36        #[cfg(feature = "PDFDestination")]
37        #[unsafe(method(initWithDestination:))]
38        #[unsafe(method_family = init)]
39        pub unsafe fn initWithDestination(
40            this: Allocated<Self>,
41            destination: &PDFDestination,
42        ) -> Retained<Self>;
43
44        #[cfg(feature = "PDFDestination")]
45        #[unsafe(method(destination))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn destination(&self) -> Retained<PDFDestination>;
48
49        #[cfg(feature = "PDFDestination")]
50        /// Setter for [`destination`][Self::destination].
51        #[unsafe(method(setDestination:))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn setDestination(&self, destination: &PDFDestination);
54    );
55}
56
57/// Methods declared on superclass `NSObject`.
58#[cfg(feature = "PDFAction")]
59impl PDFActionGoTo {
60    extern_methods!(
61        #[unsafe(method(init))]
62        #[unsafe(method_family = init)]
63        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64
65        #[unsafe(method(new))]
66        #[unsafe(method_family = new)]
67        pub unsafe fn new() -> Retained<Self>;
68    );
69}