objc2-pdf-kit 0.3.2

Bindings to the PDFKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/pdfkit/pdfactionresetform?language=objc)
    #[unsafe(super(PDFAction, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "PDFAction")]
    pub struct PDFActionResetForm;
);

#[cfg(feature = "PDFAction")]
extern_conformance!(
    unsafe impl NSCopying for PDFActionResetForm {}
);

#[cfg(feature = "PDFAction")]
unsafe impl CopyingHelper for PDFActionResetForm {
    type Result = Self;
}

#[cfg(feature = "PDFAction")]
extern_conformance!(
    unsafe impl NSObjectProtocol for PDFActionResetForm {}
);

#[cfg(feature = "PDFAction")]
impl PDFActionResetForm {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(fields))]
        #[unsafe(method_family = none)]
        pub unsafe fn fields(&self) -> Option<Retained<NSArray<NSString>>>;

        /// Setter for [`fields`][Self::fields].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setFields:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setFields(&self, fields: Option<&NSArray<NSString>>);

        #[unsafe(method(fieldsIncludedAreCleared))]
        #[unsafe(method_family = none)]
        pub unsafe fn fieldsIncludedAreCleared(&self) -> bool;

        /// Setter for [`fieldsIncludedAreCleared`][Self::fieldsIncludedAreCleared].
        #[unsafe(method(setFieldsIncludedAreCleared:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setFieldsIncludedAreCleared(&self, fields_included_are_cleared: bool);
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "PDFAction")]
impl PDFActionResetForm {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}