objc2_pdf_kit/generated/
PDFActionRemoteGoTo.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 PDFActionRemoteGoTo;
16);
17
18#[cfg(feature = "PDFAction")]
19extern_conformance!(
20 unsafe impl NSCopying for PDFActionRemoteGoTo {}
21);
22
23#[cfg(feature = "PDFAction")]
24unsafe impl CopyingHelper for PDFActionRemoteGoTo {
25 type Result = Self;
26}
27
28#[cfg(feature = "PDFAction")]
29extern_conformance!(
30 unsafe impl NSObjectProtocol for PDFActionRemoteGoTo {}
31);
32
33#[cfg(feature = "PDFAction")]
34impl PDFActionRemoteGoTo {
35 extern_methods!(
36 #[unsafe(method(initWithPageIndex:atPoint:fileURL:))]
37 #[unsafe(method_family = init)]
38 pub unsafe fn initWithPageIndex_atPoint_fileURL(
39 this: Allocated<Self>,
40 page_index: NSUInteger,
41 point: NSPoint,
42 url: &NSURL,
43 ) -> Retained<Self>;
44
45 #[unsafe(method(pageIndex))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn pageIndex(&self) -> NSUInteger;
48
49 #[unsafe(method(setPageIndex:))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn setPageIndex(&self, page_index: NSUInteger);
53
54 #[unsafe(method(point))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn point(&self) -> NSPoint;
57
58 #[unsafe(method(setPoint:))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn setPoint(&self, point: NSPoint);
62
63 #[unsafe(method(URL))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn URL(&self) -> Retained<NSURL>;
66
67 #[unsafe(method(setURL:))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn setURL(&self, url: &NSURL);
73 );
74}
75
76#[cfg(feature = "PDFAction")]
78impl PDFActionRemoteGoTo {
79 extern_methods!(
80 #[unsafe(method(init))]
81 #[unsafe(method_family = init)]
82 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
83
84 #[unsafe(method(new))]
85 #[unsafe(method_family = new)]
86 pub unsafe fn new() -> Retained<Self>;
87 );
88}