use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(
DOMHTMLElement,
DOMElement,
DOMNode,
DOMObject,
WebScriptObject,
NSObject
))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
#[deprecated]
pub struct DOMHTMLAnchorElement;
);
#[cfg(all(
feature = "DOMElement",
feature = "DOMEventTarget",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMEventTarget for DOMHTMLAnchorElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSCopying for DOMHTMLAnchorElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl CopyingHelper for DOMHTMLAnchorElement {
type Result = Self;
}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSObjectProtocol for DOMHTMLAnchorElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMHTMLAnchorElement {
extern_methods!(
#[deprecated]
#[unsafe(method(charset))]
#[unsafe(method_family = none)]
pub unsafe fn charset(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setCharset:))]
#[unsafe(method_family = none)]
pub unsafe fn setCharset(&self, charset: Option<&NSString>);
#[deprecated]
#[unsafe(method(coords))]
#[unsafe(method_family = none)]
pub unsafe fn coords(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setCoords:))]
#[unsafe(method_family = none)]
pub unsafe fn setCoords(&self, coords: Option<&NSString>);
#[deprecated]
#[unsafe(method(hreflang))]
#[unsafe(method_family = none)]
pub unsafe fn hreflang(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setHreflang:))]
#[unsafe(method_family = none)]
pub unsafe fn setHreflang(&self, hreflang: Option<&NSString>);
#[deprecated]
#[unsafe(method(name))]
#[unsafe(method_family = none)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setName:))]
#[unsafe(method_family = none)]
pub unsafe fn setName(&self, name: Option<&NSString>);
#[deprecated]
#[unsafe(method(rel))]
#[unsafe(method_family = none)]
pub unsafe fn rel(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setRel:))]
#[unsafe(method_family = none)]
pub unsafe fn setRel(&self, rel: Option<&NSString>);
#[deprecated]
#[unsafe(method(rev))]
#[unsafe(method_family = none)]
pub unsafe fn rev(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setRev:))]
#[unsafe(method_family = none)]
pub unsafe fn setRev(&self, rev: Option<&NSString>);
#[deprecated]
#[unsafe(method(shape))]
#[unsafe(method_family = none)]
pub unsafe fn shape(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setShape:))]
#[unsafe(method_family = none)]
pub unsafe fn setShape(&self, shape: Option<&NSString>);
#[deprecated]
#[unsafe(method(target))]
#[unsafe(method_family = none)]
pub unsafe fn target(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setTarget:))]
#[unsafe(method_family = none)]
pub unsafe fn setTarget(&self, target: Option<&NSString>);
#[deprecated]
#[unsafe(method(type))]
#[unsafe(method_family = none)]
pub unsafe fn r#type(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setType:))]
#[unsafe(method_family = none)]
pub unsafe fn setType(&self, r#type: Option<&NSString>);
#[deprecated]
#[unsafe(method(accessKey))]
#[unsafe(method_family = none)]
pub unsafe fn accessKey(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setAccessKey:))]
#[unsafe(method_family = none)]
pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
#[unsafe(method(text))]
#[unsafe(method_family = none)]
pub unsafe fn text(&self) -> Retained<NSString>;
#[unsafe(method(absoluteLinkURL))]
#[unsafe(method_family = none)]
pub unsafe fn absoluteLinkURL(&self) -> Retained<NSURL>;
#[deprecated]
#[unsafe(method(href))]
#[unsafe(method_family = none)]
pub unsafe fn href(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setHref:))]
#[unsafe(method_family = none)]
pub unsafe fn setHref(&self, href: Option<&NSString>);
#[unsafe(method(protocol))]
#[unsafe(method_family = none)]
pub unsafe fn protocol(&self) -> Retained<NSString>;
#[unsafe(method(host))]
#[unsafe(method_family = none)]
pub unsafe fn host(&self) -> Retained<NSString>;
#[unsafe(method(hostname))]
#[unsafe(method_family = none)]
pub unsafe fn hostname(&self) -> Retained<NSString>;
#[unsafe(method(port))]
#[unsafe(method_family = none)]
pub unsafe fn port(&self) -> Retained<NSString>;
#[unsafe(method(pathname))]
#[unsafe(method_family = none)]
pub unsafe fn pathname(&self) -> Retained<NSString>;
#[unsafe(method(search))]
#[unsafe(method_family = none)]
pub unsafe fn search(&self) -> Retained<NSString>;
#[unsafe(method(hashName))]
#[unsafe(method_family = none)]
pub unsafe fn hashName(&self) -> Retained<NSString>;
);
}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMHTMLAnchorElement {
extern_methods!(
#[deprecated]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMHTMLAnchorElement {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}