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_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "WebKit_DOMProcessingInstruction")]
    #[deprecated]
    pub struct DOMProcessingInstruction;

    #[cfg(feature = "WebKit_DOMProcessingInstruction")]
    unsafe impl ClassType for DOMProcessingInstruction {
        #[inherits(DOMNode, DOMObject, WebScriptObject, NSObject)]
        type Super = DOMCharacterData;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "WebKit_DOMProcessingInstruction")]
unsafe impl DOMEventTarget for DOMProcessingInstruction {}

#[cfg(feature = "WebKit_DOMProcessingInstruction")]
unsafe impl NSCopying for DOMProcessingInstruction {}

#[cfg(feature = "WebKit_DOMProcessingInstruction")]
unsafe impl NSObjectProtocol for DOMProcessingInstruction {}

extern_methods!(
    #[cfg(feature = "WebKit_DOMProcessingInstruction")]
    unsafe impl DOMProcessingInstruction {
        #[cfg(feature = "Foundation_NSString")]
        #[deprecated]
        #[method_id(@__retain_semantics Other target)]
        pub unsafe fn target(&self) -> Id<NSString>;

        #[cfg(feature = "WebKit_DOMStyleSheet")]
        #[method_id(@__retain_semantics Other sheet)]
        pub unsafe fn sheet(&self) -> Option<Id<DOMStyleSheet>>;
    }
);

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

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "WebKit_DOMProcessingInstruction")]
    unsafe impl DOMProcessingInstruction {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);