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 fn imageRepWithData(eps_data: &NSData) -> Option<Retained<Self>>;
49
50 #[unsafe(method(initWithData:))]
53 #[unsafe(method_family = init)]
54 pub fn initWithData(this: Allocated<Self>, eps_data: &NSData) -> Option<Retained<Self>>;
55
56 #[unsafe(method(boundingBox))]
58 #[unsafe(method_family = none)]
59 pub fn boundingBox(&self) -> NSRect;
60
61 #[unsafe(method(EPSRepresentation))]
63 #[unsafe(method_family = none)]
64 pub fn EPSRepresentation(&self) -> Retained<NSData>;
65
66 #[deprecated]
68 #[unsafe(method(prepareGState))]
69 #[unsafe(method_family = none)]
70 pub fn prepareGState(&self);
71 );
72}
73
74#[cfg(feature = "NSImageRep")]
76impl NSEPSImageRep {
77 extern_methods!(
78 #[unsafe(method(init))]
79 #[unsafe(method_family = init)]
80 pub fn init(this: Allocated<Self>) -> Retained<Self>;
81
82 #[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 fn new() -> Retained<Self>;
101 );
102}
103
104#[cfg(feature = "NSImageRep")]
105impl DefaultRetained for NSEPSImageRep {
106 #[inline]
107 fn default_retained() -> Retained<Self> {
108 Self::new()
109 }
110}