use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
#[deprecated]
#[cfg(all(
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMNode {
extern_methods!(
#[unsafe(method(boundingBox))]
#[unsafe(method_family = none)]
pub unsafe fn boundingBox(&self) -> NSRect;
#[unsafe(method(lineBoxRects))]
#[unsafe(method_family = none)]
pub unsafe fn lineBoxRects(&self) -> Option<Retained<NSArray>>;
);
}
#[deprecated]
#[cfg(all(
feature = "DOMElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMElement {
extern_methods!(
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[unsafe(method(image))]
#[unsafe(method_family = none)]
pub unsafe fn image(&self) -> Option<Retained<NSImage>>;
);
}
#[deprecated]
#[cfg(all(
feature = "DOMDocument",
feature = "DOMHTMLDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMHTMLDocument {
extern_methods!(
#[cfg(feature = "DOMDocumentFragment")]
#[unsafe(method(createDocumentFragmentWithMarkupString:baseURL:))]
#[unsafe(method_family = none)]
pub unsafe fn createDocumentFragmentWithMarkupString_baseURL(
&self,
markup_string: Option<&NSString>,
base_url: Option<&NSURL>,
) -> Option<Retained<DOMDocumentFragment>>;
#[cfg(feature = "DOMDocumentFragment")]
#[unsafe(method(createDocumentFragmentWithText:))]
#[unsafe(method_family = none)]
pub unsafe fn createDocumentFragmentWithText(
&self,
text: Option<&NSString>,
) -> Option<Retained<DOMDocumentFragment>>;
);
}