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))]
40extern_conformance!(
41 unsafe impl DOMEventTarget for DOMHTMLScriptElement {}
42);
43
44#[cfg(all(
45 feature = "DOMElement",
46 feature = "DOMHTMLElement",
47 feature = "DOMNode",
48 feature = "DOMObject",
49 feature = "WebScriptObject"
50))]
51extern_conformance!(
52 unsafe impl NSCopying for DOMHTMLScriptElement {}
53);
54
55#[cfg(all(
56 feature = "DOMElement",
57 feature = "DOMHTMLElement",
58 feature = "DOMNode",
59 feature = "DOMObject",
60 feature = "WebScriptObject"
61))]
62unsafe impl CopyingHelper for DOMHTMLScriptElement {
63 type Result = Self;
64}
65
66#[cfg(all(
67 feature = "DOMElement",
68 feature = "DOMHTMLElement",
69 feature = "DOMNode",
70 feature = "DOMObject",
71 feature = "WebScriptObject"
72))]
73extern_conformance!(
74 unsafe impl NSObjectProtocol for DOMHTMLScriptElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLScriptElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(text))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn text(&self) -> Retained<NSString>;
90
91 #[deprecated]
93 #[unsafe(method(setText:))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn setText(&self, text: Option<&NSString>);
96
97 #[deprecated]
98 #[unsafe(method(htmlFor))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn htmlFor(&self) -> Retained<NSString>;
101
102 #[deprecated]
104 #[unsafe(method(setHtmlFor:))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn setHtmlFor(&self, html_for: Option<&NSString>);
107
108 #[deprecated]
109 #[unsafe(method(event))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn event(&self) -> Retained<NSString>;
112
113 #[deprecated]
115 #[unsafe(method(setEvent:))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn setEvent(&self, event: Option<&NSString>);
118
119 #[deprecated]
120 #[unsafe(method(charset))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn charset(&self) -> Retained<NSString>;
123
124 #[deprecated]
126 #[unsafe(method(setCharset:))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn setCharset(&self, charset: Option<&NSString>);
129
130 #[deprecated]
131 #[unsafe(method(defer))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn defer(&self) -> bool;
134
135 #[deprecated]
137 #[unsafe(method(setDefer:))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn setDefer(&self, defer: bool);
140
141 #[deprecated]
142 #[unsafe(method(src))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn src(&self) -> Retained<NSString>;
145
146 #[deprecated]
148 #[unsafe(method(setSrc:))]
149 #[unsafe(method_family = none)]
150 pub unsafe fn setSrc(&self, src: Option<&NSString>);
151
152 #[deprecated]
153 #[unsafe(method(type))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn r#type(&self) -> Retained<NSString>;
156
157 #[deprecated]
159 #[unsafe(method(setType:))]
160 #[unsafe(method_family = none)]
161 pub unsafe fn setType(&self, r#type: Option<&NSString>);
162 );
163}
164
165#[cfg(all(
167 feature = "DOMElement",
168 feature = "DOMHTMLElement",
169 feature = "DOMNode",
170 feature = "DOMObject",
171 feature = "WebScriptObject"
172))]
173impl DOMHTMLScriptElement {
174 extern_methods!(
175 #[deprecated]
176 #[unsafe(method(init))]
177 #[unsafe(method_family = init)]
178 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
179 );
180}
181
182#[cfg(all(
184 feature = "DOMElement",
185 feature = "DOMHTMLElement",
186 feature = "DOMNode",
187 feature = "DOMObject",
188 feature = "WebScriptObject"
189))]
190impl DOMHTMLScriptElement {
191 extern_methods!(
192 #[unsafe(method(new))]
193 #[unsafe(method_family = new)]
194 pub unsafe fn new() -> Retained<Self>;
195 );
196}