//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;

use crate::*;

/// DOMNodeExtensions.
#[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>>;
    );
}

/// DOMElementAppKitExtensions.
#[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>>;
    );
}

/// DOMHTMLDocumentExtensions.
#[deprecated]
#[cfg(all(
    feature = "DOMDocument",
    feature = "DOMHTMLDocument",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
impl DOMHTMLDocument {
    extern_methods!(
        #[cfg(feature = "DOMDocumentFragment")]
        /// # Safety
        ///
        /// - `markup_string` might not allow `None`.
        /// - `base_url` might not allow `None`.
        #[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")]
        /// # Safety
        ///
        /// `text` might not allow `None`.
        #[unsafe(method(createDocumentFragmentWithText:))]
        #[unsafe(method_family = none)]
        pub unsafe fn createDocumentFragmentWithText(
            &self,
            text: Option<&NSString>,
        ) -> Option<Retained<DOMDocumentFragment>>;
    );
}
