//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domhtmlelement?language=objc)
    #[unsafe(super(DOMElement, DOMNode, DOMObject, WebScriptObject, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(all(
        feature = "DOMElement",
        feature = "DOMNode",
        feature = "DOMObject",
        feature = "WebScriptObject"
    ))]
    #[deprecated]
    pub struct DOMHTMLElement;
);

#[cfg(all(
    feature = "DOMElement",
    feature = "DOMEventTarget",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
extern_conformance!(
    unsafe impl DOMEventTarget for DOMHTMLElement {}
);

#[cfg(all(
    feature = "DOMElement",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
extern_conformance!(
    unsafe impl NSCopying for DOMHTMLElement {}
);

#[cfg(all(
    feature = "DOMElement",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
unsafe impl CopyingHelper for DOMHTMLElement {
    type Result = Self;
}

#[cfg(all(
    feature = "DOMElement",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
extern_conformance!(
    unsafe impl NSObjectProtocol for DOMHTMLElement {}
);

#[cfg(all(
    feature = "DOMElement",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
impl DOMHTMLElement {
    extern_methods!(
        #[deprecated]
        #[unsafe(method(title))]
        #[unsafe(method_family = none)]
        pub unsafe fn title(&self) -> Retained<NSString>;

        /// Setter for [`title`][Self::title].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated]
        #[unsafe(method(setTitle:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setTitle(&self, title: Option<&NSString>);

        #[deprecated]
        #[unsafe(method(lang))]
        #[unsafe(method_family = none)]
        pub unsafe fn lang(&self) -> Retained<NSString>;

        /// Setter for [`lang`][Self::lang].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated]
        #[unsafe(method(setLang:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setLang(&self, lang: Option<&NSString>);

        #[deprecated]
        #[unsafe(method(dir))]
        #[unsafe(method_family = none)]
        pub unsafe fn dir(&self) -> Retained<NSString>;

        /// Setter for [`dir`][Self::dir].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated]
        #[unsafe(method(setDir:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setDir(&self, dir: Option<&NSString>);

        #[deprecated]
        #[unsafe(method(tabIndex))]
        #[unsafe(method_family = none)]
        pub unsafe fn tabIndex(&self) -> c_int;

        /// Setter for [`tabIndex`][Self::tabIndex].
        #[deprecated]
        #[unsafe(method(setTabIndex:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setTabIndex(&self, tab_index: c_int);

        #[unsafe(method(accessKey))]
        #[unsafe(method_family = none)]
        pub unsafe fn accessKey(&self) -> Retained<NSString>;

        /// Setter for [`accessKey`][Self::accessKey].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setAccessKey:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);

        #[deprecated]
        #[unsafe(method(innerText))]
        #[unsafe(method_family = none)]
        pub unsafe fn innerText(&self) -> Retained<NSString>;

        /// Setter for [`innerText`][Self::innerText].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated]
        #[unsafe(method(setInnerText:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setInnerText(&self, inner_text: Option<&NSString>);

        #[deprecated]
        #[unsafe(method(outerText))]
        #[unsafe(method_family = none)]
        pub unsafe fn outerText(&self) -> Retained<NSString>;

        /// Setter for [`outerText`][Self::outerText].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated]
        #[unsafe(method(setOuterText:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setOuterText(&self, outer_text: Option<&NSString>);

        #[deprecated]
        #[unsafe(method(contentEditable))]
        #[unsafe(method_family = none)]
        pub unsafe fn contentEditable(&self) -> Retained<NSString>;

        /// Setter for [`contentEditable`][Self::contentEditable].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated]
        #[unsafe(method(setContentEditable:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setContentEditable(&self, content_editable: Option<&NSString>);

        #[deprecated]
        #[unsafe(method(isContentEditable))]
        #[unsafe(method_family = none)]
        pub unsafe fn isContentEditable(&self) -> bool;

        #[deprecated]
        #[unsafe(method(idName))]
        #[unsafe(method_family = none)]
        pub unsafe fn idName(&self) -> Retained<NSString>;

        /// Setter for [`idName`][Self::idName].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated]
        #[unsafe(method(setIdName:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setIdName(&self, id_name: Option<&NSString>);

        #[cfg(feature = "DOMHTMLCollection")]
        #[deprecated]
        #[unsafe(method(children))]
        #[unsafe(method_family = none)]
        pub unsafe fn children(&self) -> Option<Retained<DOMHTMLCollection>>;

        #[unsafe(method(titleDisplayString))]
        #[unsafe(method_family = none)]
        pub unsafe fn titleDisplayString(&self) -> Retained<NSString>;

        #[unsafe(method(click))]
        #[unsafe(method_family = none)]
        pub unsafe fn click(&self);
    );
}

/// Methods declared on superclass `DOMObject`.
#[cfg(all(
    feature = "DOMElement",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
impl DOMHTMLElement {
    extern_methods!(
        #[deprecated]
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(all(
    feature = "DOMElement",
    feature = "DOMNode",
    feature = "DOMObject",
    feature = "WebScriptObject"
))]
impl DOMHTMLElement {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}
