objc2_app_kit/generated/
NSPICTImageRep.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSImageRep, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(feature = "NSImageRep")]
14 pub struct NSPICTImageRep;
15);
16
17#[cfg(feature = "NSImageRep")]
18unsafe impl NSCoding for NSPICTImageRep {}
19
20#[cfg(feature = "NSImageRep")]
21unsafe impl NSCopying for NSPICTImageRep {}
22
23#[cfg(feature = "NSImageRep")]
24unsafe impl CopyingHelper for NSPICTImageRep {
25 type Result = Self;
26}
27
28#[cfg(feature = "NSImageRep")]
29unsafe impl NSObjectProtocol for NSPICTImageRep {}
30
31#[cfg(feature = "NSImageRep")]
32impl NSPICTImageRep {
33 extern_methods!(
34 #[unsafe(method(imageRepWithData:))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn imageRepWithData(pict_data: &NSData) -> Option<Retained<Self>>;
37
38 #[unsafe(method(initWithData:))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn initWithData(
41 this: Allocated<Self>,
42 pict_data: &NSData,
43 ) -> Option<Retained<Self>>;
44
45 #[unsafe(method(PICTRepresentation))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn PICTRepresentation(&self) -> Retained<NSData>;
48
49 #[unsafe(method(boundingBox))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn boundingBox(&self) -> NSRect;
52 );
53}
54
55#[cfg(feature = "NSImageRep")]
57impl NSPICTImageRep {
58 extern_methods!(
59 #[unsafe(method(init))]
60 #[unsafe(method_family = init)]
61 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
62
63 #[unsafe(method(initWithCoder:))]
64 #[unsafe(method_family = init)]
65 pub unsafe fn initWithCoder(
66 this: Allocated<Self>,
67 coder: &NSCoder,
68 ) -> Option<Retained<Self>>;
69 );
70}
71
72#[cfg(feature = "NSImageRep")]
74impl NSPICTImageRep {
75 extern_methods!(
76 #[unsafe(method(new))]
77 #[unsafe(method_family = new)]
78 pub unsafe fn new() -> Retained<Self>;
79 );
80}