icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;

extern_static!(WebArchivePboardType: Option<&'static NSString>);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "WebKit_WebArchive")]
    #[deprecated]
    pub struct WebArchive;

    #[cfg(feature = "WebKit_WebArchive")]
    unsafe impl ClassType for WebArchive {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "WebKit_WebArchive")]
unsafe impl NSCoding for WebArchive {}

#[cfg(feature = "WebKit_WebArchive")]
unsafe impl NSCopying for WebArchive {}

#[cfg(feature = "WebKit_WebArchive")]
unsafe impl NSObjectProtocol for WebArchive {}

extern_methods!(
    #[cfg(feature = "WebKit_WebArchive")]
    unsafe impl WebArchive {
        #[cfg(all(feature = "Foundation_NSArray", feature = "WebKit_WebResource"))]
        #[deprecated]
        #[method_id(@__retain_semantics Init initWithMainResource:subresources:subframeArchives:)]
        pub unsafe fn initWithMainResource_subresources_subframeArchives(
            this: Allocated<Self>,
            main_resource: Option<&WebResource>,
            subresources: Option<&NSArray>,
            subframe_archives: Option<&NSArray>,
        ) -> Option<Id<Self>>;

        #[cfg(feature = "Foundation_NSData")]
        #[deprecated]
        #[method_id(@__retain_semantics Init initWithData:)]
        pub unsafe fn initWithData(
            this: Allocated<Self>,
            data: Option<&NSData>,
        ) -> Option<Id<Self>>;

        #[cfg(feature = "WebKit_WebResource")]
        #[deprecated]
        #[method_id(@__retain_semantics Other mainResource)]
        pub unsafe fn mainResource(&self) -> Option<Id<WebResource>>;

        #[cfg(feature = "Foundation_NSArray")]
        #[deprecated]
        #[method_id(@__retain_semantics Other subresources)]
        pub unsafe fn subresources(&self) -> Id<NSArray>;

        #[cfg(feature = "Foundation_NSArray")]
        #[deprecated]
        #[method_id(@__retain_semantics Other subframeArchives)]
        pub unsafe fn subframeArchives(&self) -> Id<NSArray>;

        #[cfg(feature = "Foundation_NSData")]
        #[deprecated]
        #[method_id(@__retain_semantics Other data)]
        pub unsafe fn data(&self) -> Id<NSData>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "WebKit_WebArchive")]
    unsafe impl WebArchive {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);