icrate/generated/WebKit/
DOMHTMLElement.rs1use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::WebKit::*;
7
8extern_class!(
9 #[derive(Debug, PartialEq, Eq, Hash)]
10 #[cfg(feature = "WebKit_DOMHTMLElement")]
11 #[deprecated]
12 pub struct DOMHTMLElement;
13
14 #[cfg(feature = "WebKit_DOMHTMLElement")]
15 unsafe impl ClassType for DOMHTMLElement {
16 #[inherits(DOMNode, DOMObject, WebScriptObject, NSObject)]
17 type Super = DOMElement;
18 type Mutability = InteriorMutable;
19 }
20);
21
22#[cfg(feature = "WebKit_DOMHTMLElement")]
23unsafe impl DOMEventTarget for DOMHTMLElement {}
24
25#[cfg(feature = "WebKit_DOMHTMLElement")]
26unsafe impl NSCopying for DOMHTMLElement {}
27
28#[cfg(feature = "WebKit_DOMHTMLElement")]
29unsafe impl NSObjectProtocol for DOMHTMLElement {}
30
31extern_methods!(
32 #[cfg(feature = "WebKit_DOMHTMLElement")]
33 unsafe impl DOMHTMLElement {
34 #[cfg(feature = "Foundation_NSString")]
35 #[deprecated]
36 #[method_id(@__retain_semantics Other title)]
37 pub unsafe fn title(&self) -> Id<NSString>;
38
39 #[cfg(feature = "Foundation_NSString")]
40 #[deprecated]
41 #[method(setTitle:)]
42 pub unsafe fn setTitle(&self, title: Option<&NSString>);
43
44 #[cfg(feature = "Foundation_NSString")]
45 #[deprecated]
46 #[method_id(@__retain_semantics Other lang)]
47 pub unsafe fn lang(&self) -> Id<NSString>;
48
49 #[cfg(feature = "Foundation_NSString")]
50 #[deprecated]
51 #[method(setLang:)]
52 pub unsafe fn setLang(&self, lang: Option<&NSString>);
53
54 #[cfg(feature = "Foundation_NSString")]
55 #[deprecated]
56 #[method_id(@__retain_semantics Other dir)]
57 pub unsafe fn dir(&self) -> Id<NSString>;
58
59 #[cfg(feature = "Foundation_NSString")]
60 #[deprecated]
61 #[method(setDir:)]
62 pub unsafe fn setDir(&self, dir: Option<&NSString>);
63
64 #[deprecated]
65 #[method(tabIndex)]
66 pub unsafe fn tabIndex(&self) -> c_int;
67
68 #[deprecated]
69 #[method(setTabIndex:)]
70 pub unsafe fn setTabIndex(&self, tab_index: c_int);
71
72 #[cfg(feature = "Foundation_NSString")]
73 #[method_id(@__retain_semantics Other accessKey)]
74 pub unsafe fn accessKey(&self) -> Id<NSString>;
75
76 #[cfg(feature = "Foundation_NSString")]
77 #[method(setAccessKey:)]
78 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
79
80 #[cfg(feature = "Foundation_NSString")]
81 #[deprecated]
82 #[method_id(@__retain_semantics Other innerText)]
83 pub unsafe fn innerText(&self) -> Id<NSString>;
84
85 #[cfg(feature = "Foundation_NSString")]
86 #[deprecated]
87 #[method(setInnerText:)]
88 pub unsafe fn setInnerText(&self, inner_text: Option<&NSString>);
89
90 #[cfg(feature = "Foundation_NSString")]
91 #[deprecated]
92 #[method_id(@__retain_semantics Other outerText)]
93 pub unsafe fn outerText(&self) -> Id<NSString>;
94
95 #[cfg(feature = "Foundation_NSString")]
96 #[deprecated]
97 #[method(setOuterText:)]
98 pub unsafe fn setOuterText(&self, outer_text: Option<&NSString>);
99
100 #[cfg(feature = "Foundation_NSString")]
101 #[deprecated]
102 #[method_id(@__retain_semantics Other contentEditable)]
103 pub unsafe fn contentEditable(&self) -> Id<NSString>;
104
105 #[cfg(feature = "Foundation_NSString")]
106 #[deprecated]
107 #[method(setContentEditable:)]
108 pub unsafe fn setContentEditable(&self, content_editable: Option<&NSString>);
109
110 #[deprecated]
111 #[method(isContentEditable)]
112 pub unsafe fn isContentEditable(&self) -> bool;
113
114 #[cfg(feature = "Foundation_NSString")]
115 #[deprecated]
116 #[method_id(@__retain_semantics Other idName)]
117 pub unsafe fn idName(&self) -> Id<NSString>;
118
119 #[cfg(feature = "Foundation_NSString")]
120 #[deprecated]
121 #[method(setIdName:)]
122 pub unsafe fn setIdName(&self, id_name: Option<&NSString>);
123
124 #[cfg(feature = "WebKit_DOMHTMLCollection")]
125 #[deprecated]
126 #[method_id(@__retain_semantics Other children)]
127 pub unsafe fn children(&self) -> Option<Id<DOMHTMLCollection>>;
128
129 #[cfg(feature = "Foundation_NSString")]
130 #[method_id(@__retain_semantics Other titleDisplayString)]
131 pub unsafe fn titleDisplayString(&self) -> Id<NSString>;
132
133 #[method(click)]
134 pub unsafe fn click(&self);
135 }
136);
137
138extern_methods!(
139 #[cfg(feature = "WebKit_DOMHTMLElement")]
141 unsafe impl DOMHTMLElement {
142 #[deprecated]
143 #[method_id(@__retain_semantics Init init)]
144 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
145 }
146);
147
148extern_methods!(
149 #[cfg(feature = "WebKit_DOMHTMLElement")]
151 unsafe impl DOMHTMLElement {
152 #[method_id(@__retain_semantics New new)]
153 pub unsafe fn new() -> Id<Self>;
154 }
155);