1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "WebKit_DOMHTMLOptionElement")]
#[deprecated]
pub struct DOMHTMLOptionElement;
#[cfg(feature = "WebKit_DOMHTMLOptionElement")]
unsafe impl ClassType for DOMHTMLOptionElement {
#[inherits(DOMElement, DOMNode, DOMObject, WebScriptObject, NSObject)]
type Super = DOMHTMLElement;
}
);
#[cfg(feature = "WebKit_DOMHTMLOptionElement")]
unsafe impl DOMEventTarget for DOMHTMLOptionElement {}
#[cfg(feature = "WebKit_DOMHTMLOptionElement")]
unsafe impl NSObjectProtocol for DOMHTMLOptionElement {}
extern_methods!(
#[cfg(feature = "WebKit_DOMHTMLOptionElement")]
unsafe impl DOMHTMLOptionElement {
#[method(disabled)]
pub unsafe fn disabled(&self) -> bool;
#[method(setDisabled:)]
pub unsafe fn setDisabled(&self, disabled: bool);
#[cfg(feature = "WebKit_DOMHTMLFormElement")]
#[method_id(@__retain_semantics Other form)]
pub unsafe fn form(&self) -> Option<Id<DOMHTMLFormElement, Shared>>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other label)]
pub unsafe fn label(&self) -> Id<NSString, Shared>;
#[cfg(feature = "Foundation_NSString")]
#[method(setLabel:)]
pub unsafe fn setLabel(&self, label: Option<&NSString>);
#[method(defaultSelected)]
pub unsafe fn defaultSelected(&self) -> bool;
#[method(setDefaultSelected:)]
pub unsafe fn setDefaultSelected(&self, default_selected: bool);
#[method(selected)]
pub unsafe fn selected(&self) -> bool;
#[method(setSelected:)]
pub unsafe fn setSelected(&self, selected: bool);
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other value)]
pub unsafe fn value(&self) -> Id<NSString, Shared>;
#[cfg(feature = "Foundation_NSString")]
#[method(setValue:)]
pub unsafe fn setValue(&self, value: Option<&NSString>);
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other text)]
pub unsafe fn text(&self) -> Id<NSString, Shared>;
#[method(index)]
pub unsafe fn index(&self) -> c_int;
}
);