objc2_app_kit/generated/
NSEPSImageRep.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSImageRep, NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[cfg(feature = "NSImageRep")]
17 #[deprecated = "`NSEPSImageRep` instances cannot be created on macOS 14.0 and later"]
18 pub struct NSEPSImageRep;
19);
20
21#[cfg(feature = "NSImageRep")]
22extern_conformance!(
23 unsafe impl NSCoding for NSEPSImageRep {}
24);
25
26#[cfg(feature = "NSImageRep")]
27extern_conformance!(
28 unsafe impl NSCopying for NSEPSImageRep {}
29);
30
31#[cfg(feature = "NSImageRep")]
32unsafe impl CopyingHelper for NSEPSImageRep {
33 type Result = Self;
34}
35
36#[cfg(feature = "NSImageRep")]
37extern_conformance!(
38 unsafe impl NSObjectProtocol for NSEPSImageRep {}
39);
40
41#[cfg(feature = "NSImageRep")]
42impl NSEPSImageRep {
43 extern_methods!(
44 #[unsafe(method(imageRepWithData:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn imageRepWithData(eps_data: &NSData) -> Option<Retained<Self>>;
49
50 #[unsafe(method(initWithData:))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn initWithData(
55 this: Allocated<Self>,
56 eps_data: &NSData,
57 ) -> Option<Retained<Self>>;
58
59 #[unsafe(method(boundingBox))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn boundingBox(&self) -> NSRect;
63
64 #[unsafe(method(EPSRepresentation))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn EPSRepresentation(&self) -> Retained<NSData>;
68
69 #[deprecated]
71 #[unsafe(method(prepareGState))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn prepareGState(&self);
74 );
75}
76
77#[cfg(feature = "NSImageRep")]
79impl NSEPSImageRep {
80 extern_methods!(
81 #[unsafe(method(init))]
82 #[unsafe(method_family = init)]
83 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
84
85 #[unsafe(method(initWithCoder:))]
86 #[unsafe(method_family = init)]
87 pub unsafe fn initWithCoder(
88 this: Allocated<Self>,
89 coder: &NSCoder,
90 ) -> Option<Retained<Self>>;
91 );
92}
93
94#[cfg(feature = "NSImageRep")]
96impl NSEPSImageRep {
97 extern_methods!(
98 #[unsafe(method(new))]
99 #[unsafe(method_family = new)]
100 pub unsafe fn new() -> Retained<Self>;
101 );
102}