use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "DOMDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
#[deprecated]
pub struct DOMHTMLDocument;
#[cfg(all(
feature = "DOMDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl ClassType for DOMHTMLDocument {
#[inherits(DOMNode, DOMObject, WebScriptObject, NSObject)]
type Super = DOMDocument;
type Mutability = InteriorMutable;
}
);
#[cfg(all(
feature = "DOMDocument",
feature = "DOMEventTarget",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMEventTarget for DOMHTMLDocument {}
#[cfg(all(
feature = "DOMDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSCopying for DOMHTMLDocument {}
#[cfg(all(
feature = "DOMDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSObjectProtocol for DOMHTMLDocument {}
extern_methods!(
#[cfg(all(
feature = "DOMDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMHTMLDocument {
#[cfg(feature = "DOMHTMLCollection")]
#[method_id(@__retain_semantics Other embeds)]
pub unsafe fn embeds(&self) -> Option<Retained<DOMHTMLCollection>>;
#[cfg(feature = "DOMHTMLCollection")]
#[method_id(@__retain_semantics Other plugins)]
pub unsafe fn plugins(&self) -> Option<Retained<DOMHTMLCollection>>;
#[cfg(feature = "DOMHTMLCollection")]
#[method_id(@__retain_semantics Other scripts)]
pub unsafe fn scripts(&self) -> Option<Retained<DOMHTMLCollection>>;
#[method(width)]
pub unsafe fn width(&self) -> c_int;
#[method(height)]
pub unsafe fn height(&self) -> c_int;
#[method_id(@__retain_semantics Other dir)]
pub unsafe fn dir(&self) -> Retained<NSString>;
#[method(setDir:)]
pub unsafe fn setDir(&self, dir: Option<&NSString>);
#[method_id(@__retain_semantics Other designMode)]
pub unsafe fn designMode(&self) -> Retained<NSString>;
#[method(setDesignMode:)]
pub unsafe fn setDesignMode(&self, design_mode: Option<&NSString>);
#[method_id(@__retain_semantics Other compatMode)]
pub unsafe fn compatMode(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other bgColor)]
pub unsafe fn bgColor(&self) -> Retained<NSString>;
#[method(setBgColor:)]
pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
#[method_id(@__retain_semantics Other fgColor)]
pub unsafe fn fgColor(&self) -> Retained<NSString>;
#[method(setFgColor:)]
pub unsafe fn setFgColor(&self, fg_color: Option<&NSString>);
#[method_id(@__retain_semantics Other alinkColor)]
pub unsafe fn alinkColor(&self) -> Retained<NSString>;
#[method(setAlinkColor:)]
pub unsafe fn setAlinkColor(&self, alink_color: Option<&NSString>);
#[method_id(@__retain_semantics Other linkColor)]
pub unsafe fn linkColor(&self) -> Retained<NSString>;
#[method(setLinkColor:)]
pub unsafe fn setLinkColor(&self, link_color: Option<&NSString>);
#[method_id(@__retain_semantics Other vlinkColor)]
pub unsafe fn vlinkColor(&self) -> Retained<NSString>;
#[method(setVlinkColor:)]
pub unsafe fn setVlinkColor(&self, vlink_color: Option<&NSString>);
#[deprecated]
#[method(open)]
pub unsafe fn open(&self);
#[deprecated]
#[method(close)]
pub unsafe fn close(&self);
#[deprecated]
#[method(write:)]
pub unsafe fn write(&self, text: Option<&NSString>);
#[deprecated]
#[method(writeln:)]
pub unsafe fn writeln(&self, text: Option<&NSString>);
#[method(clear)]
pub unsafe fn clear(&self);
#[method(captureEvents)]
pub unsafe fn captureEvents(&self);
#[method(releaseEvents)]
pub unsafe fn releaseEvents(&self);
}
);
extern_methods!(
#[cfg(all(
feature = "DOMDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMHTMLDocument {
#[deprecated]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(
feature = "DOMDocument",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMHTMLDocument {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);