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 DOMHTMLOptionElement;
);
#[cfg(all(
feature = "DOMElement",
feature = "DOMEventTarget",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMEventTarget for DOMHTMLOptionElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSCopying for DOMHTMLOptionElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl CopyingHelper for DOMHTMLOptionElement {
type Result = Self;
}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSObjectProtocol for DOMHTMLOptionElement {}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMHTMLOptionElement {
extern_methods!(
#[deprecated]
#[unsafe(method(disabled))]
#[unsafe(method_family = none)]
pub unsafe fn disabled(&self) -> bool;
#[deprecated]
#[unsafe(method(setDisabled:))]
#[unsafe(method_family = none)]
pub unsafe fn setDisabled(&self, disabled: bool);
#[cfg(feature = "DOMHTMLFormElement")]
#[deprecated]
#[unsafe(method(form))]
#[unsafe(method_family = none)]
pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
#[deprecated]
#[unsafe(method(label))]
#[unsafe(method_family = none)]
pub unsafe fn label(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setLabel:))]
#[unsafe(method_family = none)]
pub unsafe fn setLabel(&self, label: Option<&NSString>);
#[deprecated]
#[unsafe(method(defaultSelected))]
#[unsafe(method_family = none)]
pub unsafe fn defaultSelected(&self) -> bool;
#[deprecated]
#[unsafe(method(setDefaultSelected:))]
#[unsafe(method_family = none)]
pub unsafe fn setDefaultSelected(&self, default_selected: bool);
#[deprecated]
#[unsafe(method(selected))]
#[unsafe(method_family = none)]
pub unsafe fn selected(&self) -> bool;
#[deprecated]
#[unsafe(method(setSelected:))]
#[unsafe(method_family = none)]
pub unsafe fn setSelected(&self, selected: bool);
#[deprecated]
#[unsafe(method(value))]
#[unsafe(method_family = none)]
pub unsafe fn value(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(setValue:))]
#[unsafe(method_family = none)]
pub unsafe fn setValue(&self, value: Option<&NSString>);
#[deprecated]
#[unsafe(method(text))]
#[unsafe(method_family = none)]
pub unsafe fn text(&self) -> Retained<NSString>;
#[deprecated]
#[unsafe(method(index))]
#[unsafe(method_family = none)]
pub unsafe fn index(&self) -> c_int;
);
}
#[cfg(all(
feature = "DOMElement",
feature = "DOMHTMLElement",
feature = "DOMNode",
feature = "DOMObject",
feature = "WebScriptObject"
))]
impl DOMHTMLOptionElement {
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 DOMHTMLOptionElement {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}