objc2_web_kit/generated/
DOMHTMLEmbedElement.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 DOMHTMLEmbedElement;
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 DOMHTMLEmbedElement {}
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 DOMHTMLEmbedElement {}
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 DOMHTMLEmbedElement {
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 DOMHTMLEmbedElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLEmbedElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(align))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn align(&self) -> Retained<NSString>;
90
91 #[deprecated]
95 #[unsafe(method(setAlign:))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn setAlign(&self, align: Option<&NSString>);
98
99 #[deprecated]
100 #[unsafe(method(height))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn height(&self) -> c_int;
103
104 #[deprecated]
106 #[unsafe(method(setHeight:))]
107 #[unsafe(method_family = none)]
108 pub unsafe fn setHeight(&self, height: c_int);
109
110 #[deprecated]
111 #[unsafe(method(name))]
112 #[unsafe(method_family = none)]
113 pub unsafe fn name(&self) -> Retained<NSString>;
114
115 #[deprecated]
119 #[unsafe(method(setName:))]
120 #[unsafe(method_family = none)]
121 pub unsafe fn setName(&self, name: Option<&NSString>);
122
123 #[deprecated]
124 #[unsafe(method(src))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn src(&self) -> Retained<NSString>;
127
128 #[deprecated]
132 #[unsafe(method(setSrc:))]
133 #[unsafe(method_family = none)]
134 pub unsafe fn setSrc(&self, src: Option<&NSString>);
135
136 #[deprecated]
137 #[unsafe(method(type))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn r#type(&self) -> Retained<NSString>;
140
141 #[deprecated]
145 #[unsafe(method(setType:))]
146 #[unsafe(method_family = none)]
147 pub unsafe fn setType(&self, r#type: Option<&NSString>);
148
149 #[deprecated]
150 #[unsafe(method(width))]
151 #[unsafe(method_family = none)]
152 pub unsafe fn width(&self) -> c_int;
153
154 #[deprecated]
156 #[unsafe(method(setWidth:))]
157 #[unsafe(method_family = none)]
158 pub unsafe fn setWidth(&self, width: c_int);
159 );
160}
161
162#[cfg(all(
164 feature = "DOMElement",
165 feature = "DOMHTMLElement",
166 feature = "DOMNode",
167 feature = "DOMObject",
168 feature = "WebScriptObject"
169))]
170impl DOMHTMLEmbedElement {
171 extern_methods!(
172 #[deprecated]
173 #[unsafe(method(init))]
174 #[unsafe(method_family = init)]
175 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
176 );
177}
178
179#[cfg(all(
181 feature = "DOMElement",
182 feature = "DOMHTMLElement",
183 feature = "DOMNode",
184 feature = "DOMObject",
185 feature = "WebScriptObject"
186))]
187impl DOMHTMLEmbedElement {
188 extern_methods!(
189 #[unsafe(method(new))]
190 #[unsafe(method_family = new)]
191 pub unsafe fn new() -> Retained<Self>;
192 );
193}