use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
#[deprecated]
pub struct DOMHTMLBaseElement;
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl ClassType for DOMHTMLBaseElement {
#[inherits(DOMElement, DOMNode, DOMObject, WebScriptObject, NSObject)]
type Super = DOMHTMLElement;
type Mutability = InteriorMutable;
}
);
#[cfg(all(
feature = "DOMElement",
feature = "DOMEventTarget",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMEventTarget for DOMHTMLBaseElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSCopying for DOMHTMLBaseElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSObjectProtocol for DOMHTMLBaseElement {}
extern_methods!(
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMHTMLBaseElement {
#[deprecated]
#[method_id(@__retain_semantics Other href)]
pub unsafe fn href(&self) -> Retained<NSString>;
#[deprecated]
#[method(setHref:)]
pub unsafe fn setHref(&self, href: Option<&NSString>);
#[deprecated]
#[method_id(@__retain_semantics Other target)]
pub unsafe fn target(&self) -> Retained<NSString>;
#[deprecated]
#[method(setTarget:)]
pub unsafe fn setTarget(&self, target: Option<&NSString>);
}
);
extern_methods!(
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMHTMLBaseElement {
#[deprecated]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMHTMLBaseElement {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);