use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-foundation")]
use objc2_core_foundation::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct WKPDFConfiguration;
);
unsafe impl NSCopying for WKPDFConfiguration {}
unsafe impl CopyingHelper for WKPDFConfiguration {
type Result = Self;
}
unsafe impl NSObjectProtocol for WKPDFConfiguration {}
impl WKPDFConfiguration {
extern_methods!(
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(rect))]
#[unsafe(method_family = none)]
pub unsafe fn rect(&self) -> CGRect;
#[cfg(feature = "objc2-core-foundation")]
#[unsafe(method(setRect:))]
#[unsafe(method_family = none)]
pub unsafe fn setRect(&self, rect: CGRect);
#[unsafe(method(allowTransparentBackground))]
#[unsafe(method_family = none)]
pub unsafe fn allowTransparentBackground(&self) -> bool;
#[unsafe(method(setAllowTransparentBackground:))]
#[unsafe(method_family = none)]
pub unsafe fn setAllowTransparentBackground(&self, allow_transparent_background: bool);
);
}
impl WKPDFConfiguration {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}