objc2_web_kit/generated/
DOMHTMLScriptElement.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(
13 DOMHTMLElement,
14 DOMElement,
15 DOMNode,
16 DOMObject,
17 WebScriptObject,
18 NSObject
19 ))]
20 #[derive(Debug, PartialEq, Eq, Hash)]
21 #[cfg(all(
22 feature = "DOMElement",
23 feature = "DOMHTMLElement",
24 feature = "DOMNode",
25 feature = "DOMObject",
26 feature = "WebScriptObject"
27 ))]
28 #[deprecated]
29 pub struct DOMHTMLScriptElement;
30);
31
32#[cfg(all(
33 feature = "DOMElement",
34 feature = "DOMEventTarget",
35 feature = "DOMHTMLElement",
36 feature = "DOMNode",
37 feature = "DOMObject",
38 feature = "WebScriptObject"
39))]
40unsafe impl DOMEventTarget for DOMHTMLScriptElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLScriptElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLScriptElement {
59 type Result = Self;
60}
61
62#[cfg(all(
63 feature = "DOMElement",
64 feature = "DOMHTMLElement",
65 feature = "DOMNode",
66 feature = "DOMObject",
67 feature = "WebScriptObject"
68))]
69unsafe impl NSObjectProtocol for DOMHTMLScriptElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLScriptElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(text))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn text(&self) -> Retained<NSString>;
84
85 #[deprecated]
87 #[unsafe(method(setText:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setText(&self, text: Option<&NSString>);
90
91 #[deprecated]
92 #[unsafe(method(htmlFor))]
93 #[unsafe(method_family = none)]
94 pub unsafe fn htmlFor(&self) -> Retained<NSString>;
95
96 #[deprecated]
98 #[unsafe(method(setHtmlFor:))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn setHtmlFor(&self, html_for: Option<&NSString>);
101
102 #[deprecated]
103 #[unsafe(method(event))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn event(&self) -> Retained<NSString>;
106
107 #[deprecated]
109 #[unsafe(method(setEvent:))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn setEvent(&self, event: Option<&NSString>);
112
113 #[deprecated]
114 #[unsafe(method(charset))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn charset(&self) -> Retained<NSString>;
117
118 #[deprecated]
120 #[unsafe(method(setCharset:))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn setCharset(&self, charset: Option<&NSString>);
123
124 #[deprecated]
125 #[unsafe(method(defer))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn defer(&self) -> bool;
128
129 #[deprecated]
131 #[unsafe(method(setDefer:))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn setDefer(&self, defer: bool);
134
135 #[deprecated]
136 #[unsafe(method(src))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn src(&self) -> Retained<NSString>;
139
140 #[deprecated]
142 #[unsafe(method(setSrc:))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn setSrc(&self, src: Option<&NSString>);
145
146 #[deprecated]
147 #[unsafe(method(type))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn r#type(&self) -> Retained<NSString>;
150
151 #[deprecated]
153 #[unsafe(method(setType:))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn setType(&self, r#type: Option<&NSString>);
156 );
157}
158
159#[cfg(all(
161 feature = "DOMElement",
162 feature = "DOMHTMLElement",
163 feature = "DOMNode",
164 feature = "DOMObject",
165 feature = "WebScriptObject"
166))]
167impl DOMHTMLScriptElement {
168 extern_methods!(
169 #[deprecated]
170 #[unsafe(method(init))]
171 #[unsafe(method_family = init)]
172 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
173 );
174}
175
176#[cfg(all(
178 feature = "DOMElement",
179 feature = "DOMHTMLElement",
180 feature = "DOMNode",
181 feature = "DOMObject",
182 feature = "WebScriptObject"
183))]
184impl DOMHTMLScriptElement {
185 extern_methods!(
186 #[unsafe(method(new))]
187 #[unsafe(method_family = new)]
188 pub unsafe fn new() -> Retained<Self>;
189 );
190}