use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(DOMCharacterData, DOMNode, DOMObject, WebScriptObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
#[deprecated]
pub struct DOMProcessingInstruction;
);
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMEventTarget",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMEventTarget for DOMProcessingInstruction {}
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSCopying for DOMProcessingInstruction {}
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl CopyingHelper for DOMProcessingInstruction {
type Result = Self;
}
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSObjectProtocol for DOMProcessingInstruction {}
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMProcessingInstruction {
extern_methods!(
#[deprecated]
#[unsafe(method(target))]
#[unsafe(method_family = none)]
pub unsafe fn target(&self) -> Retained<NSString>;
#[cfg(feature = "DOMStyleSheet")]
#[unsafe(method(sheet))]
#[unsafe(method_family = none)]
pub unsafe fn sheet(&self) -> Option<Retained<DOMStyleSheet>>;
);
}
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMProcessingInstruction {
extern_methods!(
#[deprecated]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(
feature = "DOMCharacterData",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMProcessingInstruction {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}