objc2_pdf_kit/generated/
PDFAnnotationCircle.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::*;
6#[cfg(feature = "objc2-app-kit")]
7#[cfg(target_os = "macos")]
8use objc2_app_kit::*;
9use objc2_foundation::*;
10
11use crate::*;
12
13extern_class!(
14    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfannotationcircle?language=objc)
15    #[unsafe(super(PDFAnnotation, NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    #[cfg(feature = "PDFAnnotation")]
18    #[deprecated]
19    pub struct PDFAnnotationCircle;
20);
21
22#[cfg(feature = "PDFAnnotation")]
23extern_conformance!(
24    unsafe impl NSCoding for PDFAnnotationCircle {}
25);
26
27#[cfg(feature = "PDFAnnotation")]
28extern_conformance!(
29    unsafe impl NSCopying for PDFAnnotationCircle {}
30);
31
32#[cfg(feature = "PDFAnnotation")]
33unsafe impl CopyingHelper for PDFAnnotationCircle {
34    type Result = Self;
35}
36
37#[cfg(feature = "PDFAnnotation")]
38extern_conformance!(
39    unsafe impl NSObjectProtocol for PDFAnnotationCircle {}
40);
41
42#[cfg(feature = "PDFAnnotation")]
43impl PDFAnnotationCircle {
44    extern_methods!(
45        #[cfg(feature = "objc2-app-kit")]
46        #[cfg(target_os = "macos")]
47        #[deprecated]
48        #[unsafe(method(interiorColor))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn interiorColor(&self) -> Option<Retained<NSColor>>;
51
52        #[cfg(feature = "objc2-app-kit")]
53        #[cfg(target_os = "macos")]
54        /// # Safety
55        ///
56        /// `color` might not allow `None`.
57        #[deprecated]
58        #[unsafe(method(setInteriorColor:))]
59        #[unsafe(method_family = none)]
60        pub unsafe fn setInteriorColor(&self, color: Option<&NSColor>);
61    );
62}
63
64/// Methods declared on superclass `PDFAnnotation`.
65#[cfg(feature = "PDFAnnotation")]
66impl PDFAnnotationCircle {
67    extern_methods!(
68        /// # Safety
69        ///
70        /// `properties` generic should be of the correct type.
71        #[unsafe(method(initWithBounds:forType:withProperties:))]
72        #[unsafe(method_family = init)]
73        pub unsafe fn initWithBounds_forType_withProperties(
74            this: Allocated<Self>,
75            bounds: NSRect,
76            annotation_type: &PDFAnnotationSubtype,
77            properties: Option<&NSDictionary>,
78        ) -> Retained<Self>;
79    );
80}
81
82/// Methods declared on superclass `NSObject`.
83#[cfg(feature = "PDFAnnotation")]
84impl PDFAnnotationCircle {
85    extern_methods!(
86        #[unsafe(method(init))]
87        #[unsafe(method_family = init)]
88        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
89
90        #[unsafe(method(new))]
91        #[unsafe(method_family = new)]
92        pub unsafe fn new() -> Retained<Self>;
93    );
94}